Sun Cluster 3.0 U1 系统管理指南

6.1.7 如何使节点进入维护状态

如果在较长的一段时间内不使用一个群集节点,应使它进入维护状态。这样,在维护节点时,该节点不参与定额计数。要使群集节点进入维护状态,必须使用 scswitch (1M)shutdown (1M) 来关闭该节点。


注意:

使用 Solaris shutdown 命令来关闭单独一个节点。只有在关闭整个群集时,才应使用 scshutdown 命令。


关闭一个群集节点并使之进入维护状态后,配置了到该节点的端口的所有定额设备的定额选票计数均减去 1。当节点脱离维护模式并返回联机状态后,节点和定额设备选票计数会增加 1。

需要使用 scconf (1M) 命令使群集节点进入维护状态。scsetup 实用程序没有使定额设备进入维护状态的功能。

  1. 成为要进入维护状态的节点的超级用户。

  2. 从该节点抽出所有资源组和磁盘设备组。


    # scswitch -S -h nodelist
    

    -S

    从指定的节点抽出所有的设备服务和资源组。

    -h nodelist

    指定正在切换资源组和设备组的节点。

  3. 关闭进行抽取的节点,转到 OBP 提示符下,并使其脱离群集。


    # shutdown -g0 -y -i0
    

  4. 成为群集中另一节点的超级用户,并使 步骤 3 中关闭的节点进入维护状态。


    # scconf -c -q node=node,maintstate
    

    -c

    指定 scconf 命令的更改形式。

    -q

    管理定额选项。

    node=node

    指定要更改的节点名称或节点 ID。

    maintstate

    使节点进入维护状态。

  5. 检验群集节点目前是否处于维护状态。


    # scconf -p | grep -i vote
    

6.1.7.1 示例 - 使群集节点进入维护状态

下面的示例显示使群集节点转移到维护状态并检验其结果。


[On the node to be put into maintenance state:]
phys-schost-1# scswitch -S -h phys-schost-1
phys-schost-1# shutdown -g0 -y -i0

[On another node in the cluster:]
phys-schost-2# scconf -c -q node=phys-schost-1,maintstate
phys-schost-2# scconf -p | grep -i quorum
 Node quorum vote count:                           1
Quorum devices:                                    d20
Quorum device name:                                d20
  Quorum device votes:                             1
  Quorum device enabled:                           yes
  Quorum device path:                              /dev/did/rdsk/d5s2
  Quorum device hosts (disabled):                 phys-schost-1
  Quorum device hosts (enabled):                  phys-schost-2

6.1.7.2 从此处可转到何处

要将节点返回联机状态,请参阅 "6.1.8 如何使节点脱离维护状态"