# VM Guest Disk Resizing

**URL:** <https://forums.suse.com/t/vm-guest-disk-resizing/22065>\
**Category:** SLES Virtualization\
**Created:** [October 28, 2011, 8:26pm UTC](https://forums.suse.com/t/vm-guest-disk-resizing/22065 "2011-10-28T20:26:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![System1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@System1](https://forums.suse.com/u/System1)\
**Post date:** [October 28, 2011, 8:26pm UTC](https://forums.suse.com/t/vm-guest-disk-resizing/22065/1 "2011-10-28T20:26:02Z")

</div>

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](http://forums.novell.com/member.php?userid=116754)  
View this thread: [http://forums.novell.com/showthread.php?t=447494](http://forums.novell.com/showthread.php?t=447494)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [October 28, 2011, 10:26pm UTC](https://forums.suse.com/t/vm-guest-disk-resizing/22065/2 "2011-10-28T22:26:02Z")

</div>

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](http://novell.com/ttp) “Programming is like teaching a jellyfish to build a house.” More Bob: ‘Twitter’ ([http://twitter.com/BobMahar](http://twitter.com/BobMahar)) ‘Blog’ ([http://blog.trafficshaper.com](http://blog.trafficshaper.com)) ‘Vimeo’ ([http://vimeo.com/boborama](http://vimeo.com/boborama)) ← Click And Be Amazed!

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [October 29, 2011, 12:36am UTC](https://forums.suse.com/t/vm-guest-disk-resizing/22065/3 "2011-10-29T00:36:02Z")

</div>

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](http://forums.novell.com/member.php?userid=116754)  
View this thread: [http://forums.novell.com/showthread.php?t=447494](http://forums.novell.com/showthread.php?t=447494)
