[Pacemaker] Having a really hard time with clvmd on RHEL 7 beta

Digimer lists at alteeve.ca
Tue Jan 28 00:01:55 UTC 2014


On 27/01/14 02:40 PM, David Vossel wrote:
> ----- Original Message -----
>> From: "Digimer" <lists at alteeve.ca>
>> To: "The Pacemaker cluster resource manager" <pacemaker at oss.clusterlabs.org>
>> Sent: Monday, January 27, 2014 12:15:23 PM
>> Subject: [Pacemaker] Having a really hard time with clvmd on RHEL 7 beta
>>
>> Hi all,
>>
>>     I'm having one heck of a time trying to get clvmd working with
>> pacemaker 1.1.10 on RHEL 7 beta... I can configure DRBD dual-primary
>> just fine. I can also configure DLM to start on both nodes just fine as
>> well.
>>
>>     However, once I try to add clvmd using lsb::clvmd, the cluster fails
>> randomly.
>>
>>     Here is the good config:
>
> <snip/>
>
> Looking at your config, unless I'm missing something I don't see ordering constraints between dlm and clvmd.  You need the "start dlm-clone then start clvmd-clone" order constraint as well as a "colocate clvmd-clone with dlm-clone" colocation constraint.  Otherwise, you are going to run into random start and stop errors.
>
> Even after you do this, you may still have problems. The lsb:clvmd init script performs some unnecessary blocking operations during the 'status' operation. I have a patch attached to this issue, https://bugzilla.redhat.com/show_bug.cgi?id=1040670 , that should resolve that issue if you hit it.
>
> Hope that helps :)
>
> -- Vossel

I think you nailed it. I deleted the old clvmd resource and recreated it 
with:

pcs cluster cib clvmd_cfg
pcs -f clvmd_cfg resource create clvmd lsb:clvmd params 
daemon_timeout=30s op monitor interval=60s
pcs -f clvmd_cfg resource clone clvmd clone-max=2 clone-node-max=1
pcs -f clvmd_cfg constraint colocation add dlm-clone clvmd-clone INFINITY
pcs -f clvmd_cfg constraint order start dlm then start clvmd-clone
pcs cluster cib-push clvmd_cfg

So far, I've been able to start and stop the clvmd resource reliably!

And so the learning continues... :)

Thanks!!

-- 
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without 
access to education?




More information about the Pacemaker mailing list