Sun Cluster 3.0 のシステム管理

クラスタインターコネクトの管理

この節では、クラスタトランスポートアダプタやクラスタトランスポートケーブルなどのクラスタインターコネクトの再構成手順について説明します。これらの手順では、Sun Cluster ソフトウェアをインストールする必要があります。

通常、scsetup ユーティリティを使用すると、クラスタインターコネクトのクラスタトランスポートを管理できます。詳細は、scsetup(1M) のマニュアルページを参照してください。

クラスタソフトウェアのインストール手順については、『Sun Cluster 3.0 ソフトウェアのインストール』を参照してください。クラスタハードウェアコンポーネントの保守については、『Sun Cluster 3.0 Hardware Guide』を参照してください。

作業マップ : クラスタインターコネクトの管理

表 5-1 作業マップ : クラスタインターコネクトの管理

作業 

参照箇所 

クラスタトランスポートの管理 

- scsetup を使用します。

scsetup ユーティリティーにアクセスする」

クラスタインターコネクトの状態の確認 

- scstat を使用します。

「クラスタインターコネクトの状態を確認する」

クラスタトランスポートケーブルとトランスポートアダプタの追加 

- scsetup を使用します。

「クラスタトランスポートケーブルとトランスポートアダプタを追加する」

クラスタトランスポートケーブルとトランスポートアダプタの削除 

- scsetup を使用します。

「クラスタトランスポートケーブルとトランスポートアダプタを削除する」

クラスタトランスポートケーブルを有効にする 

- scsetup を使用します。

「クラスタトランスポートケーブルを有効にする」

クラスタトランスポートケーブルを無効にする 

- scsetup を使用します。

「クラスタトランスポートケーブルを無効にする」

クラスタインターコネクトの状態を確認する

この手順を実行するためにスーパーユーザーとしてログインする必要はありません。

  1. クラスタインターコネクトの状態を確認します。


     # scstat -W 
    
  2. 一般的な状態メッセージについては、以下を参照してください。

    状態メッセージ 

    説明および可能な処置 

    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

クラスタトランスポートケーブルとトランスポートアダプタを追加する

  1. クラスタトランスポートケーブルが物理的に取り付けられていることを確認します。

    クラスタトランスポートケーブルの取り付け手順については、『Sun Cluster 3.0 Hardware Guide』を参照してください。

  2. クラスタの任意のノードでスーパーユーザーになります。

  3. scsetup ユーティリティを実行します。


     # scsetup 
    

    「Main Menu」が表示されます。

  4. 2 (Cluster interconnect) を入力して「Cluster Interconnect Menu」にアクセスします。

  5. 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>
    
  6. 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>
    
  7. クラスタトランスポートケーブルまたはトランスポートアダプタが追加されたことを確認します。


    # 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 つ接続されている必要があります。ケーブルを無効にする前には、必ず、ノードのクラスタインターコネクトの状態を確認してください。状態が冗長な場合、つまり別の接続が使用できる場合だけ、ケーブル接続を無効にします。ノードの最後の機能しているケーブルを無効にすると、そのノードはクラスタメンバーシップから外れます。


  1. クラスタの任意のノードでスーパーユーザーになります。

  2. 残りのクラスタトランスポートパスの状態を確認します。


     # scstat -W 
    

    注意 - 注意 -

    2 ノードクラスタのいずれかのノードを削除しようとして「パス障害 (Path faulted)」などのエラーメッセージが表示された場合、この手順を続ける前に問題を調査してください。このような問題は、ノードパスが利用できないことを示しています。残りの正常なパスを削除すると、このノードはクラスタメンバーシップから外れ、クラスタが再構成されます。


  3. scsetup ユーティリティを実行します。


    # scsetup 
    

    「Main Menu」が表示されます。

  4. 2 (Cluster interconnect) を入力し、「Cluster Interconnect Menu」にアクセスします。

  5. 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>
    

    注 -

    物理的にケーブル接続を解除する場合は、ポートと宛先デバイスをつないでいるケーブルを切り離します。


  6. アダプタを削除するには、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』を参照してください。


  7. ケーブルまたはアダプタが削除されたことを確認します。


    # 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

クラスタトランスポートケーブルを有効にする

このオプションを使用し、既存のクラスタトランスポートケーブルを有効にします。

  1. クラスタの任意のノードでスーパーユーザーになります。

  2. scsetup ユーティリティーを起動します。


    # scsetup 
    

    「Main Menu」が表示されます。

  3. 2 (Cluster interconnect) を入力し、「Cluster Interconnect Menu」にアクセスします。

  4. 7 (Enable a transport cable) を入力し、トランスポートケーブルを有効にします。

    プロンプトが表示されたら、指示に従います。ケーブルのいずれかの終端のノード名およびアダプタ名の両方を入力する必要があります。

  5. ケーブルが有効になっていることを確認します。


     # 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 つ接続されている必要があります。ケーブルを無効にする前には、必ず、ノードのクラスタインターコネクトの状態を確認してください。状態が冗長な場合、つまり別の接続が使用できる場合だけ、ケーブル接続を無効にします。ノードの最後の機能しているケーブルを無効にすると、そのノードはクラスタメンバーシップから外れます。


  1. クラスタの任意のノードでスーパーユーザーになります。

  2. ケーブルを無効にする前に、クラスタインターコネクトの状態を確認します。


    # scstat -W 
    

    注意 - 注意 -

    2 ノードクラスタのいずれかのノードを削除しようとして「パス障害 (Path faulted)」などのエラーメッセージが表示された場合、この手順を続ける前に問題を調査してください。このような問題は、ノードパスが利用できないことを示しています。残りの正常なパスを削除すると、このノードはクラスタメンバーシップから外れ、クラスタが再構成されます。


  3. scsetup ユーティリティーを起動します。


    # scsetup 
    

    「Main Menu」が表示されます。

  4. 2 (Cluster interconnect) を入力し、「Cluster Interconnect Menu」にアクセスします。

  5. 8 (Disable a transport cable) を入力してケーブルを無効します。

    指示に従い、必要な情報を入力します。このクラスタインターコネクトのすべてのコンポーネントは無効になります。ケーブルのいずれかの終端のノード名およびアダプタ名の両方を入力する必要があります。

  6. ケーブルが無効になっていることを確認します。


     # 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