[Pacemaker] 4 node cluster help needed

Florian Haas florian at hastexo.com
Wed Nov 2 15:58:21 UTC 2011


On 2011-11-02 16:41, Van Tonder, Raymond wrote:
> Hi 
> 
> I'm setting up a 4 node cluster
> 
> 2 of the nodes for DB (mysql) in master-slave failover config

Um, that's not consistent with the config. What you're running is a
single-instance MySQL LSB primitive; for a Master/Slave replication
managed by Pacemaker you would use the OCF resource agent
(ocf:heartbeat:mysql) and wrap it in a master/slave set.

> And 
> 2 nodes running jboss server active/active 

There is no trace of that in the config either.

> What do I do so that pacemaker wont look for a "mysqlcl_monitor_0" on
> the servers that will be hosting the jboss.

IIRC that's a no-can-do in a symmetric cluster; Pacemaker will pretty
much always execute the probe.

> This is the config I have so far ... early stages.
> 
> crm configure show
> node kccintodb01 \
> 	attributes standby="off"
> node kccintodb11 \
> 	attributes standby="off"
> node kccintojb01 \
> 	attributes standby="off"
> node kccintojb11 \
> 	attributes standby="off"
> primitive ClusterIP ocf:heartbeat:IPaddr2 \
> 	params ip="10.42.17.212" cidr_netmask="32" \

Er, no. That cidr_netmask is incorrect.

> 	op monitor interval="30s"
> primitive mysqlcl lsb:mysql \
> 	meta target-role="Started"
> group mysql ClusterIP mysqlcl
> property $id="cib-bootstrap-options" \
> 	dc-version="1.1.2-f059ec7ced7a86f18e5490b67ebf4a0b963bccfe" \
> 	cluster-infrastructure="openais" \
> 	expected-quorum-votes="3" \

4 nodes, 3 votes? Did you meddle with this manually?

> 	stonith-enabled="false"

Bad idea.

> rsc_defaults $id="rsc-options" \
> 	resource-stickiness="100"

Cheers,
Florian

-- 
Need help with Pacemaker?
http://www.hastexo.com/knowledge/pacemaker




More information about the Pacemaker mailing list