[Pacemaker] pacemaker + rhel6 and clvmd
David Coulson
david at davidcoulson.net
Wed Mar 14 13:05:29 CET 2012
Are you running 'real' RHEL6?
If so, cman + clvmd + gfs2 is the way to go. You can run pacemaker on
top of all of that (without openais) to manage your resources if you
don't want to use rgmanager.
I've never tried to run clvmd out of pacemaker, but there is a init.d
script for it in RHEL6, so that might 'just work'.
On 3/14/12 7:57 AM, Mark Frasa wrote:
> Hmm:
>
> ls -l /usr/lib/ocf/resource.d/lvm2/clvmd
> ls: cannot access /usr/lib/ocf/resource.d/lvm2/clvmd: No such file or directory
> [root at node0 ~]# yum whatprovides /usr/lib/ocf/resource.d/lvm2/clvmd
> Loaded plugins: product-id, rhnplugin, subscription-manager
> Updating certificate-based repositories.
> No Matches found
>
> Its not there and yum doesn't know where to get it either. Any ideas?
>
> On Wed, Mar 14, 2012 at 12:46 PM, emmanuel segura<emi2fast at gmail.com> wrote:
>> Verify if you have the resource
>>
>> ls -l /usr/lib/ocf/resource.d/lvm2/clvmd
>>
>> Il giorno 14 marzo 2012 12:15, Mark Frasa<mark at frasa.net> ha scritto:
>>> Hello,
>>>
>>>
>>> We are trying to build 3-node cluster with shared-storage (FC-SAN). On
>>> this cluster we need clustered-lvm2 to provide storage to our vm's.
>>> Now we have seems a few tutorials on howto setup clvmd and all of them
>>> are trying to include ocfs2 (which i guess we don't have on RHEL6):
>>>
>>> configure DLM:
>>>
>>> crm(live)configure# primitive dlm ocf:pacemaker:controld \
>>>> op monitor interval="60" timeout="60"
>>> WARNING: dlm: default timeout 20s for start is smaller than the advised 90
>>> WARNING: dlm: default timeout 20s for stop is smaller than the advised 100
>>> crm(live)configure# group base-group dlm
>>> crm(live)configure# clone base-clone base-group \
>>>> meta interleave="true"
>>> crm(live)configure#
>>> crm(live)configure# commit
>>> WARNING: dlm: default timeout 20s for start is smaller than the advised 90
>>> WARNING: dlm: default timeout 20s for stop is smaller than the advised 100
>>>
>>> configure CLVMD:
>>>
>>> crm(live)configure# primitive clvm ocf:lvm2:clvmd \
>>>> params daemon_timeout="30"
>>> lrmadmin[10127]: 2012/03/14_11:32:53 ERROR:
>>> lrm_get_rsc_type_metadata(578): got a return code HA_FAIL from a reply
>>> message of rmetadata with function get_ret_from_msg.
>>> ERROR: ocf:lvm2:clvmd: could not parse meta-data:
>>> ERROR: ocf:lvm2:clvmd: no such resource agent
>>>
>>> So it seems like we are missing a resource-agent named: clvmd, OR it
>>> could have to do something with my setup (referring to the HA_FAIL
>>> message)?
>>> Also i have found a thread where Andrew Beekhof recommends fetching
>>> the o2cb script if you are missing ocf:lvm2:clvmd resource agent:
>>>
>>> http://www.gossamer-threads.com/lists/linuxha/pacemaker/59480
>>>
>>> It seems i am kinda lost here and i have no idea where to look for the
>>> clmvd resource-agent. Does anyone have this kind of setup running in
>>> RHEL6 (or CentOS for that matter) and is willing to point me in the
>>> right direction?
>>>
>>> Any help is highly appreciated!
>>>
>>>
>>> Kind Regards,
>>> Mark Frasa.
>>>
>>> Ps: here is the base crm config we currently use:
>>> http://pastebin.com/2KWMruCT
>>>
>>> _______________________________________________
>>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>>
>>> Project Home: http://www.clusterlabs.org
>>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>>> Bugs: http://bugs.clusterlabs.org
>>>
>>
>>
>> --
>> esta es mi vida e me la vivo hasta que dios quiera
>>
>> _______________________________________________
>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>
>> Project Home: http://www.clusterlabs.org
>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> Bugs: http://bugs.clusterlabs.org
>>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
More information about the Pacemaker
mailing list