Sun Cluster 3.0 系统管理指南

4.1.2 如何移除定额设备

一个定额磁盘移除后,它便不再参与投票来建立定额。注意,所有由两个节点组成的群集均需要至少配置一个定额设备。如果要移除的是群集上的最后一个定额设备,则 scconf(1M) 将无法从配置中移除该设备。


注意:

如果打算移除的设备是群集中的最后一个定额设备,请参见"4.1.3 如何从群集中移除最后一个定额设备"中介绍的过程。


  1. 成为群集中一个节点上的超级用户。

  2. 确定要移除的定额设备。


    # scconf -pv | grep Quorum
    
  3. 执行 scsetup(1M) 公用程序。


    # scsetup
    

    出现主菜单。

  4. 通过输入 1(定额)来访问定额菜单,以使用定额设备。

  5. 通过输入 2(移除定额磁盘)来移除定额设备。

    回答移除进程中显示的问题。

  6. 退出 scsetup

  7. 检验是否已移除定额设备。


    # scstat -q
    

4.1.2.1 示例-移除一个定额设备

此示例展示如何从配置了两个或更多定额设备的群集中移除一个定额设备。


[Become superuser on a node and place the node to be removed in maintenance state.]
[Determine the quorum device to be removed:]
# scconf -pv | grep Quorum
[Execute the scsetup utility:]
# scsetup
[Select option 1:]
*** Main Menu ***
    Please select from one of the following options:
      1) Quorum
       ...
    Option:  1
[Select option 2:]
*** Quorum Menu ***
    Please select from one of the following options:
       ...
      2) Remove a quorum disk
       ...
    Option:  2
[Answer the questions when prompted:]
 >>> Remove a Quorum Disk <<<
    ...
    Is it okay to continue (yes/no) [yes]? <Return>
    Which quorum disk do you want to remove (d<N>)?  d4
    Is it okay to proceed with the update (yes/no) [yes]? <Return>
 
scconf -r -q globaldev=d4
 
    Command completed successfully.
    Hit ENTER to continue: 
[Quit the scsetup Quorum Menu and Main Menu:]
    ...
    Option:  q
[Verify the quorum device is removed:]
# scstat -q
 
-- Quorum Summary --
 
  Quorum votes possible:      3
  Quorum votes needed:        2
  Quorum votes present:       3
 
-- Quorum Votes by Node --
 
                    Node Name           Present Possible Status
                    ---------           ------- -------- ------
  Node votes:       phys-schost-1       1        1       Online
  Node votes:       phys-schost-2       1        1       Online
 
-- Quorum Votes by Device --
 
                 Device Name         Present Possible Status  Owner
                 -----------         ------- -------- ------  -----
  Device votes:  /dev/did/rdsk/d3s2  1        1       Online  phys-schost-1