Sun Cluster 軟體安裝指南 (適用於 Solaris 作業系統)

如何在附加叢集節點上配置 Sun Cluster 軟體 (scinstall)

執行此程序,在現有叢集中加入新節點。

  1. 在新叢集節點上安裝硬體。

    1. 在新節點上安裝主機配接卡,並確認任何現有叢集交互連接均可支援此新節點。

      請參閱Sun Cluster Hardware Administration Manual for Solaris OS

    2. 安裝任何附加儲存體。

      請參閱「Sun Cluster 3.x Hardware Administration Collection」中的適當手冊。

  2. 確定已安裝 Solaris 作業環境,以支援 Sun Cluster 軟體。

    如果節點上已安裝了 Solaris 軟體,那麼您必須確定 Solaris 的安裝符合 Sun Cluster 軟體以及您要安裝到叢集上的任何其他軟體的需求。 請參閱如何安裝 Solaris 軟體 ,以取得有關安裝 Solaris 軟體的詳細資訊以滿足 Sun Cluster 軟體需求。

  3. 請確定 Sun Cluster 軟體套件已安裝在節點上。

    請參閱如何安裝 Sun Cluster 軟體套件

  4. 完成下列配置工作表。

    表 2–9 新增的節點配置工作表

    元件 

    說明/範例 

    在此處輸入回覆  

    軟體修補程式的安裝 

    您是否要使用 scinstall 來安裝修補程式?

    是  |  否  

    如果是,則修補程式目錄是什麼?  

     

    您是否要使用修補程式清單? 

    是  |  否  

    贊助節點 

    贊助節點的名稱是什麼?  

    選擇叢集內處於作用中的任一個節點。

     

    叢集名稱 

    您要將節點加入的叢集的名稱是什麼?  

     

    檢查 

    您是否要執行 sccheck 驗證公用程式?

    是  |  否  

    叢集傳輸的自動探索功能 

    您是否要使用自動探索功能來配置叢集傳輸? 

    如果否,請提供下列附加資訊︰ 

    是  |  否  

    點到點電纜 

    您要加入至叢集的節點是否使該叢集成為包含兩個節點的叢集? 

    是  |  否  

    該叢集是否使用傳輸接點? 

    是  |  否  

    叢集傳輸接點 

    如果使用,則兩個傳輸接點的名稱是什麼? 

      預設值: switch1switch2


    第一個

    第二個

    叢集傳輸配接卡與電纜 

    兩個傳輸配接卡的名稱是什麼?  

      

    每個傳輸配接卡連接到何處 (傳輸接點還是另一個配接卡)?

      接點預設值︰ switch1switch2


      

    對於傳輸接點,您是否要使用預設的通訊埠名稱? 

    是 | 否 

    是 | 否  

    如果否,那麼您要使用的通訊埠名稱是什麼?  

      

    整體裝置檔案系統 

    整體裝置檔案系統的名稱是什麼? 

      預設值: /globaldevices


     

    自動重新開機 

    在安裝後,您是否要讓 scinstall 自動重新啟動節點?

    是  |  否 

    請參閱 規劃 Solaris 作業環境 規劃 Sun Cluster 環境,以取得規劃準則。

  5. 您是否要將此節點加入至包含單一節點的叢集?

  6. 從現有叢集節點,確定兩個叢集互連是否已存在。

    您必須至少配置了兩條電纜或兩個配接卡。


    # scconf -p | grep cable
    # scconf -p | grep adapter
    
    • 如果輸出結果顯示兩條電纜或兩個配接卡的配置資訊,請跳至步驟 8

    • 如果輸出結果未顯示關於電纜或配接卡的配置資訊,或僅顯示一條電纜或一個配接卡的配置資訊,則請前進至步驟 7

  7. 配置新的叢集互連。

    1. 在現有叢集節點上,啟動 scsetup(1M) 公用程式。


      # scsetup
      
      顯示 Main Menu。

    2. 選取 Cluster interconnect

    3. 選取 Add a transport cable

      依照指示指定要加入至叢集的節點名稱、傳輸配接卡名稱以及是否使用傳輸接點。

    4. 如有必要,重複執行步驟 c,來配置第二個叢集互連。

      完成後,退出 scsetup 公用程式。

    5. 確認此叢集現在已配置了兩個叢集互連。


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

      指令輸出應該至少顯示兩個叢集互連的配置資訊。

  8. 將新節點加入至叢集已授權節點清單。

    1. 在任一個作用中的叢集成員上,啟動 scsetup(1M) 公用程式。


      # scsetup
      

      顯示 Main Menu。

    2. 選取 New nodes

    3. 選取 Specify the name of a machine which may add itself

    4. 依照提示,將節點名稱加入至已辨識機器的清單。

    5. 驗證作業成功。

      如果作業完成且無錯誤,scsetup 公用程式將列印訊息 Command completed successfully

    6. 結束 scsetup 公用程式。

  9. 成為要配置之叢集節點的超級使用者。

  10. 啟動 scinstall 公用程式。


    # /usr/cluster/bin/scinstall
    

  11. 請依照以下準則來使用互動式 scinstall 公用程式︰

    • 互動式 scinstall 可讓您繼續鍵入。 因此,如果下一個功能表畫面沒有立即出現,請不要多次按 Return 鍵。

    • 除非另有說明,否則可按下 Control-D 返回一系列相關問題的起始位置或 Main Menu。

    • 先前階段作業的預設回覆顯示在問題結尾處的括號 ([ ]) 中。 按 Return 鍵可輸入括號中的回應,無需鍵入它。

  12. Main Menu 中,選擇 Install a cluster or cluster node


      *** Main Menu ***
    
        Please select from one of the following (*) options:
    
          * 1) Install a cluster or cluster node
            2) Configure a cluster to be JumpStarted from this install server
            3) Add support for new data services to this cluster node
          * 4) Print release information for this cluster node
    
          * ?) Help with menu options
          * q) Quit
    
        Option:  1
    

  13. Install Menu 中,選擇 Add this machine as a node in an existing cluster

  14. 依照功能表提示來提供您的回覆至 表 2–9 (您在步驟 4 中完成)。

    scinstall 公用程式配置節點並將節點啟動到叢集中。

  15. 在要加入至叢集中的任何其他節點上重複執行此程序,直到完全配置所有其他節點。

  16. 從作用中的叢集成員,阻止任何其他節點加入叢集。


    # /usr/cluster/bin/scconf -a -T node=.
    
    -a

    新增

    -T

    指定認證選項

    node=.

    指定要加入至認證清單中的點 (.) 節點名稱,以阻止任何其他節點自動加入至叢集

    此外,您可以使用 scsetup(1M) 公用程式。 請參閱Sun Cluster 系統管理指南 (適用於 Solaris 作業系統)的「新增與移除叢集節點」中的「如何新增叢集節點至已授權的節點清單」,以取得相關程序。

  17. SPARC: 您是否要安裝 VERITAS File System?

