[Pacemaker] IP fail over without controlling the services

Dongdong Zhou dongdong.zhou at meshdigital.com
Thu Jul 26 09:41:36 UTC 2012


Hi,

I'm trying to set up IP auto fail over on a two-way master-slave MySQL
replication cluster. What I'm trying to achieve is to only fail over the
IP when there's a problem on the mysqld service. I don't want pacemaker
to control the mysqld service. 

With my current configuration, pacemaker will always keep the service
running on the active node and the service stopped on the passive node.

Any help would be much appreciated.

primitive VIP ocf:heartbeat:IPaddr2 \
	params ip="109.68.38.75" cidr_netmask="24" \
	op monitor interval="30"
primitive mysqld lsb:mysqld \
	op monitor interval="10" timeout="30"
group mysql mysqld VIP
property $id="cib-bootstrap-options" \
	dc-version="1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d14" \
	cluster-infrastructure="openais" \
	expected-quorum-votes="2" \
	stonith-enabled="false" \
	no-quorum-policy="ignore" \
	last-lrm-refresh="1343214667"
rsc_defaults $id="rsc-options" \
	resource-stickiness="100"


More information about the Pacemaker mailing list