Tuesday 28 April 2015

LVM2. change a clustered LVM volume group to non-clustered

APPLIES TO:


Operating Systems:
  • RHEL5
  • RHEL6
  • RHEL7

SYMPTOMS


Need to activate cluster volume group

SOLUTION


Check, is this volume group is clustered:
# vgdisplay vgtest01 --config 'global {locking_type = 0}' | grep Clustered
  WARNING: Locking disabled. Be careful! This could corrupt your metadata.
  Clustered             yes

Now you have two ways.
- If this volume is on cluster node, and clvmd is running
# vgchange -cn vgtest01
   Volume group "vgtest01" successfully changed

- If the cluster cannot achieve quorum, or clvmd is unable to function for whatever reason or you need to temporarily activate the volume group.

# vgchange -cn vgtest01 --config 'global {locking_type = 0}'
  WARNING: Locking disabled. Be careful! This could corrupt your metadata.
  Volume group "vgtest01" successfully changed

# vgchange -ay vgtest01



Before activating clustered volume group in non cluster environment, ensure that this volume group not in use in other cluster members.

      No comments:

      Post a Comment