Sun Cluster 系统管理指南(适用于 Solaris OS)

Procedure如何从设备组中删除节点 (Veritas Volume Manager(Veritas 卷管理器))

使用以下过程可从 Veritas Volume Manager(Veritas 卷管理器) (VxVM) 设备组(磁盘组)的潜在主节点列表中删除某个群集节点。

phys-schost# 提示符表示全局群集提示符。此操作过程适用于全局群集。

此过程提供了 Sun Cluster 命令的长格式。此外,大多数命令还有简短格式。这些命令除了名称长短的不同以外,其功能都是相同的。有关命令及其简短格式的列表,请参见附录 B

  1. 检验节点是否仍是组的成员并该组是 VxVM 设备组。

    设备组类型 VxVM 表示 VxVM 设备组。


    phys-schost-1% cldevicegroup show devicegroup
    
  2. 在当前群集成员节点上,成为超级用户或使用一个可提供 solaris.cluster.readsolaris.cluster.modify RBAC 授权的角色。

  3. 启动 clsetup 实用程序。


    # clsetup
    

    显示“Main Menu”。

  4. 要重新配置设备组,请键入与设备组和卷的选项相对应的编号。

  5. 要从 VxVM 设备组中删除节点,请键入与从 VxVM 设备组删除节点的选项相对应的编号。

    根据提示从设备组中删除群集节点。系统将提示您输入有关以下内容的信息:

    • VxVM 设备组

    • 节点名称

  6. 检验节点是否已从 VxVM 设备组中删除。


    # cldevicegroup show devicegroup
    

示例 5–29 从设备组中删除节点 (VxVM)

本示例说明如何将名为 phys-schost-1 的节点从 dg1 VxVM 设备组中删除。


[Determine the VxVM device group for the node:]
# cldevicegroup show dg1

=== Device Groups === 

Device Group Name:                        dg1
  Type:                                     VXVM
  failback:                                 no
  Node List:                                phys-schost-1, phys-schost-2
  preferenced:                              no
  numsecondaries:                           1
  diskgroup names:                             dg1
[Become superuser and start the clsetup utility:]
# clsetup
 Select Device groups and volumes>Remove a node from a VxVM device group.

Answer the questions when prompted. 
You will need the following information.
  Name:            Example:
  VxVM device group name    dg1
  node names                phys-schost-1

[Verify that the cldevicegroup command executed properly:]
 cldevicegroup remove-node -n phys-schost-1 dg1
 
    Command completed successfully.
Dismiss the clsetup  Device Groups Menu and Main Menu.
[Verify that the node was removed:]
# cldevicegroup show dg1

=== Device Groups === 

Device Group Name:                        dg1
  Type:                                     VXVM
  failback:                                 no
  Node List:                                phys-schost-2
  preferenced:                              no
  numsecondaries:                           1
  device names:                             dg1