Resize problem on OpenSUSE LVM

Discussion in 'HOWTO-Related Questions' started by vzxen, Oct 30, 2010.

  1. vzxen

    vzxen New Member

    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
     
  2. falko

    falko Super Moderator Howtoforge Staff

  3. vzxen

    vzxen New Member

    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.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    But you said you use an .IMG file for the guest. :confused:

    If you use LVM, then this guide might help you: http://www.howtoforge.com/linux_lvm
     

Share This Page