本节提供有关重新配置群集互连(如 cluster transport adapter 和 cluster transport cable)的过程。这些过程需要您 安装 Sun Cluster 软件。
大多数时候,您可以使用 scsetup 公用程序来管理群集互连的群集传输。有关详细信息,请参见 scsetup(1M) 手册页。
有关群集软件安装过程,请参见 Sun Cluster 3.0 安装指南。有关群集硬件组件维护的过程,请参见 Sun Cluster 3.0 Hardware Guide。
表 5-1 任务图:管理群集互连
任务 |
有关说明,请转到... |
---|---|
管理群集传输 - 使用 scsetup | |
检查群集互连的状态 - 使用 scstat | |
添加群集传输电缆或传输适配器 - 使用 scsetup | |
移除一个群集传输电缆或传输适配器 - 使用 scsetup | |
启用群集传输电缆 - 使用 scsetup | |
禁用群集传输电缆 - 使用 scsetup |
执行此步骤不需要作为超级用户登录。
检查群集互连的状态。
# scstat -W |
有关一般状态消息,请参考以下内容。
状态消息 |
描述和可能的操作 |
---|---|
Path online |
此路径当前运行正常。不需要采取任何步骤。 |
Path waiting |
当前正在初始化此路径。不需要采取任何步骤。 |
Path faulted |
此路径当前不工作。请采取纠正措施。 |
以下示例展示当前运行的群集互连的状态。
# scstat -W -- Cluster Transport Paths -- Endpoint Endpoint Status -------- -------- ------ 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 |
确保已安装物理cluster transport cable。
有关安装cluster transport cable的过程,请参见 Sun Cluster 3.0 Hardware Guide。
成为群集中任一节点上的超级用户。
执行 scsetup 公用程序。
# scsetup |
出现主菜单。
通过输入 2(群集互连)访问群集互连菜单。
通过输入 1(添加传输电缆)来添加电缆。
按说明操作并输入系统请求的信息。在拥有两个节点的群集中进行直接连接不需要结点。但 是,您需要输入您尝试标识的电缆的一个端点的节点名称和适配器名称。
>>> Add a Cluster Transport Cable <<< ... Is it okay to continue (yes/no) [yes]? <Return> ... To which node do you want to add the cable? nodename Name of the adapter to use on "node"? adaptername Name of the junction at the other end of the cable? junctionname Okay to use the default for this cable connection [yes]? <Return> Is it okay to proceed with the update (yes/no) [yes]? <Return> |
通过输入 2(添加传输适配器到节点)。
按说明操作并输入系统请求的信息。在拥有两个节点的群集中进行直接连接不需要结点。但 是,您需要输入您尝试标识的电缆的一个端点的节点名称和适配器名称。
>>> Add a Cluster Transport Adapter <<< ... Is it okay to continue (yes/no) [yes]? <Return> ... To which node do you want to add the cable? nodename Name of the adapter to use on "node"? adaptername Name of the junction at the other end of the cable? junctionname Okay to use the default for this cable connection [yes]? <Return> Is it okay to proceed with the update (yes/no) [yes]? <Return> |
检验是否已添加cluster transport cable或传输适配器。
# scconf -p | grep cable # scconf -p | grep adapter |
以下示例展示如何使用 scsetup 命令为一个节点添加一个传输电缆或传输适配器。
[Ensure the physical cable is installed.] [Become superuser on a node in the cluster.] [Execute the scsetup utility:] # scsetup [Enter option 2:] *** Main Menu *** Please select from one of the following options: ... 2) Cluster interconnect ... Option: 2 [Enter option 1 to add a cable:] *** Cluster Interconnect Menu *** Please select from one of the following options: ... 1) Add a transport cable ... Option: 1 [Enter the requested information:] >>> Add a Cluster Transport Cable <<< ... Is it okay to continue (yes/no) [yes]? <Return> . ... To which node is the cable attached? phys-schhost-2 Name of the adapter on "phys-schost-2"? qfe-0 Is it okay to proceed with the update (yes/no) [yes]? <Return> . scconf -a -m endpoint=phys-schost-2:hme1,endpoint=hub0 Command completed successfully. Hit ENTER to continue: <Return> [Enter option 2 to add an adapter:] *** Cluster Interconnect Menu *** Please select from one of the following options: ... 2) Add a transport adapter to a node ... Option: 2 [Enter the requested information:] >>> Add a Cluster Transport Adapter <<< ... Is it okay to continue (yes/no) [yes]? <Return> . ... To which node is the cable attached? phys-schhost-2 Name of the adapter on "phys-schost-2"? qfe-0 Is it okay to proceed with the update (yes/no) [yes]? <Return> . scconf -a -m endpoint=phys-schost-2:hme1,endpoint=hub0 Command completed successfully. Hit ENTER to continue: <Return> [Verify that the cable and adapter 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 |
使用以下过程从节点中移除群集传输电缆和群集传输适配器。当禁用一个电缆后,电缆的两个端点 仍处于已配置状态。如果一个适配器仍用作一个传输电缆的一个端点,则无法移除该适配器。
一个群集节点要成为一个群集的成员,至少需要有一个使用中的电缆连接到 群集互连。每次禁用一个电缆前,都要检验节点的群集互连的状态。对于一个电缆连接,只有验证了它是 冗余的(即除它之外还有另外一个连接),才予以禁用。禁用节点所剩的最后一个工作电缆会使节点 脱离群集。
成为群集中任一节点上的超级用户。
检查尚存的群集传输路径的状态。
# scstat -W |
如果在尝试移除由两个节点组成的群集的一个节点时接收到一个 错误(如 "path faulted"),请在继续进行此过程前调研该问题。这样一个问题可能 表明一个节点路径不可用。如果移除所剩的正常路径,则会使节点脱离群集,并可能导致群集重新配置。
执行 scsetup 公用程序。
# scsetup |
出现主菜单。
通过输入 2(群集互连)访问群集互连菜单。
通过输入 4(移除一个传输电缆)移除传输电缆。
按说明操作并输入系统请求的信息。您需要输入您尝试标识的电缆的一个端点的节点名称和适配器名称。
*** Cluster Interconnect Menu *** Please select from one of the following options: ... 4) Remove a transport cable ... Option: 4 ... >>> Remove a Cluster Transport Cable <<< ... Is it okay to continue (yes/no) [yes]? <Return> ... To which node is the cable attached? nodename Name of the adapter on "node"? adaptername Is it okay to proceed with the update (yes/no) [yes]? <Return> ... Command completed successfully. Hit ENTER to continue: <Return> |
如果您要移除一个物理电缆,请断开端口与目标设备之间的电缆。
要移除一个适配器,请输入 5(从一个节点移除一个传输适配器)。
按说明操作并输入系统请求的信息。您需要输入您尝试标识的电缆的一个端点的节点名称和适配器名称。
*** Cluster Interconnect Menu ** Please select from one of the following options: ... 5) Remove a transport adapter ... Option: 5 ... >>> Remove a Cluster Transport Adapter <<< ... Is it okay to continue (yes/no) [yes]? <Return> ... To which node is the cable attached? nodename Name of the adapter on "node"? adaptername Is it okay to proceed with the update (yes/no) [yes]? <Return> ... Command completed successfully. Hit ENTER to continue: <Return> |
如果您要从节点移除一个物理适配器,请参见 Sun Cluster 3.0 Hardware Guide 中的硬件维护过程。
检验是否已移除电缆或适配器。
# scconf -p | grep cable # scconf -p | grep adapter |
此命令的输出中不应出现已从给定节点移除的传输电缆或适配器。
以下示例展示如何使用 scsetup 命令来移除一个传输电缆或传输适配器。
[Become superuser on a node in the cluster.] [Execute the scsetup utility:] # scsetup [Enter option 2:] *** Main Menu *** Please select from one of the following options: ... 2) Cluster interconnect ... Option: 2 [Enter option 4 to remove a cable:] *** Cluster Interconnect Menu *** Please select from one of the following options: ... 4) Remove a transport cable ... Option: 4 [Enter the requested information:] >>> Remove a Cluster Transport Cable <<< ... Is it okay to continue (yes/no) [yes]? <Return> . ... To which node is the cable attached? phys-schhost-2 Name of the adapter on "phys-schost-2"? qfe-0 Is it okay to proceed with the update (yes/no) [yes]? <Return> . scconf -a -m endpoint=phys-schost-2:hme1,endpoint=hub0 Command completed successfully. Hit ENTER to continue: <Return> [Enter option 5 to remove an adapter:] *** Cluster Interconnect Menu *** Please select from one of the following options: ... 5) Remove a transport adapter from a node ... Option: 5 [Enter the requested information:] >>> Remove a Cluster Transport Adapter <<< ... Is it okay to continue (yes/no) [yes]? <Return> . ... To which node is the cable attached? phys-schhost-2 Name of the adapter on "phys-schost-2"? qfe-0 Is it okay to proceed with the update (yes/no) [yes]? <Return> . scconf -r -m endpoint=phys-schost-2:hme1 Command completed successfully. Hit ENTER to continue: <Return> [Verify that the cable or adapter 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 |
此选项用于启用一个现有的群集传输电缆。
成为群集中任一节点上的超级用户。
输入 scsetup 公用程序。
# scsetup |
出现主菜单。
通过输入 2(群集互连)访问群集互连菜单。
通过输入 7(启用传输电缆)来启用传输电缆。
得到提示后按说明操作。您需要输入您尝试标识的电缆的一个端点的节点名称和适配器名称。
检验是否已启用电缆。
# scconf -p | grep cable |
此示例展示如何启用在节点 phys-schost-2 上的 适配器 qfe-1 上的群集传输电缆。
[Become superuser on any node.] [Enter the scsetup utility:] # scsetup [Enter option 7:] *** Cluster Interconnect Menu *** Please select from one of the following options: ... 7) Enable a transport cable ... Option: 7 [Enter the requested information:] >>> Enable a Cluster Transport Cable <<< ... Is it okay to continue (yes/no) [yes]? <Return> ... To which node is the cable attached? phys-schhost-2 Name of the adapter on "phys-schost-2"? qfe-1 Is it okay to proceed with the update (yes/no) [yes]? <Return> scconf -c -m endpoint=phys-schost-2:qfe1,state=enabled Command completed successfully. Hit ENTER to continue: <Return> [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 |
可能需要禁用一个群集传输电缆,以便临时关闭一个群集互连路径。这在排查群集互连故障 或更换群集硬件时有用。
当禁用一个电缆后,电缆的两个端点 仍处于已配置状态。如果一个适配器仍用作一个传输电缆的一个端点,则无法移除该适配器。
一个群集节点要成为一个群集的成员,至少需要有一个使用中的电缆连接到 群集互连。每次禁用一个电缆前,都要检验节点的群集互连的状态。对于一个电缆连接,只有验证了它是 冗余的(即除它之外还有另外一个连接),才予以禁用。禁用节点所剩的最后一个工作电缆会使节点 脱离群集。
成为群集中任一节点上的超级用户。
在禁用一个电缆前检查群集互连的状态。
# scstat -W |
如果在尝试移除由两个节点组成的群集的一个节点时接收到一个 错误(如 "path faulted"),请在继续进行此过程前调研该问题。这样一个问题可能 表明一个节点路径不可用。如果移除所剩的正常路径,则会使节点脱离群集,并可能导致群集重新配置。
输入 scsetup 公用程序。
# scsetup |
出现主菜单。
通过输入 2(群集互连)访问群集互连菜单。
通过输入 8(禁用一个传输电缆)。
按说明操作并输入系统请求的信息。将禁用此群集互连上的所有组件。您需要输入您尝试标识的电缆的一个端点的节点名称和适配器名称。
检验是否已禁用电缆。
# scconf -p | grep cable |
此示例展示如何禁用在节点 phys-schost-2 上的 适配器 qfe-1 上的群集传输电缆。
[Become superuser on any node.] [Enter the scsetup utility:] # scsetup [Enter option 8:] *** Cluster Interconnect Menu *** Please select from one of the following options: ... 8) Disable a transport cable ... Option: 8 [Enter the requested information:] >>> Disable a Cluster Transport Cable <<< ... Is it okay to continue (yes/no) [yes]? <Return> ... To which node is the cable attached? phys-schhost-2 Name of the adapter on "phys-schost-2"? qfe-1 Is it okay to proceed with the update (yes/no) [yes]? <Return> scconf -c -m endpoint=phys-schost-2:qfe1,state=disabled Command completed successfully. Hit ENTER to continue: <Return> [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 |