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

[Xen-users] lvm size


  • To: Xen Users <Xen-users@xxxxxxxxxxxxxxxxxxx>
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

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