Operating System - HP-UX
1748032 Members
5068 Online
108757 Solutions
New Discussion юеВ

SG two node cluster - startup(boot)

 
edi_4
Advisor

SG two node cluster - startup(boot)

Hi! We are running 2 node serviceguard linux cluster (SLES). Suppose this scenario:
One node fail for a long time. Packages are fail over to second node. This works OK.
Now I am going to reboot second node. After reboot the cluster is not running. I can start it using cmruncl -n node2.
Is there any solutions to form cluster automatic - without manual intervention. (cmcluster.rc AUTOSTART_CMCLD=1).
Perhaps I must delete failing node from configuration? Is there more elegant solution. Thank's!


4 REPLIES 4

Re: SG two node cluster - startup(boot)

if a failed node is down and is likely to stay down for a long time, then yes it can make sense to delete it from the cluster configuration.

this is because initial cluster formation can *only* occur when all cluster nodes are present. if you think about it, this makes sense as otherwise the cluster isn't aware of whether a node has failed or whether it has just lost communication. you need to avoid split brain situations, so this rule is always the case.

don't get tempted to code the "cmruncl -n node2" into a startup script - that would be a *very* bad idea!

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Stephen Doud
Honored Contributor

Re: SG two node cluster - startup(boot)

If the failed node will be out of commission for an extended period and you want the running (functional) node to be able to auto-start Serviceguard at boot time, then you must remove the down node from the cluster. You can do that by removing all references to the down node in the package configuration file(s) and the cluster configuration file (comment the references out for now). Then run cmapplyconf on ALL the configuration files at the same time. eg:

# cmapplyconf -f -v -C -P -P ...

After the cluster is reconfigured down to a 1-node cluster, the remaining node should auto-start the cluster at boot time because there are no other nodes it will be waiting on to join with.
Emil Velez
Honored Contributor

Re: SG two node cluster - startup(boot)


check for a /etc/rc.config.d/cmcluster
or something like that with the AUTOSTART_CMCLD variable.

I forget what the path is on linux.


script that starts serviceguard at boot time where the node will join a existing clsuter.
edi_4
Advisor

Re: SG two node cluster - startup(boot)

Thank's for answers. I came from Tru64 - there is a litle diference... If I can understand I have to delete failed member from configuration in order to form cluster on boot, there are not other solutions. Yhank you!