Active/passive LVM resource for a clustered volume group times out on start operation
Issue
- When a single-node LVM cluster resource configured based on this article fails over due to another node rebooting, its start operation times out.
- When an active/passive LVM cluster resource in a cluster with clvmd running fails over due to Pacemaker stopping on another node, its start operation times out.
Environment
- Red Hat Enterprise Linux 7 (with the Resilient Storage Add-on)
- An active/passive
LVM
resource managing one or more volume groups with the clustered (c
) bit set
# pcs config
...
Clone: clvmd-clone
Resource: clvmd (class=ocf provider=heartbeat type=clvm)
Meta Attrs: interleave=true ordered=true
...
Resource: test_vg1 (class=ocf provider=heartbeat type=LVM)
Attributes: exclusive=true volgrpname=test_vg1
...
Resource: test_vg2 (class=ocf provider=heartbeat type=LVM)
Attributes: exclusive=true volgrpname=test_vg2
...
Resource: test_vg3 (class=ocf provider=heartbeat type=LVM)
Attributes: exclusive=true volgrpname=test_vg3
...
Resource: test_vg4 (class=ocf provider=heartbeat type=LVM)
Attributes: exclusive=true volgrpname=test_vg4
...
Ordering Constraints:
start dlm-clone then start clvmd-clone (kind:Mandatory) (id:order-dlm-clone-clvmd-clone-mandatory)
start clvmd-clone then start test_vg1 (kind:Mandatory) (id:order-clvmd-clone-test_vg1-mandatory)
start clvmd-clone then start test_vg2 (kind:Mandatory) (id:order-clvmd-clone-test_vg2-mandatory)
start clvmd-clone then start test_vg3 (kind:Mandatory) (id:order-clvmd-clone-test_vg3-mandatory)
start clvmd-clone then start test_vg4 (kind:Mandatory) (id:order-clvmd-clone-test_vg4-mandatory)
Colocation Constraints:
clvmd-clone with dlm-clone (score:INFINITY) (id:colocation-clvmd-clone-dlm-clone-INFINITY)
test_vg1 with clvmd-clone (score:INFINITY) (id:colocation-test_vg1-clvmd-clone-INFINITY)
test_vg2 with clvmd-clone (score:INFINITY) (id:colocation-test_vg2-clvmd-clone-INFINITY)
test_vg3 with clvmd-clone (score:INFINITY) (id:colocation-test_vg3-clvmd-clone-INFINITY)
test_vg4 with clvmd-clone (score:INFINITY) (id:colocation-test_vg4-clvmd-clone-INFINITY)
# vgs
VG #PV #LV #SN Attr VSize VFree
r7vg 1 2 0 wz--n- <5.51g 384.00m
test_vg1 1 1 0 wz--nc 992.00m 0
test_vg2 1 1 0 wz--nc 992.00m 0
test_vg3 1 1 0 wz--nc 992.00m 0
test_vg4 1 1 0 wz--nc 992.00m 0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.