この節では、クラスタトランスポートアダプタやクラスタトランスポートケーブルなどのクラスタインターコネクトの再構成手順について説明します。これらの手順では、Sun Cluster ソフトウェアをインストールする必要があります。
通常、scsetup ユーティリティを使用すると、クラスタインターコネクトのクラスタトランスポートを管理できます。詳細は、scsetup(1M) のマニュアルページを参照してください。
クラスタソフトウェアのインストール手順については、『Sun Cluster 3.0 ソフトウェアのインストール』を参照してください。クラスタハードウェアコンポーネントの保守については、『Sun Cluster 3.0 Hardware Guide』を参照してください。
作業 |
参照箇所 |
---|---|
クラスタトランスポートの管理 - 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 |
クラスタトランスポートケーブルが物理的に取り付けられていることを確認します。
クラスタトランスポートケーブルの取り付け手順については、『Sun Cluster 3.0 Hardware Guide』を参照してください。
クラスタの任意のノードでスーパーユーザーになります。
scsetup ユーティリティを実行します。
# scsetup |
「Main Menu」が表示されます。
2 (Cluster interconnect) を入力して「Cluster Interconnect Menu」にアクセスします。
1 (Add a transport cable) を入力してケーブルを追加します。
指示に従い、必要な情報を入力します。2 ノードクラスタの直接接続に、接続中継点は必要ありません。ただし、ケーブルのいずれかの終端のノード名およびアダプタ名の両方を入力する必要があります。
>>> 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 transport adapter to a node) を入力してアダプタを追加します。
指示に従い、必要な情報を入力します。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> |
クラスタトランスポートケーブルまたはトランスポートアダプタが追加されたことを確認します。
# scconf -p | grep cable # scconf -p | grep adapter |
次に、scsetup コマンドを使用し、トランスポートケーブルとトランスポートアダプタをノードに追加する例を示します。
[ケーブルが設置されていることを確認する] [クラスタ内のノードでスーパーユーザーになる] [scsetup ユーティリティを実行する] # scsetup [オプション 2 を入力する] *** Main Menu *** Please select from one of the following options: ... 2) Cluster interconnect ... Option: 2 [オプション 1 を入力してケーブルを追加する] *** Cluster Interconnect Menu *** Please select from one of the following options: ... 1) Add a transport cable ... Option: 1 [要求された情報を入力する] >>> 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> [オプション 2 を入力してアダプタを追加する] *** Cluster Interconnect Menu *** Please select from one of the following options: ... 2) Add a transport adapter to a node ... Option: 2 [要求された情報を入力する] >>> 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> [ケーブルとアダプタが追加されたことを確認する] # 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 |
次の手順を使用し、クラスタトランスポートケーブルとクラスタトランスポートアダプタをノードから削除します。ケーブルが無効な場合、このケーブルの 2 つの終端は構成されたままになります。トランスポートケーブルの終端として使用されているアダプタは削除できません。
クラスタノードでは、そのクラスタノードのメンバーとなるクラスタインターコネクトに、機能しているケーブルが少なくとも 1 つ接続されている必要があります。ケーブルを無効にする前には、必ず、ノードのクラスタインターコネクトの状態を確認してください。状態が冗長な場合、つまり別の接続が使用できる場合だけ、ケーブル接続を無効にします。ノードの最後の機能しているケーブルを無効にすると、そのノードはクラスタメンバーシップから外れます。
クラスタの任意のノードでスーパーユーザーになります。
残りのクラスタトランスポートパスの状態を確認します。
# scstat -W |
2 ノードクラスタのいずれかのノードを削除しようとして「パス障害 (Path faulted)」などのエラーメッセージが表示された場合、この手順を続ける前に問題を調査してください。このような問題は、ノードパスが利用できないことを示しています。残りの正常なパスを削除すると、このノードはクラスタメンバーシップから外れ、クラスタが再構成されます。
scsetup ユーティリティを実行します。
# scsetup |
「Main Menu」が表示されます。
2 (Cluster interconnect) を入力し、「Cluster Interconnect Menu」にアクセスします。
4 (Remove a Taransport cable) を入力してケーブルを削除します。
指示に従い、必要な情報を入力します。ケーブルのいずれかの終端のノード名およびアダプタ名の両方を入力する必要があります。
*** 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 (Remove a transport adapter from a node) を入力します。
指示に従い、必要な情報を入力します。ケーブルのいずれかの終端のノード名およびアダプタ名の両方を入力する必要があります。
*** 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 コマンドを使用し、トランスポートケーブルとトランスポートアダプタを削除する例を示します。
[クラスタ内のノードでスーパーユーザーになる] [scsetup ユーティリティを実行する] # scsetup [オプション 2 を入力する] *** Main Menu *** Please select from one of the following options: ... 2) Cluster interconnect ... Option: 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? 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> [オプション 5 を入力してアダプタを削除する] *** Cluster Interconnect Menu *** Please select from one of the following options: ... 5) Remove a transport adapter from a node ... Option: 5 [要求された情報を入力する] >>> 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> [ケーブルまたはアダプタが削除されていることを確認する] # 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 |
「Main Menu」が表示されます。
2 (Cluster interconnect) を入力し、「Cluster Interconnect Menu」にアクセスします。
7 (Enable a transport cable) を入力し、トランスポートケーブルを有効にします。
プロンプトが表示されたら、指示に従います。ケーブルのいずれかの終端のノード名およびアダプタ名の両方を入力する必要があります。
ケーブルが有効になっていることを確認します。
# scconf -p | grep cable |
次に、ノード phys-schost-2 にあるアダプタ qfe-1 のクラスタトランスポートケーブルを有効にする例を示します。
[任意のノードでスーパーユーザーになる] [scsetup ユーティリティを実行する] # scsetup [オプション 7 を入力する] *** Cluster Interconnect Menu *** Please select from one of the following options: ... 7) Enable a transport cable ... Option: 7 [要求された情報を入力する] >>> 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> [ケーブルが有効なことを確認する] # 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 |
クラスタトランスポートケーブルを無効にし、クラスタインターコネクトパスを一時的に停止する必要があることがあります。これは、クラスタインターコネクトで発生する問題の解決や、クラスタインターコネクトのハードウェアの交換に便利です。
ケーブルが無効な場合、このケーブルの 2 つの終端は構成されたままになります。トランスポートケーブルの終端として使用されているアダプタは削除できません。
クラスタノードでは、そのクラスタノードのメンバーとなるクラスタインターコネクトに、機能しているケーブルが少なくとも 1 つ接続されている必要があります。ケーブルを無効にする前には、必ず、ノードのクラスタインターコネクトの状態を確認してください。状態が冗長な場合、つまり別の接続が使用できる場合だけ、ケーブル接続を無効にします。ノードの最後の機能しているケーブルを無効にすると、そのノードはクラスタメンバーシップから外れます。
クラスタの任意のノードでスーパーユーザーになります。
ケーブルを無効にする前に、クラスタインターコネクトの状態を確認します。
# scstat -W |
2 ノードクラスタのいずれかのノードを削除しようとして「パス障害 (Path faulted)」などのエラーメッセージが表示された場合、この手順を続ける前に問題を調査してください。このような問題は、ノードパスが利用できないことを示しています。残りの正常なパスを削除すると、このノードはクラスタメンバーシップから外れ、クラスタが再構成されます。
scsetup ユーティリティーを起動します。
# scsetup |
「Main Menu」が表示されます。
2 (Cluster interconnect) を入力し、「Cluster Interconnect Menu」にアクセスします。
8 (Disable a transport cable) を入力してケーブルを無効します。
指示に従い、必要な情報を入力します。このクラスタインターコネクトのすべてのコンポーネントは無効になります。ケーブルのいずれかの終端のノード名およびアダプタ名の両方を入力する必要があります。
ケーブルが無効になっていることを確認します。
# scconf -p | grep cable |
次に、ノード phys-schost-2 にあるアダプタ qfe-1 のクラスタトランスポートケーブルを無効にする例を示します。
[任意のノードでスーパーユーザーになる] [scsetup ユーティリティを実行する] # scsetup [オプション 8 を入力する] *** Cluster Interconnect Menu *** Please select from one of the following options: ... 8) Disable a transport cable ... Option: 8 [要求された情報を入力する] >>> 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> [ケーブルが無効になっていることを確認する] # 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 |