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

[Xen-users] lvm size

To: Xen Users <Xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] lvm size
From: Anand <xen.mails@xxxxxxxxx>
Date: Sat, 14 Jan 2006 15:08:19 +0530
Delivery-date: Sat, 14 Jan 2006 09:45:22 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=ZqDuhubI45RbMQKO+pAn2YA+XAI1ky/Y08HrLa7BTCu8+n0/Qs62Cah9EMSkLhlJaHMoLB62mApEqyuesHi4ZRB782dE4HcSFQr7DKvGzJVCx5DXNhL9qcz5sHRaF6p7nI3T7OJSB1wVMQDM9pbrLCKChTcHW1C89tIJiil5+bw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
This could be considered OT however i can't seem to find an answer to this one. I will appreciate if someone can help me out.

I created a new logical volume of 3G, then issued cat of a flat file of centos to it. The flat file is of 1GB.

cat /home/anand/images/centos.img > /dev/vgxen/test7

lvscan shows 3GB allocated
[root@xen tmp]# lvs
  LV         VG    Attr   LSize   Origin Snap%  Move Log Copy%
  test7      vgxen -wi-a-   3.00G
  test7-swap vgxen -wi-a- 256.00M

after mounting it shows a size of 1GB approx. i.e. the same size as the flat file.
df -h
/dev/mapper/vgxen-test7
                      986M  475M  462M  51% /tmp/xen-server-tools.Cl7947

After this when i mount the volume it shows up as 1gb in size and vgs shows 3gb allocated to it. While using flat files i remember i could use resize to get the new flat file size back. However in case of volumes how do i do so ?

P.S. Can anyone recommend a better way to create file systems inside volumes than the above method ?

--

regards,

Anand
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>