啟用鎖盤:vgchange -a <wbr> y <wbr>
/dev/vglock
去啟用鎖盤:vgchange<wbr> -a <wbr>
n <wbr> <wbr> /dev/vglock
編譯生成二進位制配置檔案:# cmapplyconf -v -C /etc/cmcluster/cmcluster.asc
去啟用鎖盤:vgchange
編譯生成二進位制配置檔案:# cmapplyconf -v -C /etc/cmcluster/cmcluster.asc
配置雙機軟體包
修改以下主要檔案:scupkg.asc <wbr>
control.sh <wbr> spy.sh
同步兩邊節點的PKG配置檔案
編譯生成PKG:cmapplyconf -v -P /etc/cmcluster/scupkg/scupkg.asc
同步兩邊節點的PKG配置檔案
編譯生成PKG:cmapplyconf -v -P /etc/cmcluster/scupkg/scupkg.asc
啟動雙機系統:
以root使用者身份在SCU_A上進行下列操作:
scu% su - root
# cmruncl -v -f -n<wbr> SCU_A
# cmviewcl
<wbr>
# cmruncl -v -f -n
# cmviewcl
確認CLUSTER在SCU_A啟動後,再執行下列操作:
# cmrunnode -v SCU_B
# cmviewcl -v
# cmviewcl -v
CLUSTER啟動正常執行,且SCU_B加入到CLUSTER中螢幕顯示如下:
CLUSTER <wbr> STATUS
hpcluster up
NODE<wbr>
STATUS <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr>
STATUS
SCU_A<wbr> up <wbr> running
SCU_B<wbr> up <wbr> running
PACKAGE STATUS STATE<wbr> PKG_SWITCH NODE
scupkg up running<wbr> enabled <wbr>
SCU_A
hpcluster up
NODE
SCU_A
SCU_B
PACKAGE STATUS STATE
scupkg up running
如果一切順利,此時各節點狀態應為Running,包的狀態為up。
HP雙機常見命令:
1、cmruncl <wbr> -f –v –n
node_name(如scp1) <wbr> <wbr>
//啟動cluster
2、cmhaltcl
-v <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr>
//停止cluster
3、cmrunnode –v
node_name <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr>
//節點加入cluster
4、cmhaltnode –v
node_name <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr>
//節點退出cluster
5、cmrunpkg –v package_name
(如scppkg) <wbr> <wbr> <wbr>
//執行軟體包
6、cmmodpkg –e –v package_name(包可切換) //修改軟體包切換標誌
7、cmhaltpkg –v
package_name <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr>
//停止軟體包
8、cmviewcl –v –p
package_name(smppkg) <wbr> <wbr>
//檢視雙機狀態
9、cmcheckconf [-v] [-C cluster_ascii_file] <wbr>
[-P pkg_ascii_file] <wbr> <wbr>
//檢查雙機配置,包配置
10、cmapplyconf [-v] [-C cluster_ascii_file]<wbr> [-P
pkg_ascii_file] <wbr> //編譯生成雙機配置檔案,包配置檔案
10、cmapplyconf [-v] [-C cluster_ascii_file]
11、./spy.sh auto_recover
standby(啟動備機應用,修改機器切換標記,至少執行3分鐘才能完成)
(the end)