[Pacemaker] Problem configuring a simple ping resource

Jacobo García jacobo.garcia at gmail.com
Thu Jun 27 15:48:14 UTC 2013


Effectively Lars, just editing the attribute symmetric cluster and
setting it to true made the resource work. This also has helped me to
clarify the concepts of assymetric and symetric clusters.

Thanks,

Jacobo García

On Thu, Jun 27, 2013 at 5:10 PM, Lars Marowsky-Bree <lmb at suse.com> wrote:
> On 2013-06-27T17:01:37, Jacobo García <jacobo.garcia at gmail.com> wrote:
>
>> Enable assymetric clustering
>> crm_attribute --attr-name symmetric-cluster --attr-value false
>>
>> Then I configure the resource:
>> crm configure primitive ping ocf:pacemaker:ping params
>> host_list="10.34.151.73" op monitor interval=15s timeout=5s
>> WARNING: ping: default timeout 20s for start is smaller than the advised 60
>> WARNING: ping: specified timeout 5s for monitor is smaller than the advised 60
>>
>> This is what I get now:
>>
>> crm status
>> ============
>> Last updated: Wed Jun 26 16:49:20 2013
>> Last change: Wed Jun 26 16:48:01 2013 via cibadmin on ip-10-35-147-209
>> Stack: openais
>> Current DC: ip-10-35-147-209 - partition with quorum
>> Version: 1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c
>> 2 Nodes configured, 2 expected votes
>> 1 Resources configured.
>> ============
>>
>> Online: [ ip-10-34-151-73 ip-10-35-147-209 ]
>>
>> crm resource list
>> ping (ocf::pacemaker:ping) Stopped
>
> You've configured the cluster so that no node is eligible to run
> resources unless you allow it (when you turned off symmetric
> clustering). So you need to provide explicit location constraints to
> allow the ping resource to run. (And you probably want to clone it.)
>
> Or, easiest, don't switch to asymmetric clustering. I don't think that's
> what you want.
>
>
> Regards,
>     Lars
>
> --
> Architect Storage/HA
> SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg)
> "Experience is the name everyone gives to their mistakes." -- Oscar Wilde
>
>
> _______________________________________________
> 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