I have a Xen LVM based VM with two partitions:
/dev/VolGroup00/vm01p1
/dev/VolGroup00/vm01p2
p2 is about 50GB, I gave it's LVM an extra 30 or so using lvextend.
How can I extend the partition to fill my free space and the filesystem?
I don't mind offline, if I can get Xen to boot off an alternative media.
Peter
Am 15.10.2010 21:56, schrieb Peter Serwe:
I have a Xen LVM based VM with two partitions:
/dev/VolGroup00/vm01p1
/dev/VolGroup00/vm01p2
p2 is about 50GB, I gave it's LVM an extra 30 or so using lvextend.
How can I extend the partition to fill my free space and the filesystem?
http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html
I don't mind offline, if I can get Xen to boot off an alternative media.
You can do that online using resize2fs (see above)
Peter
Alexander
On Fri, Oct 15, 2010 at 1:29 PM, Alexander Dalloz <ad+lists@uni-x.orgad%2Blists@uni-x.org
wrote:
http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html
I don't mind offline, if I can get Xen to boot off an alternative media.
You can do that online using resize2fs (see above)
Peter
Alexander
Does that require a kernel patch or is that information deprecated in CentOS 5.5?
Peter
Also, the filesystem is my /, how could that change life?
Peter
On Fri, Oct 15, 2010 at 3:45 PM, Peter Serwe peter.serwe@gmail.com wrote:
On Fri, Oct 15, 2010 at 1:29 PM, Alexander Dalloz <ad+lists@uni-x.orgad%2Blists@uni-x.org
wrote:
http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html
I don't mind offline, if I can get Xen to boot off an alternative media.
You can do that online using resize2fs (see above)
Peter
Alexander
Does that require a kernel patch or is that information deprecated in CentOS 5.5?
Peter
-- Peter Serwe http://truthlightway.blogspot.com/
Am 16.10.2010 00:45, schrieb Peter Serwe:
On Fri, Oct 15, 2010 at 1:29 PM, Alexander Dalloz <ad+lists@uni-x.orgad%2Blists@uni-x.org
wrote:
http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html
I don't mind offline, if I can get Xen to boot off an alternative media.
You can do that online using resize2fs (see above)
Peter
Alexander
Does that require a kernel patch or is that information deprecated in CentOS 5.5?
Peter
Hi Peter,
resize2fs just works with CentOS 5.5. In case of increasing the size of your filesystem that way you can do so online. FS shrinking will not work online or you would loose data.
resize2fs works for any mountpoint, including /. I have done that already several times. Just take care that the system is not heavily used at time of FS resizing. If you can afford run it in runlevel 1.
As always doing such kind of tasks: be prepared with a healthy, current backup and a disaster recovery strategy.
Regards
Alexander