本节提供有关重新配置群集互连(如: cluster transport adapter 和 cluster transport cable)的过程。这些过程需要安装 Sun Cluster 软件。
在大多数时候,您可以使用 scsetup 实用程序来管理群集互连的群集传输。有关详细信息,请参阅 scsetup(1M) 手册页。
有关群集软件的安装过程,请参阅《Sun Cluster 3.0 U1 安装指南》。有关维护群集硬件组件的过程,请参阅《Sun Cluster 3.0 U1 Hardware Guide》。
表 5-1 任务列表:管理群集互连
任务 |
有关说明,请转到... |
---|---|
管理群集传输 - 使用 scsetup | |
检查群集互连的状态 - 使用 scstat | |
添加群集传输电缆、传输适配卡或传输结点 - 使用 scsetup | |
删除群集传输电缆、传输适配卡或传输结点 - 使用 scsetup | |
启用群集传输电缆 - 使用 scsetup | |
禁用群集传输电缆 - 使用 scsetup |
您还可以使用 SunPlex Manager GUI 来完成此过程。有关详细信息,请参阅 SunPlex Manager 的联机帮助。
执行此步骤不需要作为超级用户登录。
检查群集互连的状态。
# scstat -W |
有关一般状态的消息,请参阅以下内容。
状态消息 |
说明和可能的操作 |
---|---|
联机路径 |
此路径当前工作正常。不需要执行任何操作。 |
路径等待 |
当前正在初始化此路径。不需要执行任何操作。 |
路径出现故障 |
此路径当前不工作。如果路径在等待和联机状态之间,则这种情况是瞬态的。如果重新运行 scstat -W 后此消息依然存在,请执行改正的操作。 |
以下示例说明了当前运行的群集互连的状态。
# scstat -W -- Cluster Transport Paths -- Endpoint Endpoint S tatus -------- -------- ------ Transport path: phys-schost-1:qfe1 phys-schost-2:qfe1 Path online Transport path: phys-schost-1:qfe0 phys-schost-2:qfe0 Path online Transport path: phys-schost-1:qfe1 phys-schost-3:qfe1 Path online Transport path: phys-schost-1:qfe0 phys-schost-3:qfe0 Path online Transport path: phys-schost-2:qfe1 phys-schost-3:qfe1 Path online Transport path: phys-schost-2:qfe0 phys-schost-3:qfe0 Path online |
您还可以使用 SunPlex Manager GUI 来完成此过程。有关详细信息,请参阅 SunPlex Manager 的联机帮助。
确保已安装物理 cluster transport cable。
有关安装 cluster transport cable 的过程,请参阅《Sun Cluster 3.0 U1 Hardware Guide》。
成为群集中任一节点的超级用户。
输入 scsetup 实用程序。
# scsetup |
这时将显示主菜单。
通过键入 3(群集互连)来访问 "Cluster Interconnect" 菜单。
通过键入 1(添加传输电缆)来添加传输电缆。
(按说明输入请求的信息。)
通过键入 2(向节点添加传输适配卡)来添加传输适配卡。
(按说明输入请求的信息。)
通过键入 3(添加传输结点)来添加传输结点。
(按说明输入请求的信息。)
检验是否已添加 cluster transport cable、传输适配卡或传输结点。
# scconf -p | grep cable # scconf -p | grep adapter # scconf -p | grep junction |
以下示例说明了如何使用 scsetup 命令向节点添加传输电缆、传输适配卡或传输结点。
[Ensure the physical cable is installed.] Become superuser on any node and place the node to be removed in maintenance state. # scsetup Select Cluster interconnect. Select either Add a transport cable, Add a transport adapter to a node, or Add a transport junction. Answer the questions when prompted. You Will Need: Example: node names phys-schost-1 adapter names qfe2 junction names hub2 transport type dlpi [Verify that the scconf command completed successfully:] Command completed successfully. Quit the scsetup Cluster Interconnect Menu and Main Menu. [Verify that the cable, adapter, and junction are added:] # scconf -p | grep cable Transport cable: phys-schost-2:qfe0@1 ethernet-1@2 Enabled Transport cable: phys-schost-3:qfe0@1 ethernet-1@3 Enabled Transport cable: phys-schost-1:qfe0@0 ethernet-1@1 Enabled # scconf -p | grep adapter Node transport adapters: qfe2 hme1 qfe0 Node transport adapter: qfe0 Node transport adapters: qfe0 qfe2 hme1 Node transport adapter: qfe0 Node transport adapters: qfe0 qfe2 hme1 Node transport adapter: qfe0 # scconf -p | grep junction Cluster transport junctions: hub0 hub1 hub2 Cluster transport junction: hub0 Cluster transport junction: hub1 Cluster transport junction: hub2 |
您还可以使用 SunPlex Manager GUI 来完成此过程。有关详细信息,请参阅 SunPlex Manager 的联机帮助。
请按照以下过程从节点配置中删除群集传输电缆、传输适配卡和传输结点。禁用电缆后,电缆的两个端点仍处于已配置状态。如果适配卡正用作传输电缆的端点,则无法删除该适配卡。
一个群集节点要成为一个群集的成员,至少需要有一个工作正常的电缆连接到群集互连。禁用电缆前,请务必检验节点的群集互连的状态。对于一个电缆连接,只有验证了它是冗余的(即除它之外还有另外一个连接),才予以禁用。禁用节点所剩的最后一个工作电缆会使该节点脱离群集。
成为群集中任一节点的超级用户。
检查剩余的群集传输路径的状态。
# scstat -W |
如果在尝试删除由两个节点组成的群集中的一个节点时接收到错误(如 "path faulted"),请先调查问题,然后再继续进行此过程。这样的问题可能表明节点路径不可用。如果删除所剩的正常路径,则会使节点脱离群集,并可能导致重新配置群集。
输入 scsetup 实用程序。
# scsetup |
这时将显示主菜单。
通过键入 3(群集互连)来访问 "Cluster Interconnect" 菜单。
通过键入 4(删除传输电缆)来删除电缆。
(按说明输入请求的信息。)
如果删除的是物理电缆,请断开端口与目标设备之间的电缆。
通过键入 5(从节点删除传输适配卡)来删除适配卡。
(按说明输入请求的信息。)
如果要从节点删除物理适配卡,请参阅《Sun Cluster 3.0 U1 Hardware Guide》,以获得有关硬件维护过程的信息。
通过键入 6(删除传输结点)来删除结点。
(按说明输入请求的信息。)
如果结点的任一端口正用作任一传输电缆的端点,则无法删除结点。
检验是否已删除电缆或适配卡。
# scconf -p | grep cable # scconf -p | grep adapter # scconf -p | grep junction |
此命令的输出中不应出现已从给定节点删除的传输电缆或适配卡。
以下示例说明了如何使用 scsetup 命令删除传输电缆、传输适配卡或传输结点。
[Become superuser on any node in the cluster.] [Enter the scsetup utility:] # scsetup Select Cluster interconnect. Select either Add a transport cable, Add a transport adapter to a node, or Add a transport junction. Answer the questions when prompted. You Will Need: Example: node names phys-schost-1 adapter names qfe1 junction names hub1 [Verify that the scconf command completed successfully:] "Command completed successfully." Quit the scsetup Cluster Interconnect Menu and Main Menu. [Verify that the cable, adapter, or junction is removed:] # scconf -p | grep cable Transport cable: phys-schost-2:qfe0@1 ethernet-1@2 Enabled Transport cable: phys-schost-3:qfe0@1 ethernet-1@3 Enabled Transport cable: phys-schost-1:qfe0@0 ethernet-1@1 Enabled # scconf -p | grep adapter Node transport adapters: qfe2 hme1 qfe0 Node transport adapter: qfe0 Node transport adapters: qfe0 qfe2 hme1 Node transport adapter: qfe0 Node transport adapters: qfe0 qfe2 hme1 Node transport adapter: qfe0 # scconf -p | grep junction Cluster transport junctions: hub0 hub2 Cluster transport junction: hub0 Cluster transport junction: hub2 |
您还可以使用 SunPlex Manager GUI 来完成此过程。有关详细信息,请参阅 SunPlex Manager 的联机帮助。
此选项用于启用现有的群集传输电缆。
成为群集中任一节点的超级用户。
输入 scsetup 实用程序。
# scsetup |
这时将显示主菜单。
通过键入 2(群集互连)来访问 "Cluster Interconnect" 菜单。
通过键入 7(启用传输电缆)来启用传输电缆。
出现提示后按说明操作。您需要输入您尝试标识的电缆的一个端点的节点名称和适配卡名称。
检验是否已启用该电缆。
# scconf -p | grep cable |
此示例说明了如何启用节点 phys-schost-2 上的适配卡 qfe-1 上的群集传输电缆。
[Become superuser on any node.] [Enter the scsetup utility:] # scsetup Select Cluster interconnect>Enable a transport cable. Answer the questions when prompted. You will need the following information. You Will Need: Example: node names phys-schost-2 adapter names qfe1 junction names hub1 [Verify that the scconf command completed successfully:] scconf -c -m endpoint=phys-schost-2:qfe1,state=enabled Command completed successfully. Quit the scsetup Cluster Interconnect Menu and Main Menu. [Verify that the cable is enabled:] # scconf -p | grep cable Transport cable: phys-schost-2:qfe1@0 ethernet-1@2 Enabled Transport cable: phys-schost-3:qfe0@1 ethernet-1@3 Enabled Transport cable: phys-schost-1:qfe0@0 ethernet-1@1 Enabled |
您还可以使用 SunPlex Manager GUI 来完成此过程。有关详细信息,请参阅 SunPlex Manager 的联机帮助。
您可能需要禁用群集传输电缆,以便临时关闭群集互连路径。这在排除群集互连的故障或更换群集互连硬件时很有用。
禁用电缆后,电缆的两个端点仍处于已配置状态。如果适配卡仍用作传输电缆的一个端点,则无法删除该适配卡。
一个群集节点要成为一个群集的成员,至少需要有一个工作正常的电缆连接到群集互连。禁用电缆前,请务必检验节点的群集互连的状态。对于一个电缆连接,只有验证了它是冗余的(即除它之外还有另外一个连接),才予以禁用。禁用节点所剩的最后一个工作电缆会使该节点脱离群集。
成为群集中任一节点的超级用户。
禁用电缆前,请检查群集互连的状态。
# scstat -W |
如果在尝试删除由两个节点组成的群集中的一个节点时接收到错误(如 "path faulted"),请先调查问题,然后再继续进行此过程。这样的问题可能表明节点路径不可用。如果删除所剩的正常路径,则会使节点脱离群集,并可能导致重新配置群集。
输入 scsetup 实用程序。
# scsetup |
这时将显示主菜单。
通过键入 3(群集互连)来访问 "Cluster Interconnect" 菜单。
通过键入 8(禁用传输电缆)来禁用电缆。
按说明输入请求的信息。这时将禁用此群集互连中的所有组件。您需要输入您尝试标识的电缆的一个端点的节点名称和适配卡名称。
检验是否已禁用电缆。
# scconf -p | grep cable |
此示例说明了如何禁用节点 phys-schost-2 上的适配卡 qfe-1 上的群集传输电缆。
[Become superuser on any node.] [Enter the scsetup utility:] # scsetup Select Cluster interconnect>Disable a transport cable. Answer the questions when prompted. You will need the following information. You Will Need: Example: node names phys-schost-2 adapter names qfe1 junction names hub1 [Verify that the scconf command completed successfully:] scconf -c -m endpoint=phys-schost-2:qfe1,state=disabled Command completed successfully. Quit the scsetup Cluster Interconnect Menu and Main Menu. [Verify that the cable is disabled:] # scconf -p | grep cable Transport cable: phys-schost-2:qfe1@0 ethernet-1@2 Disabled Transport cable: phys-schost-3:qfe0@1 ethernet-1@3 Enabled Transport cable: phys-schost-1:qfe0@0 ethernet-1@1 Enabled |