WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] real HDD usage of XEN images
From: Heiko <rupertt@xxxxxxxxx>
Date: Thu, 15 Jan 2009 14:42:46 +0100
Delivery-date: Thu, 15 Jan 2009 05:43:30 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=NdkB1vFDapT/jl29oy6NswzgLKVqSZZNcur/0kaAwc4=; b=f/9mTegOgsmZ+6e9T5QHLnedkrbrpMR487ju4Hz7gf0L7VzQyLwdVGgtUOsLrlYSp/ lJ4FqSrl2ehbEDISTRc8JrvcLU7k0SCstlCV7uaZvCh9TPGjA3xYmt+XExRYs9ChUi49 2it7tvXdgxclcQ0H0mqtmalvqtZnCJ8WTn6MM=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <VA.00003618.00bbef05@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <537dcd6b0901150337n5445232ek2d5e81fb73301e60@xxxxxxxxxxxxxx> <VA.00003618.00bbef05@xxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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