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] lvm size

To: Anand <xen.mails@xxxxxxxxx>
Subject: Re: [Xen-users] lvm size
From: "Jeffrey I. Schiller" <jis@xxxxxxx>
Date: Sun, 15 Jan 2006 23:57:06 -0500
Cc: Xen Users <Xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 16 Jan 2006 05:04:33 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <acb757c00601140138n84dddefob6adb0a6d5770fff@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/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>
Openpgp: id=F414952B
Organization: Massachusetts Institute of Technology
References: <acb757c00601140138n84dddefob6adb0a6d5770fff@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Debian Thunderbird 1.0.2 (X11/20050331)
-----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

<Prev in Thread] Current Thread [Next in Thread>