An LVM-activate resource fails to start with error lvmlockd[XXXX]: XXXXXX prepare_lockspace_dlm vg1 mismatching cluster names sys new_clustername arg old_clustername in a Pacemaker cluster

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux 8 (with the Resilient Storage Add-on)

Issue

  • An ocf:heartbeat:LVM-activate resource fails to start after changing the cluster name, and /var/log/messages shows the following log sequence.
Mar  3 14:10:27 node1 LVM-activate(sharedlv1)[6265]: INFO: Activating vg1/lv1
Mar  3 14:10:27 node1 lvmlockd[1913]: 1646345427 prepare_lockspace_dlm vg1 mismatching cluster names sys old_clustername arg new_clustername
...
Mar  3 14:10:27 node1 LVM-activate(sharedlv1)[6265]: ERROR:  VG vg1 start failed: invalid parameters for dlm
Mar  3 14:10:27 node1 LVM-activate(sharedlv1)[6265]: ERROR: Failed to start shared VG(s), exit code: 5
Mar  3 14:10:28 node1 LVM-activate(sharedlv1)[6265]: ERROR: vg1/lv1 failed to activate.
Mar  3 14:10:28 node1 pacemaker-execd[2561]: notice: sharedlv1_start_0[6265] error output [   Reading VG vg1 without a lock. ]
Mar  3 14:10:28 node1 pacemaker-execd[2561]: notice: sharedlv1_start_0[6265] error output [ ocf-exit-reason:vg1/lv1: failed to activate. ]
Mar  3 14:10:28 node1 pacemaker-controld[2564]: notice: Result of start operation for sharedlv1 on node1: error

Resolution

Update the LVM metadata on each shared volume group to use the new dlm cluster name. You can find the procedure in the following solution: How do I rename my Red Hat Enterprise Linux High Availability cluster? | Handling dlm volume groups.

Root Cause

The cluster name was changed without updating the LVM metadata of shared volume groups that use lvmlockd and dlm. The LVM metadata must be updated on each volume group so that the volume group can be activated after the cluster name has been changed.

For more info, refer to the following:

Diagnostic Steps

See Issue section.

SBR
Components
Category

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.