範例 – 在附加節點上配置 Sun Cluster 軟體

以下範例顯示執行的指令 scinstall 以及 scinstall 在節點 phys-schost-3 上完成配置作業時公用程式所記錄的訊息。 贊助節點為 phys-schost-1


 >>> Confirmation <<<
  
    Your responses indicate the following options to scinstall:
  
      scinstall -ik \
           -C sc-cluster \
           -N phys-schost-1 \
           -A trtype=dlpi,name=hme1 -A trtype=dlpi,name=hme3 \
           -m endpoint=:hme1,endpoint=switch1 \
           -m endpoint=:hme3,endpoint=switch2
  
    Are these the options you want to use (yes/no) [yes]?
  
    Do you want to continue with the install (yes/no) [yes]?
  
Checking device to use for global devices file system ... done
  
Adding node "phys-schost-3" to the cluster configuration ... done
Adding adapter "hme1" to the cluster configuration ... done
Adding adapter "hme3" to the cluster configuration ... done
Adding cable to the cluster configuration ... done
Adding cable to the cluster configuration ... done
  
Copying the config from "phys-schost-1" ... done
Setting the node ID for "phys-schost-3" ... done (id=3)
 
Verifying the major number for the "did" driver with "phys-schost-1" ...done
  
Checking for global devices global file system ... done
Updating vfstab ... done
  
Verifying that NTP is configured ... done
Installing a default NTP configuration ... done
Please complete the NTP configuration after scinstall has finished.
  
Verifying that "cluster" is set for "hosts" in nsswitch.conf ... done
Adding the "cluster" switch to "hosts" in nsswitch.conf ... done
  
Verifying that "cluster" is set for "netmasks" in nsswitch.conf ... done
Adding the "cluster" switch to "netmasks" in nsswitch.conf ... done
  
Verifying that power management is NOT configured ... done
Unconfiguring power management ... done
/etc/power.conf has been renamed to /etc/power.conf.61501001054
Power management is incompatible with the HA goals of the cluster.
Please do not attempt to re-configure power management.
  
Ensure that the EEPROM parameter "local-mac-address?" is set to "true" ...done
Ensure network routing is disabled ... done
Network routing has been disabled on this node by creating /etc/notrouter.
Having a cluster node act as a router is not supported by Sun Cluster.
Please do not re-enable network routing.
  
Log file - /var/cluster/logs/install/scinstall.log.9853
  
  
Rebooting ...