Sun Cluster 3.0 系統管理手冊

5.1 管理叢集交互連接

本節提供重新配置叢集交互連接,例如 cluster transport adapter 與 cluster transport cable 的程序。這些程序要求安裝 Sun Cluster 軟體。

在大部份時間,您可以使用 scsetup 公用程式來管理叢集交互連接的叢集傳送。請參閱 scsetup(1M) 線上援助頁來取得詳細資訊。

有關如何安裝叢集軟體的程序,請參閱 Sun Cluster 3.0 安裝手冊。有關維護叢集硬體元件的程序的資訊,請參閱 Sun Cluster 3.0 Hardware Guide

表 5-1 作業指引:管理叢集交互連接

作業 

有關資訊,請進到 ... 

管理叢集傳送 

- 使用 scsetup

"1.5.2 如何存取 scsetup 公用程式"

檢查叢集交互連接的狀態。 

- 使用 scstat

"5.1.1 如何檢查叢集交互連接的狀態"

新增叢集傳送電纜或傳送配接卡 

- 使用 scsetup

"5.1.2 如何新增 Cluster Transport Cable 與傳送配接卡"

移除叢集傳送電纜或傳送配接卡 

- 使用 scsetup

"5.1.3 如何移除叢集傳送電纜與傳送配接卡"

啟動叢集傳送電纜 

- 使用 scsetup

"5.1.4 如何啟動叢集傳送電纜"

停用叢集傳送電纜 

- 使用 scsetup

"5.1.5 如何停用叢集傳送電纜"

5.1.1 如何檢查叢集交互連接的狀態

您不必以超級使用者(superuser)來登入便可以執行這個程序。

  1. 檢查叢集交互連接的狀態。


    # scstat -W
    
  2. 請參閱以下來取得一般狀態訊息。

    狀態訊息 

    說明與可能的動作 

    路徑在線上

    路徑目前正常作業。不必採取任何動作。 

    路徑等待中

    路徑目前正在起始設定。不必採取任何動作。 

    路徑失敗

    路徑未作業。請採取更正動作。 

5.1.1.1 範例-檢查叢集交互連接的狀態

下列範例顯示作用中叢集交互連接的狀態。


# 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

5.1.2 如何新增 Cluster Transport Cable 與傳送配接卡

  1. 請確定已經安裝實體 cluster transport cable。

    有關如何安裝 cluster transport cable 的程序,請參閱 Sun Cluster 3.0 Hardware Guide

  2. 成為叢集中任何節點的超級使用者(superuser)。

  3. 執行 scsetup 公用程式。


    # scsetup
    

    出現「主功能表」。

  4. 輸入 2(叢集交互連接)來存取「叢集交互連接功能表」。

  5. 輸入 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>
    
  6. 輸入 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
    

5.1.2.1 範例-新增叢集傳送電纜與傳送配接卡

以下範例顯示如何使用 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

5.1.3 如何移除叢集傳送電纜與傳送配接卡

請使用下列程序來從節點移除叢集傳送電纜與叢集傳送配接卡。當電纜停用後,電纜的二個端點仍保持為配置狀態。如果配接卡仍當作傳送電纜的端點使用則無法移除。


小心 - 小心 -

叢集節點要求至少有一條作用中的電纜連到叢集交互連接以成為叢集的成員。請務必要先確認節點的叢集交互連接的狀態,然後再停用電纜。請在驗證後發現某電纜為多餘(有另一個連線可用)時才停用該電纜。停用節點最後一條繼續運轉中的電纜會使該節點失去叢集成員的資格。


  1. 成為叢集中任何節點的超級使用者(superuser)。

  2. 檢查其餘叢集傳送路徑的狀態。


    # scstat -W
    

    小心 - 小心 -

    您移除二節點叢集中的任一個而收到 "路徑失效" 的錯誤時,請先解決問題再繼續執行本程序。這種問題可能指示節點路徑不可使用。移除其餘好的路徑會使節點失去叢集成員資格而導致必須重新配置。


  3. 執行 scsetup 公用程式。


    # scsetup
    

    出現「主功能表」。

  4. 輸入 2(叢集交互連接)來存取「叢集交互連接功能表」。

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

    註解 -

    如果您移除實體電纜,請切斷電纜與埠以及目標裝置之間的連接。


  6. 要移除配接卡,請輸入 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 來取得硬體服務程序。


  7. 確認電纜或配接卡成功移除。


    # scconf -p | grep cable
    # scconf -p | grep adapter
    

    從給定節點移除傳送電纜或配接卡應該不會出現在這個指令的輸出中。

5.1.3.1 範例-移除傳送電纜或傳送配接卡

以下範例顯示如何使用 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

5.1.4 如何啟動叢集傳送電纜

這個選項用來啟動已經存在的叢集傳送電纜。

  1. 成為叢集中任何節點的超級使用者(superuser)。

  2. 輸入 scsetup 公用程式。


    # scsetup
    

    出現「主功能表」。

  3. 輸入 2(叢集交互連接)來存取「叢集交互連接功能表」。

  4. 輸入 7(啟動傳送電纜)來啟動傳送電纜。

    請依出現的提示及指示進行。您必須同時輸入節點名稱以及您要識別之電纜某個端點的配接卡名稱。

  5. 確認電纜啟動成功。


    # scconf -p | grep cable
    

5.1.4.1 範例-啟動叢集傳送電纜

這個範例顯示如何啟動位於節點 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

5.1.5 如何停用叢集傳送電纜

您可能需停用叢集傳送電纜來暫時關閉叢集交互連接路徑。這在解決叢集交互連接的問題或更換叢集交互連接硬體時,非常有用。

當電纜停用後,電纜的二個端點仍保持為配置狀態。如果配接卡仍當作傳送電纜的端點使用則無法移除。


小心 - 小心 -

叢集節點要求至少有一條作用中的電纜連到叢集交互連接以成為叢集的成員。請務必要先確認節點的叢集交互連接的狀態,然後再停用電纜。請在驗證後發現某電纜為多餘(有另一個連線可用)時才停用該電纜。停用節點最後一條繼續運轉中的電纜會使該節點失去叢集成員的資格。


  1. 成為叢集中任何節點的超級使用者(superuser)。

  2. 先檢查叢集交互連接的狀態再停用電纜。


    # scstat -W
    

    小心 - 小心 -

    您移除二節點叢集中的任一個而收到 "路徑失效" 的錯誤時,請先解決問題再繼續執行本程序。這種問題可能指示節點路徑不可使用。移除其餘好的路徑會使節點失去叢集成員資格而導致必須重新配置。


  3. 輸入 scsetup 公用程式。


    # scsetup
    

    出現「主功能表」。

  4. 輸入 2(叢集交互連接)來存取「叢集交互連接功能表」。

  5. 輸入 8(停用傳送電纜)來停用電纜。

    請依指示進行並輸入所要求的資訊。這個叢集交互連接上的所有元件都會被停用。您必須同時輸入節點名稱以及您要識別之電纜某個端點的配接卡名稱。

  6. 確認電纜停用成功。


    # scconf -p | grep cable
    

5.1.5.1 範例-停用叢集傳送電纜

這個範例顯示如何停用位於節點 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