started.
If this warning persists, the administrator should perform the following steps to enable grace periods on hisserver1 at the next planned downtime:
1. stopsrc -s nfsd
2. smitty nfsgrcperiod 3. startsrc -s nfsd
WARNING: Node hisserver2 has cluster.es.nfs.rte installed however grace periods are not fully enabled on this node. Grace periods must be enabled before NFSv4 stable storage can be used.
PowerHA SystemMirror will attempt to fix this opportunistically when acquiring NFS resources on this node however the change won't take effect until the next time that nfsd is started.
If this warning persists, the administrator should perform the following steps to enable grace periods on hisserver2 at the next planned downtime:
1. stopsrc -s nfsd
2. smitty nfsgrcperiod 3. startsrc -s nfsd
Remember to redo automatic error notification if configuration has changed. Committing any changes, as required, to all available nodes...
Adding any necessary PowerHA SystemMirror entries to /etc/inittab and /etc/rc.net for IPAT on node hisserver1.
Adding any necessary PowerHA SystemMirror entries to /etc/inittab and /etc/rc.net for IPAT on node hisserver2.
Verification has completed normally.
---- end ----
-------------------------------------------------info--------------------------------------------------------------
5. 双机的基本操作
5.1. 双机的启动
Smitty clstart
5.2. 双机的停止
Smitty clstop
5.3. 双机状态的查看
/usr/es/sbin/cluster/utilities/clshowsrv -v
5.4. 保存snapshot
/usr/es/sbin/cluster/utilities/clsnapshot -c -i -n'haconf_20131126'
把.info、.odm下载到本地保存一份
快照存储路径:/usr/es/sbin/cluster/snapshots
6. 双机的切换测试
6.1. 手工停服务器测试
在当前活动资源组的机器中执行
Smitty clstop
* Start now, on system restart or both +
Start Cluster Services on these nodes +
* Manage Resource Groups +
BROADCAST message at startup? +
Startup Cluster Information Daemon? +
Ignore verification errors? +
Automatically correct errors found during +
cluster start?
-d 'install_cache' now [hisserver1] Automatically true true false Interactively
_SPOC_FORCE=Y /usr/es/sbin/cluster/cspoc/fix_args nop cl_rc.cluster '-N' -cspoc-n 'hisserver1' '-A' '-b' '-i' '-C interactive'
6.2. 切换资源组 6.2.1. Smitty cspoc
Storage
PowerHA SystemMirror Services Communication Interfaces
Resource Group and Applications PowerHA SystemMirror Logs
PowerHA SystemMirror File Collection Management Security and Users LDAP
Configure GPFS
Open a SMIT Session on a Node
6.2.2. 切换应用
Show the Current State of Applications and Resource Groups Bring a Resource Group Online Bring a Resource Group Offline
Move Resource Groups to Another Node
Suspend/Resume Application Monitoring Application Availability Analysis
6.3. 模拟网卡故障测试
6.4. 模拟服务器异常宕机测试
7. 双机的其他操作
7.1. lscluster –d命令
# lscluster -d
Storage Interface Query
Cluster Name: hisserver_cluster
Cluster UUID: 7c8c4162-487b-11e3-b06b-5cf3fced3726 Number of nodes reporting = 2 Number of nodes expected = 2
Node hisserver1
Node UUID = 7c8fb2e8-487b-11e3-b06b-5cf3fced3726 Number of disks discovered = 1 hdisk2:
State : UP
uDid : 332136005076802810C00900000000000000204214503IBMfcp uUid : 867a69f2-31a2-6c10-caa7-72fb7291e5c2 Site uUid : 51735173-5173-5173-5173-517351735173 Type : REPDISK
Node hisserver2
Node UUID = 7ca3bf5e-487b-11e3-b06b-5cf3fced3726 Number of disks discovered = 1 hdisk2:
State : UP
uDid : 332136005076802810C00900000000000000204214503IBMfcp uUid : 867a69f2-31a2-6c10-caa7-72fb7291e5c2 Site uUid : 51735173-5173-5173-5173-517351735173 Type : REPDISK #
7.2. lscluster –m命令
# lscluster -m
Calling node query for all nodes...
Node query number of nodes examined: 2
Node name: hisserver1
Cluster shorthand id for node: 1
UUID for node: 7c8fb2e8-487b-11e3-b06b-5cf3fced3726 State of node: UP NODE_LOCAL Smoothed rtt to node: 0
Mean Deviation in network rtt to node: 0 Number of clusters node is a member in: 1
CLUSTER NAME SHID UUID hisserver_cluster 0 7c8c4162-487b-11e3-b06b-5cf3fced3726
SITE NAME SHID UUID LOCAL 1 51735173-5173-5173-5173-517351735173
Points of contact for node: 0
----------------------------------------------------------------------------
Node name: hisserver2
Cluster shorthand id for node: 2
UUID for node: 7ca3bf5e-487b-11e3-b06b-5cf3fced3726 State of node: UP
Smoothed rtt to node: 7
Mean Deviation in network rtt to node: 3 Number of clusters node is a member in: 1
CLUSTER NAME SHID UUID hisserver_cluster 0 7c8c4162-487b-11e3-b06b-5cf3fced3726
SITE NAME SHID UUID LOCAL 1 51735173-5173-5173-5173-517351735173
Points of contact for node: 2 ------------------------------------------
Interface State Protocol Status ------------------------------------------
en0 UP IPv4 none en2 UP IPv4 none #
7.3. /usr/es/sbin/cluster/utilities/clmgr cluster命令
# /usr/es/sbin/cluster/utilities/clmgr query cluster CLUSTER_NAME=\CLUSTER_ID=\
query