[HP-UX] HA切換命令

tolilong發表於2016-02-21
BIOS-->Bootloader-->Kernel-->init-->service-->login-->bash

powermt display dev=all


HP-UX HA相關命令
cmhaltnode XXXXX008    --停止(halt)node
cmrunnode -v XXXXX008  --啟用node

cmviewcl      檢視cluster狀態
cmviewcl -v   檢視cluster詳細狀態


cmrunpkg -v -n XXXXX016 pkg_dwh   在某一節點上執行程式包
cmhaltpkg -v -n XXXXX006 pkg_dwh   在某一節點上停止程式包的執行


[root@xxxxx016:/etc/cmcluster/pkg_dwh]# cmrunpkg -v -n XXXXX016 pkg_dwh 
Running package pkg_dwh on node XXXX016.
cmrunpkg  : Node XXXXX016 is currently unable to run package pkg_dwh.
Check the syslog on node XXXXX016 and pkg log files for more detailed information.


[root@xxxxx016:/]# cmmodpkg
cmmodpkg  : Either the -e, -d or -R option must be specified.
usage: cmmodpkg [-v] {-e | -d} [-n node_name]...  package_name...
   or: cmmodpkg [-v] -R -s service_name package_name


[root@xxxxx016:/etc/cmcluster/pkg_dwh]# cmmodpkg -v -e -n XXXXX016 pkg_dwh
Enabling node XXXX016 for switching of package pkg_dwh.
cmmodpkg  : Successfully enabled package pkg_dwh to run on node XXXXX016.
cmmodpkg  : Completed successfully on all packages specified.
[root@xxxxx016:/etc/cmcluster/pkg_dwh]# 
[root@xxxxx016:/etc/cmcluster/pkg_dwh]# cmrunpkg -v -n XXXXX016 pkg_dwh
Running package pkg_dwh on node XXXXX016.
cmrunpkg  : Successfully started package pkg_dwh.
cmrunpkg  : Completed successfully on all packages specified.


Nov 24 21:36:25 XXXX016 CM-CMD[14140]: cmmodpkg -v -e -n XXXXX016 pkg_dwh 
Nov 24 21:36:25 XXXXX016 cmcld: Request from node SZVSX001 to enable node switching for package pkg_dwh on node XXXXX016.
Nov 24 21:36:40 XXXXX016 CM-CMD[14148]: cmrunpkg -v -n XXXXX016 pkg_dwh 
Nov 24 21:36:40 XXXXX016 cmcld: Request from node XXXXX001 to start package pkg_dwh on node XXXXX016.
Nov 24 21:36:40 XXXXX016 cmcld: Executing '/etc/cmcluster/pkg_dwh/dwh.cntl  start' for package pkg_dwh, as service PKG*38145.
Nov 24 21:36:41 XXXXX016 LVM[14157]: vgchange -a e -q y vgdwh 
Nov 24 21:36:44 XXXXX016 LVM[14167]: vgchange -a e -q y vgdwh2 
Nov 24 21:36:45 XXXXX016 LVM[14177]: vgchange -a e -q y /dev/vgdwh3 
Nov 24 21:36:47 XXXXX016 CM-pkg_dwh[14272]: cmmodnet -a -i 172.17.192.83 172.17.192.0 
Nov 24 21:36:47 XXXXX016 su: + tty?? root-dwh
Nov 24 21:37:03 XXXXX016 CM-pkg_dwh[14329]: cmrunserv dwh_svc >> /etc/cmcluster/pkg_dwh/dwh.cntl.log 2>&1 /etc/cmcluster/pkg_dwh/mon_dwh.sh 
Nov 24 21:37:03 XXXXX016 cmcld: Service PKG*38145 terminated due to an exit(0).
Nov 24 21:37:03 XXXXx016 cmcld: Started package pkg_dwh on node XXXXX016.
Nov 24 21:37:33 XXXXX016 su: + 1 root-oracle

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24237320/viewspace-1992047/,如需轉載,請註明出處,否則將追究法律責任。

相關文章