I am using a loop device disk setup (not lvm) for Xen Debian (squeeze) guest systems on my Debian (squeeze) host system.
I searched for a way of extending guest system disk size. I came accross simple dd commands and nasty mkfs commands.
I wonder if there is a magic xen-tools command set to help me out on Debian systems? Or a simple set of tested dd & mkfs command set for this non-lvm case?
Thanks.
you first have to resize the "device", then you need to expand the filesystem.
Simple example on how to enlarge an existing file without loosing the content:
From your question it is not clear if you use the loop-device as disk, or as partition. In any case I would recommend doing the resize offline (when the disk-device is not attached to the DomU).
I think it is better and simpler to append space (notice the >> operation) to the disk image
For example, to add 1G to a disk image do:
or if you want a sparse file
To resize the file system you will then need to use a tool such as
For a detailed explanation see:
http://grantmcwilliams.com/tech/virtualization/xen-howtos/265-resize-xen-disk-image-used-as-domu-partition