Hello, On 10/23/2011 01:32 AM, ge...@riseup.net wrote: > Hello all, > > Got a problem with the automatic failover if one node is rebooted. > I recently got the info that I maybe forgot to unmigrate the resource with > 'crm resource unmigrate <rsc>. I just did this now on both nodes and > tested it with rebooting - same situation. > > I attach my configuration, and help would be appreciated! > > Thanks, > Georg > > ----------------------------------------------------- > node asterisk1 \ > attributes standby="off" > node asterisk2 \ > attributes standby="off" > primitive asteriskd lsb:asterisk \ > meta target-role="Started" > primitive drbd_pbx ocf:linbit:drbd \ > params drbd_resource="r0" \ > op monitor interval="10s" > primitive fs_pbx ocf:heartbeat:Filesystem \ > params device="/dev/drbd0" directory="/data" fstype="ocfs2" > primitive hylafax lsb:hylafax \ > meta target-role="Started" > primitive iaxmodem lsb:iaxmodem \ > meta target-role="Started" > primitive ip_extern_pbx ocf:heartbeat:IPaddr2 \ > params ip="172.251.1.126" nic="eth0" \ > op monitor interval="10s" > primitive ip_intern_pbx ocf:heartbeat:IPaddr2 \ > params ip="192.168.1.93" nic="eth0" \ > op monitor interval="10s" > primitive route_extern_pbx ocf:heartbeat:Route \ > params destination="172.251.1.1" gateway="172.251.1.126" > source="172.251.1.126" > group pbx ip_intern_pbx ip_extern_pbx route_extern_pbx fs_pbx iaxmodem > hylafax asteriskd > ms ms_drbd_pbx drbd_pbx \ > meta master-max="1" master-node-max="1" clone-max="2" > clone-node-max="1" notify="true" > colocation pbx_on_drbd inf: pbx ms_drbd_pbx:Master > order ip-beforce-route inf: ip_extern_pbx route_extern_pbx > order pbx_after_drbd inf: ms_drbd_pbx:promote pbx:start > property $id="cib-bootstrap-options" \ > dc-version="1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b" \ > cluster-infrastructure="openais" \ > expected-quorum-votes="2" \ > stonith-enabled="false" > rsc_defaults $id="rsc-options" \ > resource-stickiness="INFINITY"
don't do this .... resource-stickiness="INFINITY" ... any positive value, like 10 ... will do fine here. Regards, Andreas -- Need help with Pacemaker? http://www.hastexo.com/now > > > _______________________________________________ > Pacemaker mailing list: Pacemaker@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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Pacemaker mailing list: Pacemaker@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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker