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

[Xen-users] Re: DomU guest - resize disk on LVM?



Gerd Hoffmann wrote:
> Robin Bowes wrote:
>> I can increase the size of the under-lying logical volume
>> (/dev/vg01/lv_bah_vm) e.g increase it from 10GB to 15GB. But, even
>> though I've resized the under-lying LV, the PV in the Xen guest is still
>> only 10GB.
>>
>> How do I get the PV inside the Xen guest to reflect the increased size
>> of the under-lying disk, i.e. appear to be 15GB?
> 
> I think you can't resize PVs.  How about creating a new /dev/hda3
> partition (inside the guest) using the new disk space, create a new pv
> there, add that to the volume group?

Thanks for all the suggestions.

I have since realised what I'm missing: the PV/VG is actually created
from a partition, i.e the under-lying disk is /dev/xvda, so I have /boot
as /dev/xvda1 and the PV is /dev/xvda2. So, to resize it, I need to boot
into a rescue disk or live CD and rezize the /dev/xvda2 partition. The
PV should then reflect the increased size. I can then increase the
partition size and grow the FS.

Thanks,

R.


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