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] Why is xen allocating entire disk/file?

To: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Subject: Re: [Xen-users] Why is xen allocating entire disk/file?
From: Charlie Reddington <charlie.reddington@xxxxxxxxx>
Date: Wed, 28 Jan 2009 23:20:29 -0600
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 28 Jan 2009 21:21:44 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=HImcCNI/n5WTwJJQ1uzR8MxTBccFQWpSodJ4FRPHpCY=; b=Jygs+SJYwr7avtc61CeERKnnNWdUOvjapLlHIIqiVw90qf3JCkZyYAftkYJzb8m74P ioY2hTB0LQ3Jv9+shsL5Ht0Wo5Qh5p4j/HLBEkEj9ouEIzGZr+9DQo1/4umlstDPbdqG +0UMuFe1jrpEpKZjd/NNnneWEn78wu1XdrzZQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=bqZjNcKNWLxSNJkIElN2p6hXL4cUSmpksNIC83aciUFjJx5jbx/ZQABJGCHFTZGkwh Oc/aK62L46d4WwbiD2BlIddJG5p7O/Ew4/PsryWjW1KZEGqXK55xHyY5Wb8Hf888akOU e7+ZQlTm00FAkmksbtAfgVeFvy9NbZguPhU+k=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7207d96f0901282114y47555051hab738c271d43ebd0@xxxxxxxxxxxxxx>
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: <08E40131-E447-4C1A-9AC5-A74C8E14C50E@xxxxxxxxx> <7207d96f0901282114y47555051hab738c271d43ebd0@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

On Jan 28, 2009, at 11:14 PM, Fajar A. Nugraha wrote:

On Thu, Jan 29, 2009 at 12:09 PM, Charlie Reddington
<charlie.reddington@xxxxxxxxx> wrote:
Soon as I kick off the install, I look in /var/lib/xen/images and I see my
image at 100GB, even though I specified it not to use the hole disk.

How did you check? ls -la?
Try ls -lash. It'll show how much it actually used.

Regards,

Fajar

It's kind of weird, it's not exactly showing up correctly on my system.

# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             446G   43G  381G  10% /
tmpfs                 3.9G     0  3.9G   0% /dev/shm

Right here alone, has me kind of sketcy. Total - 446G - 43G should = 403G

But in var/lib/xen/images.....

# du -sh *
9.8G    ns1.img
9.8G    ns2..img
119M    shared01.img
20G             www.img

Doing the command as you say.....

9.8G -rwxrwxr-x 1 root root 9.8G Jan 28 15:18 ns1.img
9.8G -rwxrwxr-x 1 root root 9.8G Jan 28 15:18 ns2.img
134M -rwxrwxr-x 1 root root  98G Jan 28 15:18 shared01.img
 20G -rwxrwxr-x 1 root root  20G Jan 28 15:18 www.img

I'm just overall kind of confused how this is working. I should in theory be able to over allocate a number of vm's, so that when I get close to running out, I can just add more disk space as cash allows.

Thanks,

Charlie



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