下表列出了为一个现有群集添加一个节点时要执行的任务。要正确地完成此过程,必须按如下所示的顺序执行这些任务。
表 6-2 任务对应关系:添加群集节点
任务 |
有关说明,请转到 |
---|---|
在节点上安装主机适配器并检验现有的群集互连是否支持新的节点 |
《Sun Cluster 3.0 U1 Hardware Guide》 |
添加共享存储器 |
《Sun Cluster 3.0 U1 Hardware Guide》 |
将节点添加到授权的节点列表中 - 使用 scsetup。 | "6.2.1 如何将群集节点添加到授权的节点列表中" |
在新的群集节点上安装并配置软件 - 安装 Solaris 操作环境和 Sun Cluster 软件 - 将该节点配置为群集的一部分 |
《Sun Cluster 3.0 U1 安装指南》, 请参阅有关安装并配置 Sun Cluster 软件的部分。 |
下表列出了从一个现有群集中删除一个节点时要执行的任务。要正确地完成此过程,必须按如下所示的顺序执行这些任务。
表 6-3 任务对应关系:删除群集节点
任务 |
有关说明,请转到 |
---|---|
使要删除的节点进入维护状态 - 使用 shutdown 和 scconf | "6.1.7 如何使节点进入维护状态" |
从所有资源组中删除节点 - 使用 scrgadm |
请参阅《Sun Cluster 3.0 U1 Data Services Installation and Configuration Guide》, 有关如何从现有的资源组中删除一个节点的过程。 |
从节点所在的所有设备组中删除节点 - 使用卷管理器命令 |
"3.3.4 如何从磁盘设备组 (Solstice DiskSuite) 中删除节点" 或 |
删除所有到要删除的节点的逻辑传输连接 - 使用 scsetup |
"5.1.3 如何删除 Cluster Transport Cable 传输适配卡和传输结点"
若要从节点删除物理硬件,请参阅《Sun Cluster 3.0 U1 Hardware Guide》, 有关安装和维护群集互连和公共网络硬件部分。 |
删除所有与要删除的节点共享的定额设备 - 使用 scsetup | |
从群集软件配置中删除节点 - 使用 scconf | |
从节点和群集中删除所需的共享存储器 - 请遵照卷管理器文档和硬件指南中的过程 |
SDS 或 VxVM 管理指南 《Sun Cluster 3.0 U1 Hardware Guide》 |
在将一台机器添加到一个现有群集之前,确保该节点上已正确安装和配置所有必需的硬件,并且与专用群集互连具备正确的物理连接。
有关硬件安装的信息,请参阅《Sun Cluster 3.0 U1 Hardware Guide》或服务器附带的硬件文档。
该过程通过将机器的节点名称添加到授权的群集节点列表中,使该机器将其自身安装到群集中。
要完成此过程,必须成为一个当前群集成员节点上的超级用户。
确保已正确完成 "6.2 添加和删除群集节点" 任务对应关系中所列出的所有先决硬件安装和配置任务。
执行 scsetup (1M) 实用程序。
# scsetup |
显示主菜单。
要修改授权的列表,请在"新节点"菜单中输入 3,指定要添加它自身的机器的名称。
按照提示将节点名称添加到群集中, 系统将询问您要添加的节点的名称。
要访问"新节点"菜单,请在主菜单中键入 6。
检验是否已成功执行该任务。
如果 scsetup 实用程序在没有出现任何错误的情况下完成了该任务,将显示消息"Command completed successfully"。
要防止任何新的机器添加到群集中,请在"新节点"菜单中键入 1。
按照 scsetup 提示操作。该选项通知群集忽略通过公共网络来自任何新机器的将其自身添加到群集中的所有请求。
退出 scsetup 实用程序。
在新的群集节点上安装并配置软件。
如《Sun Cluster 3.0 U1 安装指南》中所述,使用 scinstall 或 JumpStart 来完成新节点的安装和配置。
以下示例展示如何将一个名为 phys-schost-3 的节点添加到一个现有群集的授权节点列表中。
[Become superuser and execute the scsetup utility.] # scsetup Select New nodes>Specify the name of a machine which may add itself. Answer the questions when prompted. Verify that the scconf command completed successfully. scconf -a -T node=phys-schost-3 Command completed successfully. Select Prevent any new machines from being added to the cluster. Quit the scsetup New Nodes Menu and Main Menu. [Install the cluster software.] |
有关添加群集节点的整个任务列表,请参阅表 6-2,"任务对应关系:添加群集节点"。
要向现有资源组添加节点,请参阅《Sun Cluster 3.0 U1 Data Services Installation and Configuration Guide》。
这是在从群集删除节点的过程中需要完成的最后一个软件配置过程。要执行此过程,必须成为一个群集节点的超级用户。
确保已正确完成 "6.2 添加和删除群集节点" 任务对应关系中所列出的所有先决任务。
在继续进行此过程前,确保您已使节点处于维护状态,并已从所有资源组、设备组和定额设备配置中删除此节点。
确定群集中的本地磁盘及其相关的原始磁盘设备组名称,例如 dsk/d4.
# scconf -pvv | grep Local_Disk |
确定群集中的哪些本地磁盘和原始磁盘设备组与要删除的节点相连。
# scconf -pvv | grep node-name | grep Device |
禁用 步骤 3 中所确定的每个本地磁盘的 localonly 特性。
有关 localonly 特性的详细信息,请参阅 scconf_dg_rawdisk (1M) 手册页。
# scconf -c -D name=rawdisk-device-group,localonly=false |
从该节点所在的所有原始磁盘设备组中删除该节点。
每个与要删除的节点相连的原始磁盘设备组都必须完成此步骤。
# scconf -r -D name=rawdisk-device-group,nodelist= node |
从群集中删除该节点。
# scconf -r -h node=node |
使用 scstat 检验节点删除情况。
# scstat -n |
要从群集中物理删除该节点,请按《Sun Cluster 3.0 U1 Hardware Guide》中所述删除硬件连接。
从群集中删除设备后,必须在被删除的主机上重新安装 Solaris 操作环境,它才能以任一形式重新发挥作用。
此示例展示如何从一个群集中删除一个节点 (phys-schost-2)。
[Become superuser on any node.] [Identify all local disks and their raw disk device group names:] # scconf -pvv | grep Local_Disk (dsk/d4) Device group type: Local_Disk (dsk/d8) Device group type: Local_Disk [Identify the local disks and raw disk device groups connected to the node being removed:] # scconf -pvv | grep phys-schost-2 | grep Device (dsk/d4) Device group node list: phys-schost-2 (dsk/d2) Device group node list: phys-schost-1, phys-schost-2 (dsk/d1) Device group node list: phys-schost-1, phys-schost-2 [Remove the localonly flag for each local disk on the node:] # scconf -c -D name=dsk/d4,localonly=false [Remove the node from all raw disk device groups:] # scconf -r -D name=dsk/d4,nodelist=phys-schost-2 # scconf -r -D name=dsk/d2,nodelist=phys-schost-2 # scconf -r -D name=dsk/d1,nodelist=phys-schost-2 [Remove the node from the cluster:] # scconf -r -h node=phys-schost-2 [Verify node removal:] # scstat -n -- Cluster Nodes -- Node name Status --------- ------ Cluster node: phys-schost-1 Online |
有关硬件过程,请参阅《Sun Cluster 3.0 U1 Hardware Guide》。
有关删除群集节点的整个任务列表,请参阅 表 6-3 "任务对应关系:删除群集节点"。
要向现有群集添加节点,请参阅 "6.2.1 如何将群集节点添加到授权的节点列表中"。