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:
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.
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.