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

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, Wendy

hth, Mark

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