Home > sysadmin > resize xen image

resize xen image

To resize a xen image, follow these steps.
First make a backup copy of the image, ie cp xen.image, xen.image.backup then
dd if=/dev/zero of=[image_name] bs=1 count=1 seek=20G conv=notrunc
where seek=[size in GB]
then, e2fsck -f [image_name}-y
and finally
resize2fs -p [image_name]
You should then be able to boot the new image with the new size.

Categories: sysadmin
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment