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

Re: [Xen-users] lvm size



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Your problem is that the *filesystem* size is still the same as the
original flat file. You have to resize the filesystem. If it is an
ext2/ext3 filesystem you can use resize2fs to do the job. It should be
able to pick up the new size from the size of the LVM.

                        -Jeff

Anand wrote:
> 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


- --
=============================================================================
Jeffrey I. Schiller
MIT Network Manager
Information Services and Technology
Massachusetts Institute of Technology
77 Massachusetts Avenue  Room W92-190
Cambridge, MA 02139-4307
617.253.0161 - Voice
jis@xxxxxxx
============================================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDyydt8CBzV/QUlSsRAiGUAKCcNO4H0rUibykvW4GAPP6PnMjsEACeML2i
CjrEqNH/AN7Z+mtDx4kHMb4=
=aPA2
-----END PGP SIGNATURE-----

_______________________________________________
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®.