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

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

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

  1. 確定已安裝所有必需的硬體。

  2. 確定已安裝 Solaris 作業系統來支援 Sun Cluster 軟體。

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

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

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

  4. 完成配置工作表之一。

    表 2–8 增加的節點配置工作表

    元件 

    說明/範例 

    在此處輸入回覆 

    軟體修補程式的安裝 

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

    是  |  否 

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

     

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

    是  |  否 

    贊助節點 

    支援節點的名稱是什麼?  

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

     

    叢集名稱 

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

     

    檢查 

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

    是  |  否 

    叢集傳輸的自動探索功能 

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

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

    是  |  否 

    點到點電纜 

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

    是  |  否 

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

    是  |  否 

    叢集傳輸接點 

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

      預設值:switch1switch2


    第一個

      

    第二個

       

    叢集傳輸配接卡與電纜 

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

    第一個

      

    第二個

       

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

      接點預設值︰switch1switch2


      

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

    是 | 否 

    是 | 否 

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

      

    整體裝置檔案系統 

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

      預設值:/globaldevices


     

    自動重新開機 

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

    是  |  否 

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

  5. 如果您將此節點增加至單節點叢集,請確定是否存在兩個叢集互連。

    增加節點前,必須配置至少兩條電纜或兩個配接卡。


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

    • 如果輸出結果未顯示關於任何電纜或配接卡的配置資訊,或僅顯示一條電纜或一個配接卡的配置資訊,請配置新的叢集互連。

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


      # scsetup
      

    2. 選擇功能表項目 [叢集互連]。

    3. 選擇功能表項目 [增加傳輸電纜]。

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

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

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

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


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

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

  6. 如果您將此節點增加至現有叢集,請將新節點增加至叢集的授權節點的清單。

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


      # scsetup
      

      顯示 Main Menu。

    2. 選擇功能表項目,新增節點。

    3. 選擇功能表項目,指定可能增加自身的機器之名稱。

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

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

    5. 結束 scsetup 公用程式。

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

  8. 安裝 Sun Web Console 套裝軟體。

    即使您不使用 Sun Web Console,Sun Cluster 軟體也需要這些套裝軟體。

    1. 將 Sun Cluster 3.1 9/04 CD-ROM 插入 CD-ROM 光碟機。

    2. 變更至 /cdrom/cdrom0/Solaris_arch/Product/sun_web_console/2.1/ 目錄,其中 archsparcx86

    3. 執行 setup 指令。


      # ./setup
      

      setup 指令會安裝所有套裝軟體,以支援 Sun Web Console。

  9. 如果您計劃使用下列功能中的任何一項,請安裝附加套裝軟體。

    • 遠端共用記憶體應用程式設計介面 (RSMAPI)

    • 用於互連傳輸的 SCI-PCI 配接卡

    • RSMRDT 驅動程式


    注意 –

    RSMRDT 驅動程式僅用於執行已啟用 RSM 的 Oracle9i release 2 SCI 配置之叢集。請參照 Oracle9i release 2 使用者文件,以取得有關安裝和配置的詳細說明。


    1. 確定必須安裝的套裝軟體。

      下表列示了每種功能需要的 Sun Cluster 3.1 9/04 套裝軟體,以及安裝每個套裝軟體群組必須遵循的順序。scinstall 程式無法自動安裝這些套裝軟體。

      功能 

      要安裝的其他 Sun Cluster 3.1 9/04 套件 

      RSMAPI 

      SUNWscrif

      SCI-PCI 配接卡 

      SUNWsci SUNWscid SUNWscidx

      RSMRDT 驅動程式 

      SUNWscrdt

    2. 確定已安裝所有 Solaris 附屬套裝軟體。

      請參閱如何安裝 Solaris 軟體中的步驟 8

    3. 在 Sun Cluster 3.1 9/04 CD-ROM 上,更至 Solaris_arch/Product/sun_cluster/Solaris_ver/Packages/ 目錄,其中 archsparcx86,而 ver8 (對於 Solaris 8) 或 9 (對於 Solaris 9) 。


      # cd /cdrom/cdrom0/Solaris_arch/Product/sun_cluster/Solaris_ver/Packages/
      

    4. 安裝附加套裝軟體。


      # pkgadd -d . packages
      

    5. 如果您將節點增加至單節點叢集,請重複這些步驟,將相同套裝軟體增加至原有叢集節點。

  10. 在 Sun Cluster 3.1 9/04 CD-ROM 上,變更到 Solaris_arch/Product/sun_cluster/Solaris_ver/Tools/ 目錄,其中 archsparcx86,而 ver8 (對於 Solaris 8) 或 9 (對於 Solaris 9) 。


    # cd /cdrom/cdrom0/Solaris_arch/Product/sun_cluster/Solaris_ver/Tools/
    

  11. 啟動 scinstall 公用程式。


    # /usr/cluster/bin/scinstall
    

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

    • 互動式 scinstall 可讓您預先鍵入。因此,如果下一個功能表螢幕沒有立即顯示,請勿多次按下 Return 鍵。

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

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

  13. 從 [主功能表] 選擇功能表項目 [安裝叢集或叢集節點]。


      *** 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
            4) Upgrade this cluster node
          * 5) Print release information for this cluster node
    
    
          * ?) Help with menu options
          * q) Quit
    
        Option:  1
    

  14. 從 [安裝功能表] 中選擇功能表項目 [將此機器增加為現有叢集中的節點]。

  15. 依照功能表提示提供的答覆 您在步驟 4 中完成的工作表。

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

  16. 變更至是 CD-ROM 上的目錄,然後彈出 CD-ROM。


    # eject cdrom
    

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

  18. 從使用中的節點成員,防止任何其他節點連結該叢集。


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

    新增

    -T

    指定認證選項

    node=.

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

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

  19. 更新法定票數。

    當您增加或減少法定裝置的節點附件數目時,叢集節點不會自動重新計算法定票數。此步驟重新建立正確的法定票數。

    使用 scsetup 公用程式移除每個法定裝置,然後將其重新增加至配置中。每次在一個法定裝置上執行此步驟。

    如果叢集僅有一個法定裝置,請在移除和重新增加原有法定裝置前配置第二個法定裝置。然後移除第二個法定裝置,以將叢集返回至其原有配置。

  20. 安裝 Sun StorEdge QFS 檔案系統軟體。

    依照Sun StorEdge QFS and Sun StorEdge SAM-FS Software Installation and Configuration Guide中的初始安裝程序操作。

  21. (選擇性的) SPARC:若要安裝 VERITAS File System,請移至SPARC: 如何安裝 VERITAS File System 軟體

  22. 設定名稱服務尋找順序。

    請移至如何配置名稱服務切換

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


 >>> 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
Copying the security keys 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 ...