[Pacemaker] problem on moving resource
Dejan Muhamedagic
dejanmm at fastmail.fm
Fri Mar 15 10:46:48 CET 2013
Hi,
On Thu, Mar 14, 2013 at 05:35:54PM -0300, Charles Mean wrote:
> Hey Guys,
>
> I am running heartbeat 3.0.5 and pacemaker 1.1.7 with two hosts(host01,
> host02).
> The thing is, when I try to define host01 as the preferred by the following
> command:
> crm configure location prefer-host01 NginxHA_and_ClusterIP 100: host01
>
> This message show up:
> WARNING: prefer-host01: referenced node host01 does not exist
Seems to be this one:
https://savannah.nongnu.org/bugs/?38036
Will test with the configuration you provided.
Thanks,
Dejan
> So I tried to change the node name by its
> id(f6610e2a-d942-48ab-9455-2b16e018dd25):
> crm configure location prefer NginxHA_and_ClusterIP 100:
> f6610e2a-d942-48ab-9455-2b16e018dd25
>
> And it looks like good, but I can not really move the resource from host02
> to host01 when host01 become healthy(even after the stickiness).
>
> Follow my configuration:
> # crm configure show
> node $id="68c284e1-8793-4e5b-b7f0-83d1d5978a4d" host02
> node $id="f6610e2a-d942-48ab-9455-2b16e018dd25" host01
> primitive ClusterIP ocf:heartbeat:IPaddr2 \
> params ip="192.168.2.100" cidr_netmask="24" nic="eth0" \
> op monitor interval="1s"
> primitive NginxHA ocf:heartbeat:nginx \
> params configfile="/etc/nginx/nginx.conf" httpd="/usr/sbin/nginx" port="80"
> status10url="/nginx_status" \
> op monitor interval="10s" timeout="30s" \
> op start interval="0" timeout="40s" \
> op stop interval="0" timeout="60s"
> group NginxHA_and_ClusterIP ClusterIP NginxHA
> location prefer-host01 NginxHA_and_ClusterIP 100:
> f6610e2a-d942-48ab-9455-2b16e018dd25
> colocation NginxHA_with_ClusterIP inf: ClusterIP NginxHA
> order NginxHA_after_ClusterIP inf: ClusterIP NginxHA
> property $id="cib-bootstrap-options" \
> dc-version="1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff" \
> cluster-infrastructure="Heartbeat" \
> stonith-enabled="false" \
> no-quorum-policy="ignore"
> rsc_defaults $id="rsc-options" \
> resource-stickiness="100"
>
> According to pacemaker, the configuration is OK:
> # crm_verify -L; echo "Status: $?"
> Status: 0
>
> Do you know what is going on with this setup ?
>
> Thank you
> _______________________________________________
> 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