[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] real HDD usage of XEN images



Heiko wrote on Thu, 15 Jan 2009 14:42:46 +0100:

I think you are confusing df/du/ls soemtimes. You give figures that you say 
are from df, but later it turns out they are from ls etc. Try to be more 
precise in what you tell and what you do.

> [root@x1blade1:/VM]# df -h

the df in your first mail was from a different host. Just confusing you *and* 
me.

> [root@x1blade1:/VM]# ls -lah
> total 50G
> drwxr-xr-x  2 root root 4.0K Jan 15 11:24 .
> drwxr-xr-x 25 root root 4.0K Mar 10  2008 ..
> 2.0G May  5  2008 auto-input_swapfile.img
> 31G Jan 15 13:36 auto-input-vm1.img
> 2.0G Mar 13  2008 distribution_swap.img
> 11G Jan 15 13:36 distribution-vm1.img
> 26G Jan 15 13:36 monitoring-1.img
> 2.0G Mar 19  2008 monitoring-1_swapfile.img
> 2.0G Jan  7 08:26 translator_swap.img
> 11G Jan 15 13:36 translator-vm1.img
> 11G Jan 15 13:36 uat-vm1.img
> 2.0G Mar 26  2008 uat-vm1_swapfile.img

I told you to use "du -s *" in that directory, I don't think you did that. If 
you would you would get figures from the individual files that are *not* the 
same as above! (Or if you want human-readable format, use "du -sh *".)

Obviously the file sizes above add up to more than 50 GB. Which means there 
*are* sparse files in use. (*) I don't know where "ls" gets the "total" from, 
but that's obviously the actually committed total in reserved blocks = the 
size that is actually in use. The size for the individual files is *not* the 
size in use, but what is stored somewhere (inode, whereever, I'm not an fs 
expert) as the given size at creation time. If it is a sparse file this shows 
the size value it can grow to. It does not show the actual size on the file 
system (that is what du is for, and df != du)

(*)Overcommitting in such a way is actually dangerous. I think that should be 
obvious.

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com




_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.