HACMP 第 5 部分:后期安装工作和管理任务(2) - 图文 联系客服

发布时间 : 星期五 文章HACMP 第 5 部分:后期安装工作和管理任务(2) - 图文更新完毕开始阅读1798d7e86294dd88d0d26b4b

要将资源组置于在线,请运行 smitty cl_admin 并选择 HACMP Resource Group and Application Management → Bring a Resource Group Online(请参见示例 17)。

示例 17 资源组管理菜单

HACMP Resource Group and Application Management Move cursor to desired item and press Enter.

Bring a Resource Group Online Bring a Resource Group Offline Move a Resource Group to Another Node Suspend/Resume Application Monitoring

Application Availability Analysis F1=Help F2=Refresh F3=Cancel F8=Image

F9=Shell F10=Exit Enter=Do

选择要置于在线的资源组,以及将在其上激活该资源组的节点。所选节点将成为优先级覆盖位置(请参见示例 18)。

注意:只能对处于离线和错误状态的资源组执行此操作。 示例 18 选择要置于在线的资源组 Bring a Resource Group Online Type or select values in entry fields.

Press Enter AFTER making all desired changes.

[Entry Fields]

Resource Group to Bring Online customrg

Destination Node p630n01

Persist Across Cluster Reboot? false +

F1=Help F2=Refresh F3=Cancel F4=List F5=Reset F6=Command F7=Edit F8=Image

F9=Shell F10=Exit Enter=Do

检查 SMIT 输出以确认操作是否成功(请参见示例 19)。 示例 19 SMIT 状态屏幕

COMMAND STATUS

Command: OK stdout: yes stderr: no Before command completion,

additional instructions may appear below.

Attempting to bring group customrg online on node p630n01.

Waiting for cluster to process the resource group movement request..... Waiting for the cluster to stabilize.....

Resource group movement successful. Resource group customrg is online on node p630n01.

Group Name Type State Location Priority Override customrg custom ONLINE p630n01 p630n01 OFFLINE p630n02 p630n01

F1=Help F2=Refresh F3=Cancel F6=Command

F8=Image F9=Shell F10=Exit /=Find n=Find Next

有关其他消息,请参阅 /tmp/clstrmgr.debug 文件(请参见示例 20)。 示例 20 clstrmgr.debug 中的资源组状态 Thu Jul 1 12:35:28 RpcPoll: RESMGR RPC request made!

Thu Jul 1 12:35:28 got rginfo request.

Thu Jul 1 12:35:28 getting resource group info for customrg

Thu Jul 1 12:35:28 request was successful. Thu Jul 1 12:35:28 group customrg has 2 nodes

...

Thu Jul 1 12:35:28 node p630n01 (1) state 4 pol 2 pers 0 pol_secondary 0 pers_secondary 0 Thu Jul 1 12:35:28 Querying the Timer status for customrg

Thu Jul 1 12:35:28 getGroupTimers: ENTER

getGroupTimers: Processing customrg group

Thu Jul 1 12:35:28 No timers

currently active for this group. Thu Jul 1 12:35:28 node p630n02 (2) state 4 pol 2 pers 0 pol_secondary 0 pers_secondary 0 Thu Jul 1 12:35:28 Querying the Timer status for customrg

Thu Jul 1 12:35:28 getGroupTimers: ENTER

getGroupTimers: Processing customrg group

Thu Jul 1 12:35:28 No timers

currently active for this group. ...

******************** * RG STATE TABLE * ******************** Thu Jul Thu Jul ...

Thu Jul Thu Jul Thu Jul Thu Jul Thu Jul Thu Jul ...

Thu Jul Thu Jul Thu Jul ...

Thu Jul

1 12:38:30 GROUP:[customrg]

NODE:[p630n01] STATE:[4] 1 12:38:30 GROUP:[customrg] NODE:[p630n02] STATE:[4] 1 12:38:30 group=customrg, node=p630n01

1 12:38:30 secondary priority=1 1 12:38:30 group=customrg, node=p630n01, state=4

1 12:38:30 group=customrg, node=p630n02

1 12:38:30 secondary priority=2 1 12:38:30 group=customrg, node=p630n02, state=4

1 12:40:04 Enter - RevisitRGStates 1 12:40:04 Resetting customrg to 16 on p630n01 1 12:40:04 Resetting customrg to 4 on p630n02

1 12:40:04 node p630n01 (1) state 16 pol 1 pers 0 pol_secondary 0 pers_secondary 0 Thu Jul 1 12:40:04 Querying the Timer status for customrg ...

/tmp/hacmp.out 文件还包含资源组启动的事件和流程条目(请参见示例 21)。 示例 21 /tmp/hacmp.out 消息

Jul 1 12:39:58 EVENT START: rg_move_acquire p630n01 7 Jul 1 12:39:58 EVENT START: rg_move p630n01 7 ACQUIRE Jul 1 12:39:59 EVENT START: node_up_local ...

customrg:node_up_local[15] clchdaemons -d clstrmgr_scripts -t resource_locator -n p630n01 -o customrg -v ACQUIRING

customrg:node_up_local[15] [[ ACQUIRING = ACQUIRING ]] customrg:node_up_local[15] [[ NONE = ACQUIRE_SECONDARY ]]

customrg:node_up_local[15] [[ NONE = PRIMARY_BECOMES_SECONDARY ]]

customrg:node_up_local[34] cl_RMupdate acquiring customrg node_up_local