Wendy William
2011-Aug-31 16:15 UTC
[Xen-users] How to expand LVM without create new drive?
I now how to expand a LVM by creating a new drive as described here: http://lists.centos.org/pipermail/centos/2007-February/032664.html, the steps are: # pvcreate /dev/sda3 # vgextend VolGroup00 /dev/sda3 Now, I want to know how to expand a LVM without create /dev/sda3? Suppose I have 2 GB free (unpartitioned) and LVM use /dev/sda2 (8 GB). How to make /dev/sda2 become 10 GB? Then resize LVM to 10 GB. Regards, Wendy _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Diego Dave
2011-Aug-31 16:31 UTC
Re: [Xen-users] How to expand LVM without create new drive?
Hi Wendy, Have you tried lvextend command? Type "lvextend --help" to see how to use this. Remember that the LVM have 3 levels, physical volumes (PV), volume groups (VG) and logical volumes (LV). If you need rezise the partition, firstly you must resize or "extend" the LV. After that, you should resize the filesystem of the partition (ext3 filesystem supports live resizing). Regards, Diego 2011/8/31 Wendy William <kotakomputer@yahoo.com>:> I now how to expand a LVM by creating a new drive as described here: > http://lists.centos.org/pipermail/centos/2007-February/032664.html, the steps > are: > > # pvcreate /dev/sda3 > # vgextend VolGroup00 /dev/sda3 > > Now, I want to know how to expand a LVM without create /dev/sda3? > > Suppose I have 2 GB free (unpartitioned) and LVM use /dev/sda2 (8 GB). How to > make /dev/sda2 become 10 GB? Then resize LVM to 10 GB. > > Regards, Wendy > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Dokter
2011-Aug-31 16:47 UTC
Re: [Xen-users] How to expand LVM without create new drive?
On 8/31/11 6:15 PM, Wendy William wrote:> I now how to expand a LVM by creating a new drive as described here: > http://lists.centos.org/pipermail/centos/2007-February/032664.html, the steps > are: >Hi!> # pvcreate /dev/sda3 > # vgextend VolGroup00 /dev/sda3 >That would be the easy and painless way.> Now, I want to know how to expand a LVM without create /dev/sda3? > > Suppose I have 2 GB free (unpartitioned) and LVM use /dev/sda2 (8 GB). How to > make /dev/sda2 become 10 GB? Then resize LVM to 10 GB. >Resizing a partition/pv (sda2 in your case) doesn''t really have to do much (other than calling vgextend (?)) with lvm. What you need to do is fire up your partitioning program (fdisk?), delete the partition and recreate it with the same starting sector and set the last sector 2GB further down the disk.> Regards, Wendyhth, Mark _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users