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

Michael Schwartzkopff misch at multinet.de
Wed Jul 22 22:22:28 MDT 2009


Am Mittwoch, 22. Juli 2009 23:38:26 schrieb Alexander Födisch:
> 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.

Process looks OK. Better, of course, is to use the autojoin option in ha.cf. 
So take every node down one-by-one, delete the node config line, add
"autojoin any" and start up that node.

> 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

Oops? Did you say you have CRM enabled? Why are your resources in haresources 
notification? With CRM enabled you just have to add the resource and make a 
location constraint.

Michael Schwartzkopff.



More information about the Linux-HA mailing list