Find the answer to your Linux question:
Results 1 to 3 of 3
Hello all, I need to expand a 15GB xen disk ".img" to 50GB, it's got centos as the guest O/S. I've been googling and there are alot of results but ...
  1. #1
    Linux Newbie Mad Professor's Avatar
    Join Date
    May 2006
    Posts
    128

    Expand a xen disk image.

    Hello all, I need to expand a 15GB xen disk ".img" to 50GB, it's got centos as the guest O/S.

    I've been googling and there are alot of results but I'm still having trouble.

    I don't remember if I used the default LVM partition scheme or if I did a FS. In fdisk it says linux partition but that's it.

    I did the dd and cat method but fsck is complaining like usual.

    I dd a file called tempfile and the append it using cat tempfile >> my.img then did resize2fs -f but it error out with "Bad Magic number on super block."


    Other methods seem more complicated then need be.

    Any help or direction would be appreciated.

    ~Mp

  2. #2
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,071
    Have you tried giving it a go with Parted Magic or any other LiveCD?

  3. #3
    Linux Newbie Mad Professor's Avatar
    Join Date
    May 2006
    Posts
    128
    I apologize for the vague post, I was writing it before work, then I was late anyways.

    This is what want I'm trying to do. I have a guest operating system running on xen host, it uses a 15GB xen virtual disk and it's running out of space. I need to expand the virtual disk to at least 50GB, I'm not trying to image a hard-drive or clone one.

    makes sense?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...