Operating System - HP-UX
1826452 Members
4063 Online
109692 Solutions
New Discussion

Re: service gaurd problem

 
SOLVED
Go to solution
Shah Gaurang B.
Frequent Advisor

service gaurd problem

Dear all,

I am new for to handle service gaurd due to some problem i would like to restart service gaurd . I have 2 node cluster so pl. can anybody guide me how to stop and restart the cluster.
thanks to all

regards


4 REPLIES 4
RAC_1
Honored Contributor

Re: service gaurd problem

cmhaltcl
cmruncl
There is no substitute to HARDWORK
Mark Nieuwboer
Esteemed Contributor
Solution

Re: service gaurd problem

cmhaltpkg
cmhaltnode
cmhaltcl

cmruncl
if your cluster is configured properly everything will start automaticly.
else
cmrunnode
cmrunpkg

the package and nodes you can see with cmviewcl

grtz. Mark
Raj D.
Honored Contributor

Re: service gaurd problem

Hi Gouranga ,

You can stop the package , then stop the node , the stop the cluster.


# cmhaltpkg -n pri_node -v pkg_name
# cmhaltnode -v nodename
# cmhaltcl

---------
To restart:
# cmruncl
# cmrunpkg -n pri_node -v pkg_name

--
If a package halt fails, the cluster halt will also fail. So shutding down the pacakge with cmhaltpkg will help you to go step by step. For details startup/stop messages you can refer to /etc/cmcluster/pkg_name/pkg_name.cntl.log file.


After restart check with :
# cmviewcl or # cmviewcl -v

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Senthil Kumar .A_1
Honored Contributor

Re: service gaurd problem

Hi,

I have indicated with following assumption,

Assumption:

cluster name : clust1
node1 name : nodea
node2 name : nodeb
pkg1 name : pkga (pri nodea, alt nodeb)
pkg2 name : pkgb (pri nodeb, alt nodea)

Steps:
1)Stopping cluster

Login to nodea
stop all the packages
#cmhaltpkg -v pkga
#cmhaltpkg -v pkgb

stop all the nodes
#cmhaltnode -v nodea
#cmhaltnode -v nodeb

stop the cluster
#cmhaltcl

Verify
#cmviewcl -v

2)starting cluster
start cluster
#cmruncl

start the nodes
#cmrunnode -v nodea
#cmrunnode -v nodeb

start the packages
#cmrunpkg -v -n nodea pkga
#cmrunpkg -v -n nodeb pkgb

enable package for package switching
#cmmodpkg -e pkga
#cmmodpkg -e pkgb

verify
#cmviewcl -v

NOTE: make sure all the while you do not encounter errors. You will usually fing the errors in 3 places. One on the terminal you run the command, second, in /var/adm/syslog/syslog.log file and lastly in /etc/cmcluster//
regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)