# /usr/es/sbin/cluster/utilities/cllscf 顯示羣集拓樸
# /usr/es/sbin/cluster/utilities/cllsclstr 顯示羣集定義
# /usr/es/sbin/cluster/utilities/cllsnode 按節點顯示拓樸信息
# /usr/es/sbin/cluster/utilities/cllsnw 按網絡名稱顯示拓樸信息
# /usr/es/sbin/cluster/utilities/cllsif 按網卡顯示拓樸信息
# /usr/es/sbin/cluster/utilities/clshowres 顯示資源組信息
/usr/sbin/cluster/clstat
# smitty clstart
# smitty clstop
注:有三種停止方式:
graceful:只停止本節點上HACMP的運行,並釋放由本節點管理的資源(允許其它節點接管)。
graceful with takeover:停止本節點上HACMP的運行,釋放資源,讓其他節點接管。
forced:停止本節點上HACMP的運行,但不釋放資源。
# ps -ef | grep cluster
# tail -f /tmp/hacmp.out
# more /var/adm/cluster.log
# cd /usr/sbin/cluster/history
注:此目錄下存放着每天的Cluster運行記錄
HACMP啓動之前:
# netstat -i
此時應可以看到boot和standby地址
# lsvg -o
此時只能看到本地的VG
HACMP啓動之後:
# netstat -i
此時應可以看到service和standby地址
# lsvg -o
此時應可以看到本地的VG及共享VG
參數名稱參數值
Cluster ID
Cluster Name
Node Name
Resource Group Name
Node RelationshipCascadingcascading
Participating Node Names
Service IP label
Filesystems
Filesystems Consistency Checkfsckfsck
Filesystems Recovery MethodSequentialsequential
Volume Groups
Application Servers
Start s cript
Stop s cript
1、在兩臺上分別輸入如下命令:
S85_1# cat /etc/hosts >/dev/tty0
S85_2# cat </dev/tty0
如果在S85_2機能接收到信息,則表明心跳線已經配置好
2、測試心跳線是否可以正常工作:
在A機上:
# stty </dev/tty1
在B機上:
# stty </dev/tty1
如果在兩臺主機上均出現了該TTY的配置信息,則說明心跳線設置正確。
HA可把故障機的應用及其資源(包括用到的IP地址和磁盤空間等)接管過來.
2、/usr/es/sbin/cluster/utilities/cllsclstr Show Cluster Definitions
3、/usr/es/sbin/cluster/utilities/cllsnode Show Topology Information by Node
4、/usr/es/sbin/cluster/utilities/cllsnw Show Topology Information by Network Name
5、/usr/es/sbin/cluster/utilities/cllsif Show Topology Information by Network Adapter
6、/usr/es/sbin/cluster/utilities/clshowres -g'sxptt_con_rg'
Show Resource Information by Resource Group
7、/usr/es/sbin/cluster/utilities/clshowres -n's85a'
Show Resource Information by Node
1. fsck
2. logredo
(Node Relationship):
(1) Cascading
(2) Concurrent
(3) Rotating
HA停止腳本:/usr/sbin/cluster/local/app_stop1
lspv hdiskx 看hdiskx上的詳細信息
lspv 看硬盤及所在VG
lslv lv00 查看LV狀態
lsvg -p datavg 看指定VG上所有的硬盤
# /usr/sbin/cluster/clinfo –a
# /usr/sbin/cluster/clstat
/usr/sbin/cluster/clstat可以幫助你查看當前HACMP的節點狀態。
屏幕會如下顯示:
clstat - HACMP for AIX Cluster Status Monitor
----------------------------------------------------------------
Cluster: cluster1 (1) Tue Jul 20 09:52:03 CDT 1999
State: UP Nodes: 2
SubState: STABLE
Interface: j50_a_srv (0) Address: 192.9.200.1 <-- 服務IP地址
State: UP <--服務IP狀態
Interface: j50_a_tty1 (1) Address: 0.0.0.0
State: UP <--心跳線狀態
Interface: j50_b_srv (0) Address: 192.9.200.2 <-- 服務IP地址
State: UP <--服務IP狀態
Interface: j50_b_tty1 (1) Address: 0.0.0.0
State: UP <--心跳線狀態
# smitty clstart
注:有兩種啓動HACMP的方式:
now:手工啓動HACMP
restart、both:在系統啓動時自動啓動HACMP
# smitty clstop
注:有三種停止方式:
graceful:只停止本節點上HACMP的運行,並釋放由本節點管理的資源,但
允許其它節點接管。
graceful with takeover:停止本節點上HACMP的運行,釋放資源,讓其他節
點接管。
forced:停止本節點上HACMP的運行,但不釋放資源。
# ps –ef | grep cluster
注:應有三個HACMP進程:clstrmgr、clinfo、clsnuxpd
# more /tmp/hacmp.out
# more /var/adm/cluster.log
注:可以在啓動HACMP時使用 # tail –f /tmp/hacmp.out命令,以查看HACMP的
啓動是否正常或跟蹤啓動時的錯誤信息。
# cd /usr/sbin/cluster/history
注:此目錄下存放着每天的Cluster運行記錄
HACMP啓動之前:
# netstat –i
此時應可以看到boot和standby地址
# lsvg –o
此時只能看到本地的VG
HACMP啓動之後:
# netstat –i
此時應可以看到service和standby地址
# lsvg –o
此時應可以看到本地的VG及共享VG
存儲cluster的配置:
#smitty hacmp
選擇:Cluster Configuration→Cluster Snapshots→Add a Cluster Snapshot
鍵入Snapshot文件名(Cluster Snapshot Name)
恢復cluster的配置:
# smitty hacmp
選擇:Cluster Configuration→Cluster Snapshots→Apply a Cluster Snapshot
鍵入Snapshot文件名(Cluster Snapshot Name)
Cluster Snapshot Name:指定Cluster Snapshot的文件名
Cluster Snapshot Des cription:對Cluster Snapshot地描述
Un/Configure Cluster Resource:是否重新配置Cluster資源
Force Apply if verify fails:當Cluster校驗失敗時,是否強制恢復配置
1)、# smitty
選擇:System storage management
File systems
Add/change/show/delete file systems
Journaled file systems
Add a journaled file system
Add a standard journaled file system
選擇共享VG
指定FS的大小,Mount point
2)、# smitty clstop
停止HACMP的運行
3)、在增加FS的節點上作:
# varyoffvg SHARE_VG_NAME
# exportvg SHARE_VG_NAME
在另一個節點上作:
# importvg –y SHARE_VG_NAME –f hdiskX
# varyonvg SHARE_VG_NAME
作此步的目的是將新加入的FS的定義取過來
4)、# smitty hacmp
選擇:cluster configuration
cluster resources
define resource group
change/show resources for a resource group
將增加的FS加入到Cluster資源組的定義中
5)、# smitty hacmp
選擇:cluster configuration
cluster resources
synchronize cluster resources
同步Cluster的資源組的配置
6)、# smitty hacmp
選擇:cluster configuration
cluster verification
進行Cluster配置的校驗