Hi, I have made a OpenSUSE Xen HVM guest on a 2GB .IMG file. (My DOM0 is CentOS 5.5 x86_64) Now I use DD to copy it to a LVM (20Gb) and then boot it in XEN HVM to deply a Machine ASAP. How should I resize the partition ? I tried fdisk and it corrupts the MBR of the new LVM. Does openSUSE require special resizing methods. As soon as the new Partition table is written by fdisk and I try the resize2fs command it gives me a Super Block corrupt error. The booting of this new LVM also fail. If I dd the 512 bytes of the .IMG file back to the LVM it works again and boots but shows only 2 GB space. How should I solve this problem ? Resizing centOS, Fedora is easy and works simply well. Please help
Did you try these methods? http://www.cduce.org/~abate/how-resize-a-xen-image-or-any-other-fs http://wiki.kartbuilding.net/index.php/Resize/Increase_the_Size_of_a_File_Based_DomU_Xen_Filesystem http://mediakey.dk/~cc/howto-resize-xen-loop-disk-image/
Hi, falko I am using LVMs and not images. After increasing the PARTITION size of the 1st partition usinf fdisk it corrupts the Super Block. Hence e2fsck fails, giving a super block error. This is in the case of openSuse LVM. CentOS LVM works and resizes without any errors.
But you said you use an .IMG file for the guest. If you use LVM, then this guide might help you: http://www.howtoforge.com/linux_lvm