Sun Cluster 3.0 系统管理指南

3.4.5 如何从磁盘设备组(VERITAS 卷管理器)中移除节点

遵照此过程从一个运行 VERITAS 卷管理器 (VxVM) 的现有群集磁盘设备组(磁盘组)中移除一个群集节点。

  1. 确定要移除的节点是其成员的磁盘设备组。


    # scstat -D
    
  2. 成为一个当前群集成员节点上的超级用户。

  3. 执行 scsetup 公用程序。


    # scsetup
    

    出现主菜单。

  4. 通过输入 3(设备组和卷)来重新配置一个磁盘设备组。

  5. 通过输入 5(从 VxVM 设备组移除节点)来从 VxVM 磁盘设备组中移除此节点。

    按照提示从磁盘设备组中移除此群集节点。将会提示您输入有关以下两点的信息:

    VxVM 设备组

    节点名

  6. 检验是否已从 VxVM 磁盘设备组中移除此节点:


    # scstat -D	
      ...
      Device group name: devicegroupname
      Device group type: VxVM
      Device group failback enabled: no
      Device group node list: nodename
      Diskgroup name: diskgroupname
      ...

3.4.5.1 示例-从磁盘设备组 (VxVM) 移除节点

此示例展示从 dg1 VxVM 磁盘设备组移除名 为 phys-schost-4 的节点。


[Determine the disk device group for the node:]
# scstat -D
  -- Device Group Servers --
                       Device Group  Primary        Secondary
                       ------------  -------        ---------
  Device group servers: dg-schost-1  phys-schost-1  phys-schost-2
[Become superuser and execute the scsetup utility:]
# scsetup
[Select option 3:]
*** Main Menu ***
    Please select from one of the following options:
      ...
      3) Device groups and volumes
      ...
    Option: 3
[Select option 5:]
*** Device Groups Menu ***
    Please select from one of the following options:
      ...
      5) Remove a node from a VxVM device group
      ...
    Option:  5
[Answer the questions to remove the node:]
>>> Remove a Node from a VxVM Device Group <<<
    ...
    Is it okay to continue (yes/no) [yes]? yes
    ...
    Name of the VxVM device group from which you want to remove a node?  dg1
    Name of the node to remove from this group?  phys-schost-4
    Is it okay to proceed with the update (yes/no) [yes]? yes
 
scconf -r -D name=dg1,nodelist=phys-schost-4
 
    Command completed successfully.
    Hit ENTER to continue: 

[Quit the scsetup Device Groups Menu and Main Menu:]
    ...
    Option:  q
[Verify that the node was removed:]
# scstat -D
  ...
  Device group name: 		dg1
  Device group type: 	VxVM
  Device group failback enabled: 	no
  Device group node list: 	phys-schost-3
  Diskgroup name: 	dg1
  ...