• Resize Xen Loop Disk Image

    Here are the steps for increasing the size of a loop filesystem :

    1. Stop the virtual server that is using the loop filesystem. (xm shutdown Vps_Name)
    2. Add some extra space to your loop filesystem file
    # dd if=/dev/zero bs=1024k count=92160 >> loop_image_file

    This adds 90GB to the end of a file called loop_image_file (make sure to use the append output redirector >> not a single >, otherwise you’ll have an empty 90GB file!)

    3. Force a check on the resized/increased filesystem
    # e2fsck -f loop_image_file

    4. Resize the filesystem within the loop filesystem file
    # resize2fs loop_image_file

    5. Start the virtual server again.

    Categories: Xen

    Comments are currently closed.