[Pacemaker] What value should be in the $OCF_RESKEY_CRM_meta_notify_slave_uname when a quorum is lost?
Andrew Beekhof
andrew at beekhof.net
Sun Nov 10 23:44:02 UTC 2013
On 6 Nov 2013, at 12:42 am, Andrey Groshev <greenx at yandex.ru> wrote:
> Hi All!
> I am interested in this subject, because happens is the following situation.
> I build cluster on four nodes with postgres master/slave configuration.
> Set quorum-policy=stop
> Run the cluster and conducted an experiment - turned off the two nodes.
> Resources were off, but not as it I thought.
You checked this?
http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/_multi_state_proper_interpretation_of_notification_environment_variables.html
>
> In code resource-agents exist next strings....
>
> if [ "$1" = "master" -a "$OCF_RESKEY_CRM_meta_notify_slave_uname" = " " ]; then
> ocf_log info "Removing $PGSQL_LOCK."
> rm -f $PGSQL_LOCK
> fi
>
> And when event "lost quorum" this variable is not equal to the "empty".
> It equal last exist slave.
> What has to be right?
>
> I wrote Takatoshi, he said it was not behaving correctly Paeymaker.
> https://github.com/t-matsuo/resource-agents/issues/28
>
>
> _______________________________________________
> 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