[HP-UX] HA切換命令
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
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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- PostgreSQL DBA(32) - HA#1(pg_rewind切換)SQL
- PostgreSQL DBA(33) - HA#2(pg_rewind切換圖解)SQL圖解
- db_ha叢集安裝後的自動切換及切換後的判斷步驟說明文件
- cd命令切換目錄簡寫
- Homestead如何切換命令列中php的版本命令列PHP
- Linux基礎命令---切換使用者suLinux
- Linux命令 切換使用者型別 suLinux型別
- 03工作目錄切換命令與文字檔案編輯命令
- 程式切換(上下文切換)
- [小白工具書]一行命令切換本地Python環境Python
- 棧切換
- 【Git】2. Git常用命令詳解、版本切換原理Git
- 老闆下了死命令,要把日誌系統切換到Logback
- 切換java版本Java
- 切換UNDO(zt)
- 切換 PHP 版本PHP
- ubuntu切換源Ubuntu
- Git分支切換Git
- HP-UX執行Oracle相關命令報錯Memory fault(coredump)分析處理UXOracle
- elasticsearch啟動加一些linux切換使用者的命令ElasticsearchLinux
- asynchronous i/o (aio) on HP-UXAIUX
- jdk 多版本切換JDK
- 多螢幕切換
- centos 切換 jdk 版本CentOSJDK
- linux zsh 切換 bashLinux
- Mac切換Python版本MacPython
- GCC 多版本切換GC
- Redis主從切換Redis
- DATAGUARD強行切換
- lnmp 切換PHP版本LNMPPHP
- iOS 切換鍵盤iOS
- uniapp 滑動切換APP
- DG的切換操作
- DATAGUARD失敗切換
- cd 切換目錄
- valet 切換 PHP 版本PHP
- cd:切換目錄
- IP地址切換工具
- jq切換皮膚