How to extend a logical volume in a cluster that is using "HA LVM"?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux Server 5/6/7 (with the High Availability and Resilient Storage Add Ons)
  • HA-LVM tagging variant

Issue

  • How to extend a logical volume in a cluster that is using High Availability LVM (HA-LVM) tagged variant?

Resolution

Assuming that HA-LVM is configured according to instructions in What is a Highly Available LVM (HA-LVM) configuration and how do I implement it? you can follow steps below.

  1. If there were any changes to storage then first follow article How to rescan the SCSI bus to add or remove a SCSI device without rebooting the computer on all cluster nodes. This is is to ensure that there are no discrepancies in how the nodes in cluster see the storage. All shared storage should be visible same way across the whole cluster.

  2. (Optional ) Prepare cluster services/resources for changes by "unmanaging" LVM resources as described in the article below:

  3. Once prepared, you can follow instructions in solution How to extend a logical volume and its filesystem online in Red Hat Enterprise Linux? to resize the LV and filesystem on it. Note the instructions from step 2. on which node the changes can be done.

  4. After finishing changes restore the cluster services/resources as described in articles from step 2.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments