Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Make a backup of the contents of the volume.
  2. You need to unmount the volume, so:
    1. Stop all the guests with an image in that volume.
    2. Stop the flexvdi-agent service in all the hosts that share the volume. Otherwise, they will remount it as soon as they detect it is not mounted:

      No Format
      # systemctl stop flexvdi-agent


    3. Unmount the volume in all the hosts.
    4. In one host, perform a filesystem check. Assuming it is in partition /dev/sdb1:

      No Format
      # fsck.ocfs2 -fn /dev/sdb1


  3. Resize the underlying device to the desired capacity. This may be a logical volume in a shared storage cluster, for instance. How you do this is out of the scope of this guide.
  4. Rescan the underlying device in all your hosts. Assuming the device is /dev/sdb, run in all the hosts:

    No Format
    # echo 1 > /sys/block/sdb/device/rescan

    If your device is part of a multipath device, rescan all the devices. Then, assuming it is called mpatha, run in all the hosts:

    No Format
    # multipathd resize map /dev/mapper/mpatha


  5. Resize the underlying device partition. Assuming the device is /dev/sdb, run in one host only:

    No Format
    # parted -s /dev/sdb resizepart 00% 100%


  6. Now, refresh the partition sizes in all your hosts.

    No Format
    # partprobe


  7. Resize the OCFS2 filesystem and check it again:

    No Format
    # tunefs.ocfs2 -S /dev/sdb1
    # fsck.ocfs2 -fn /dev/sdb1


  8. Finally, restart the flexvdi-agent service again in all your hosts, and they will mount the volume again in the right place.

...