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

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


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Heiko <rupertt@xxxxxxxxx>
  • Date: Thu, 15 Jan 2009 14:42:46 +0100
  • Delivery-date: Thu, 15 Jan 2009 05:43:30 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=RA7Gm0/a4lUc5N4ctL1ULX+LR1Xg/3XSHwBSmoAex1AyL8HjPMutilrtmez/HrqCuC VPxQFFEMzH6LTFsC5yDDdR/kOahuUV49uqnO4VJ3VqGEyU8PUPyxy0q1DzYwXIKyyxEV HgDNigH+AGFUhHx9Zixy/PdTtUFDE/hsk/iD4=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

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