1828629 Members
1786 Online
109983 Solutions
New Discussion

cluster query

 
SOLVED
Go to solution
BFA6
Respected Contributor

cluster query

Hi,

I have a 2 node MC/SG cluster. If I halt the primary node, without halting package or the cluster, will the package fail over to the secondary node ?

Thanks,

Hilary
11 REPLIES 11
Helen French
Honored Contributor

Re: cluster query

Hi,

What do u mean by halting the primary node without halting package or cluster ?

If your clustering is configured properly, the unavailability of primary node, will cause a package shift to the secondary.

HTH,
Shiju
Life is a promise, fulfill it!
Sanjay_6
Honored Contributor

Re: cluster query

Hi Hilary,

If you have two node cluster and if there is a package running on node1. It will failover to the other cluster node node2 if node2 is configured as the alternate node for the package and if the node1 is shutdown or taken out of the cluster. However if package switching is disbaled for the package, the package will not failover to the other node node2. To check if the package switching is enabled on not do a cmviewcl,

cmviewcl -v -p package_name

Hope this helps.

Regds
Jeff Schussele
Honored Contributor

Re: cluster query

Certainly should IF pkg switching is enabled.

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
BFA6
Respected Contributor

Re: cluster query

Hi,

Package switching is enabled.

If I do a shutdown -h 0 on the primary node, without doing anything else, will the package switch, or will the secondary node form a reform the cluster, with just itself as a member ?

Hilary
Jeff Schussele
Honored Contributor

Re: cluster query

Hilary,

Should do both - reform the cluster as a single node AND start the pkg on it.

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Sanjay_6
Honored Contributor

Re: cluster query

Hi Hilary,

You can test the package switching by just taking the node1 out of the cluster.

Run this on node1,

cmhaltnode

The node2 should form a cluster with itself as the only node in the cluster and the package that was running on node1 should start on node2. You can also try this by simply doing a shutdown on node1,

shutdown -h now
or shutdown -h 0

This will do a shutdown on node1 and then reform the cluster with only node2 and move the package running on node1 to node2.

Hope this helps.

Regds
melvyn burnard
Honored Contributor

Re: cluster query

Actually both should occur.
As part of the shutdowmn of the primary node, the secondary node will be informed the primary is leaving the clsuter, and a clsuter reform will take place that results in a single node cluster.
During the shutdown, the primary node will halt the package, and the secondary will then start the package up, PROVIDED that the package variables are enabled for both LOCAL and GLOBAL switching. Check cmviewcl to confirm
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Helen French
Honored Contributor

Re: cluster query

Hi,

Yes, it will reform the cluster and the package will shift to the secondary node (provided the cluster configuration is perfect).

Btw, when you do the shutdown -h 0, the rc scripts will shutdown the cluster services in the primary node.

HTH,
Shiju
Life is a promise, fulfill it!
BFA6
Respected Contributor

Re: cluster query

Thanks for all the replies.

The reason for the query is that we are having a powerdown and I have issued instructions for the package & cluster to be halted, then both machines halted. A colleague has suggested that this is not necessary & the boxes can just be halted.

Thanks,

Hilary
melvyn burnard
Honored Contributor
Solution

Re: cluster query

well the answer to that is that you could indeed just shutdown both nodes.
The issue to keep in mind is that if you shutdown the primary node first, the package will start to switch, or even complete switching, and then you want to shut the second server down.
If you are looking at powering down BOTH nodes at the same time, it might be better to do cmhaltcl -f first to ensure the application shuts down and stays down, then halt the nodes.
Otherwise, issue the shutdown on the node that is NOT running the package, and after a short period then do the same on the other node.
This just saves the time for an unnecessary packag eswitch.

HTH
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
James R. Ferguson
Acclaimed Contributor

Re: cluster query

Hi Hilary:

Since you indicate you will be shutting down both nodes, remember that you may find on bootup that a cluster does not automatically form. This will occur is both nodes are not booted within a 10-minute (AUTO_START_TIMEOUT) window. If this is the case, allow the TIMEOUT to expire and manually issue a 'cmruncl'. 'cmrunnode' will not start a one-node cluster.

Regards!

...JRF...