|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] real HDD usage of XEN images
On Thu, Jan 15, 2009 at 2:23 PM, Kai Schaetzl <maillists@xxxxxxxxxxxxx> wrote:
> Heiko wrote on Thu, 15 Jan 2009 12:37:58 +0100:
>
>> Are the XEN images pre allocated or does XEN only use that space that
>> really is used by the VM inside the image?
>
> If I remember correctly virt-install does *not* create sparse files. This
> is a not a matter of Xen, but simply how the image file gets created. You
> can create it before use by virt-install for instance.
>
Hello,
in the future we will create the file with dd before installing,seems
to be better.
>> I know have the Problem that an "du -h" inside my /VM folder gives me
>> nearly a higher number that the harddisk has on size.
>
> well, du is missing from your quotes now ;-)
>
>> /dev/sda3 106G 102G 0 100% /
>
> your root system is full. Independant of the question whether your VMs are
> using sparse files or not ;-)
>
>> [root@x1blade3:~]# ls -lah /VM
>> total 101G
>
> ls gives you the amount that is reserved for the file in the directory
> list, it doesn't give you the real size of the file. The real size is
> shown by du -s. Run a "du -s *" in that folder and it will list real sizes
> for each file and folder in there (or a "du -s /VM" to get the complete
> value for that directory).
>
mmh,i get the same number with both commands
when i sum up all the imagesizes below I get 100GB,
but df says I still have 34GB free and df that are only 50GB in use.
So for planning new VM i should always count on the imagesize and not
what df/du are telling 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
[root@x1blade1:/VM]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 106G 67G 34G 67% /
/dev/sda1 99M 24M 71M 25% /boot
tmpfs 3.9G 0 3.9G 0% /dev/shm
greetings
Heiko
> 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
>
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|