Red Hat Bugzilla – Bug 1286026
partial_activation check fails in pacemaker
Last modified: 2016-08-02 13:36:26 EDT
Description of problem:
Customer is using a HA-LVM mirror logical volumes as resource for Pacemaker cluster.
When using the option 'partial_activation=true', like in the following resource,
# pcs resource show vgexample
Resource: vgexample (class=ocf provider=heartbeat type=LVM)
Attributes: volgrpname=vg_example exclusive=true partial_activation=true
Customer expects that in case of failure of a logical volume segment (missing PV), the cluster can still activate the VG and start the volume (in the LVM script, 'partial_activation=true' converts to 'vgchange -ay ... <vg> --partial')
But when running:
# pcs resource move res_grp # res_grp is resource group with the vgexample resource
It's because in the LVM ocf script, before doing the vgchange, the script
runs 'vgck <vg>' (in the LVM_validate_all() function) which fails because of
the missing PV.
When commenting out the vgck part as a test and everything worked as expected.
Version-Release number of selected component (if applicable):
# rpm -qf /usr/lib/ocf/resource.d/heartbeat/LVM
Steps to Reproduce:
1. move resource group which consist of LVM resource with partial_activation=true
Resource group fails to move
The LVM_validate_all() should check the value of OCF_RESKEY_partial_activation
before trying vgck. And the resource group moves to other node
Can he test the patch I've attached to the following bz?
Josef: Can you ask the customer if he can test the patch mentioned in comment #2?
Oyvind: Yes, I will let you know the result once I got feedback from customer. Thanks
Closing this out. The issue described is resolved via the errata that was released in 6.8 via Bugzilla #1266173. The customer case eventually closed without confirmation of the fix, but we expect that it should have been resolved.