pvmove in cluster with HA-LVM(clvmd) fails with "Error locking on node node2: Volume is busy on another node"
Issue
pvmove
is failing with following message in a cluster:
# pvmove /dev/mapper/src_pv /dev/mapper/dst_pv
Error locking on node node1: Device or resource busy
Error locking on node node2: Volume is busy on another node
Failed to activate lv_test1
Environment
- Red Hat Enterprise Linux (RHEL) 5, 6, 7 with the Resilient Storage Add On
- HA-LVM with
clvmd
locking_type = 3
in/etc/lvm/lvm.conf
- One or more volume groups with the clustered attribute set and managed by an
<lvm>
resource in/etc/cluster/cluster.conf
or byLVM
resource agent in pacemaker
- Attempting to use
pvmove
on said volume group with exclusively activated LVs
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.