Operating System - HP-UX
1825011 Members
4690 Online
109678 Solutions
New Discussion юеВ

Need to reboot the node in two node cluster

 
Jayu
Occasional Advisor

Need to reboot the node in two node cluster

I am new to HP Service guard. I have need to reboot a node in two node cluster. I have verified that the node is not a primary node. Do I need to use cmhaltnode commnd explicitly ?
6 REPLIES 6
sujit kumar singh
Honored Contributor

Re: Need to reboot the node in two node cluster

hi jayu,


what i am going to tell is true for a cluster that is a normal Service Guard Cluster.(Hope that this is not an Oracle RAC Cluster or with SGeRAC)

better if u can post the O/P of the command

#cmviewcl -v

and also mention the node that u wish to reboot.

get the application team informed and tell them if they wish to stop any services running on that node.

do u wiwsh to move the packages running on the node to failover to the other node when u shall reboot this node that is is this node running any packages on this one, then u can go ahead to stop the packages on that node first, then start those pacjakes on the other node, when packages that were on this node are started by u on the other node, then uc an simply give a cmhaltnode to this node and give a reboot that is



first look at

#cmviewcl

see that if the node u want to reboot is running any package on it.


if that node thatu want to reboot is running 2 packages fpr example pkg_name1 and pkg_name2 and u wish to shutdown those before reboot of this node then do:

#cmhaltpkg -v
#cmhaltpkg -v

after the packages running on this node halts, u can halt the node using


#cmhaltnode

Then u can give a reboot to this node using

#shutdown -ry 00

NOTE:

if u want that this node comes up after reboot and auto joins the cluster see that the /etc/rc.config.d/cmcluster has the entry AUTOSTART_CMCLD=1 else

if AUTOSTART_CMCLD=0

then after the node comes up u will need to run a #cmrunnode on this node to join the cluster.

yes this is better that u do a cmhaltnode before u go for a reboot of the node and also properly do a cmhaltpkg for the packages that are running on this node properly before u do a cmhaltnode.


Regards
Sujit
sujit kumar singh
Honored Contributor

Re: Need to reboot the node in two node cluster

hi


u can post the #cmviewcl -v


O/p here, anyway if u have known that cmhaltnode is a good practice and u did that successfully please do acknowledge that the activity was successful.


Regards
Sujit
Jayu
Occasional Advisor

Re: Need to reboot the node in two node cluster

Sujit,
Thanks for your prompt reply.
For security reason I can'quite post the o/p of cmviewcl.
But under PACKAGES column I have one entry which says
SG-CFS-pkg and then there are rest
with
SG-CFS-DG-X and SG-CFS-MP-X
where X=1,2,3,4 ...
Do I need to halt each and everyone of them ?
-Jayu.
Patrick Wallek
Honored Contributor

Re: Need to reboot the node in two node cluster

Are the packages running on the node you want to reboot?

If not, then run cmhaltnode to halt the node and then reboot.
sujit kumar singh
Honored Contributor

Re: Need to reboot the node in two node cluster

hi it seems to be a RAC cluster right ? This is running SGeRAC ????


can u just tell me that


But under PACKAGES column I have one entry which says
SG-CFS-pkg and then there are rest
with
SG-CFS-DG-X and SG-CFS-MP-X
where X=1,2,3,4 ...
Do I need to halt each and everyone of them ?

See the CFG DG package is the Dg activation Multinode package and that CFS MP is the Multinode Mount point package.

There might be dependencies among the packages.

U have to know the dependencies of the actual application packages on the MP Packages and that those Application packages and the MP as well as the DG Packages are running on which nodes?

Are u using CFS with CVM?

That also makes a difference.

Regards
Sujit
Jayu
Occasional Advisor

Re: Need to reboot the node in two node cluster

Thanks for all your help.
We were able to successfully reboot the server.