[Linux-HA] Adding a node to HA-Cluster without service interruption

Alexander Födisch foedisch at eva.mpg.de
Wed Jul 22 15:38:26 MDT 2009


Hi,

I have a samba cluster w/ three nodes (heartbeat 2.1.3 / crm-enabled). Now I need to add a fourth one. What 
will be the best way to do this w/o any service interruption?

First step - Node4 has to become a member of the cluster. I would do it like this:


Node1: /etc/init.d/heartbeat stop
Node1: add Node4 to /etc/ha.d/ha.cf
Node1: /etc/init.d/heartbeat start

Node2: /etc/init.d/heartbeat stop
Node2: add Node4 to /etc/ha.d/ha.cf
Node2: /etc/init.d/heartbeat start

Node3: /etc/init.d/heartbeat stop
Node3: add Node4 to /etc/ha.d/ha.cf
Node3: /etc/init.d/heartbeat start

On Node4 heartbeat is already configured, so "/etc/init.d/heartbeat start" on Node4 will be enough.


----


Second step - we have to add a resource, for which Node4 should become the preferred node.

My idea:


Node1: /etc/init.d/heartbeat stop
Node1: add a line to haresources like:
	node4  IPaddr2::192.168.y.z/24/ethX:Y  samba-ha::node4
Node1: /etc/init.d/heartbeat start

Node2: /etc/init.d/heartbeat stop
Node2: add a line to haresources like:
	node4  IPaddr2::192.168.y.z/24/ethX:Y  samba-ha::node4
Node2: /etc/init.d/heartbeat start

Node3: /etc/init.d/heartbeat stop
Node3: add a line to haresources like:
	node4  IPaddr2::192.168.y.z/24/ethX:Y  samba-ha::node4
Node3: /etc/init.d/heartbeat start

Node4: /etc/init.d/heartbeat stop
Node4: add a line to haresources like:
	node4  IPaddr2::192.168.y.z/24/ethX:Y  samba-ha::node4
Node4: /etc/init.d/heartbeat start



Will this work? Is there a more comfortable way?



Thanks a lot
Alex



More information about the Linux-HA mailing list