VM Guest Disk Resizing

Hello,

I am attempting to resize (increase) an existing VM guest disk. The
host is running SLES10 SP3 and all of the VMs have been created under an
LVM group on the host system. The VM guest is configured with resiserfs
as its own file system.

I was able to successfullly increase the disk size as desired, but the
guest file system has not recognized and increase to the new size.
Attempts to increase the file system have failed. I have attempted to
use the following commands:

resize_reiserfs /dev/vgo/<vm_image>
resize2fs /dev/vgo/<vm_image>

How can I successfully increase the block size of the system partition
on the guest vm or get the guest system to recognize the added storage
space - without losing data.

Thanks in advance.


nomad213

nomad213’s Profile: http://forums.novell.com/member.php?userid=116754
View this thread: http://forums.novell.com/showthread.php?t=447494

Short version: add a second, larger disk to your VM Guest, then use
GPARTED to copy / resize old to new. Done.

Long version…

OK, so this is XEN, right? So do you get an error message when you
try to resize? ( I hope so. ) What guest OS is this?

For example, SLES 10.x didn’t support live resize, and you had to boot
into a live CD or boot in recovery mode and resize the guests boot file
system with it unmounted. If you have a snapshot protecting your VM,
then you can undo if it goes bad. If not, I would opt to create a NEW
additional larger disk on the guest. Then boot the VM guest with
GPARTED and duplicate / resize the old disk onto the new one. Once you
confirm the new disk is happy, then you swap out the old with the new.
This way you have no risk of data loss. Its also easy.

– Bob


Bob Mahar – Novell Knowledge Partner
Do you do what you do at a .EDU? http://novell.com/ttp
“Programming is like teaching a jellyfish to build a house.”
More Bob: ‘Twitter’ (http://twitter.com/BobMahar) ‘Blog’
(http://blog.trafficshaper.com) ‘Vimeo’ (http://vimeo.com/boborama) ←
Click And Be Amazed!

Bob-O-Rama’s Profile: http://forums.novell.com/member.php?userid=5269
View this thread: http://forums.novell.com/showthread.php?t=447494

The guest OS is also SLES10SP3. The error received is… “the reiserfs
superblock cannot be found on /dev/vg0/<vm_image>”

TID 3786220 explains how to accomplish this in SLES10, but maybe I
missed something.

I will look at GPARTED.


nomad213

nomad213’s Profile: http://forums.novell.com/member.php?userid=116754
View this thread: http://forums.novell.com/showthread.php?t=447494