Sun Cluster 3.0 12/01 軟體安裝手冊

如何在其它叢集節點安裝 Sun Cluster 軟體 (scinstall)

在第一個安裝的節點上安裝 Sun Cluster 軟體並建立叢集之後,請在每個要安裝在叢集中的其它節點上執行這項作業。您也可以使用此程序將新節點新增到現有的叢集內。


註解 -

如果您是使用 scinstall(1M) 自訂 JumpStart 或 SunPlex Manager 安裝方法,則 Sun Cluster 軟體也已一起安裝了。請至 "如何配置名稱服務轉換"


  1. 確定第一個安裝的節點已成功安裝了 Sun Cluster 軟體,且也已經建立了叢集。

    有關建立叢集的安裝程序,請參閱 "如何在第一個叢集節點安裝 Sun Cluster 軟體 (scinstall)"

  2. 如果要將新節點加入現有的完整安裝叢集內,請確認您已執行下列作業。

    1. 備妥叢集,以接受新節點。

      依照 Sun Cluster 3.0 12/01 系統管理手冊 中"如何新增叢集節點至已授權的節點清單" 程序中的指示進行。

    2. 將 Solaris 軟體安裝於新節點上

      請依"如何安裝 Solaris 軟體"中的指示進行。不管 Solaris 作業環境是否已經安裝在新節點上,您都必須進行這項作業。

  3. 完成並備妥 Sun Cluster 3.0 版次注意事項 中的下列配置規劃表。

    • "叢集與節點名稱工作表"

    • "叢集交互連接工作表"

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

  4. 成為要安裝之叢集節點的超級使用者。

  5. 如果您是從 CD-ROM 安裝,請將 Sun Cluster 3.0 12/01 CD-ROM 插入節點的 CD-ROM 光碟機,以便安裝與配置。

    如果容體管理常駐程式 vold(1M) 為執行狀態而且配置可管理 CD-ROM 裝置,則會自動將 CD-ROM 裝載於 /cdrom/suncluster_3_0_u2 目錄。

  6. 是否要在交互連接傳輸上使用 Remote Shared Memory Application Programming Interface (RSMAPI) 或是使用 SCI-PCI 配接卡?

    • 如果不是,請至步驟 7

    • 如果是,請從 Sun Cluster 3.0 12/01 CD-ROM 的 Packages 目錄安裝其它套件。 scinstall(1M) 不會自動安裝這些套件。


      # cd /cdrom/suncluster_3_0_u2/SunCluster_3.0/Packages
      # pkgadd -d . packages
      

      下表列出支援 RSMAPI 或 SCI-PCI 配接卡所需的 Sun Cluster 3.0 套件,以及安裝時所必須遵循的順序。

      表 2-3 支援 RSMAPI 與 SCI-PCI 配接卡所需的 Sun Cluster 3.0 套件

      功能 

      需安裝的其它 Sun Cluster 3.0 套件 

      RSMAPI 

      SUNWscrif

      SCI-PCI 配接卡 

      SUNWsci SUNWscid SUNWscidx

  7. 變更至 /cdrom/suncluster_3_0_u2/SunCluster_3.0/Tools 目錄。


    # cd /cdrom/suncluster_3_0_u2/SunCluster_3.0/Tools
    

  8. 啟動 scinstall 公用程式。


    # ./scinstall
    

    在第一個節點仍在進行安裝時,您就可以開始這個步驟。 必要時,第二個節點會等第一個節點完成安裝。


    小心 - 小心 -

    請勿在其它節點還在安裝時,將第一個安裝的節點重新開機或關機,即使您是使用另一個節點當作贊助節點。在還未將法定票數指定給叢集節點以及尚未停用叢集安裝模式之前,建立了叢集的第一個安裝節點是唯一有法定票數的節點。 如果在叢集還處於安裝模式時,將第一個安裝的節點重新開機或關機,將造成系統因為遺失法定數目而當機。


  9. 在 Main Menu 輸入 2 (將此機器加入成為節點)。

    讀過 Establishing a New Cluster 畫面中的資訊之後,輸入 yes 繼續進入下一個畫面。


    *** Main Menu ***
     
        Please select from one of the following (*) options:
     
          * 1) Establish a new cluster using this machine as the first node
          * 2) Add this machine as a node in an established cluster
            3) Configure a cluster to be JumpStarted from this install server
            4) Add support for new data services to this cluster node
            5) Print release information for this cluster node
     
          * ?) Help with menu options
          * q) Quit
     
        Option:2
     
      *** Adding a Node to an Established Cluster ***
    ...
        Do you want to continue (yes/no) [yes]?yes
    

  10. 出現是否要繼續安裝 Sun Cluster 軟體套件的提示時,輸入 yes


    >>> Software Installation <<<
      
        Installation of the Sun Cluster framework software packages will only
        take a few minutes to complete.
      
        Is it okay to continue (yes/no) [yes]?yes
      
    ** Installing SunCluster 3.0 **
            SUNWscr.....done
    ...Hit ENTER to continue:

    安裝完所有的套件之後,請按下 Return 繼續進入下一個畫面。

  11. 指定現存叢集節點 (稱為贊助節點) 的名稱。


    >>> Sponsoring Node <<<
    ...
        What is the name of the sponsoring node?node1
    

  12. 指定叢集名稱。


    >>> Cluster Name <<<
    ...
        What is the name of the cluster you want to join?clustername
    

  13. 執行安裝前置作業的檢查。


    >>> Check <<<
     
        This step runs sccheck(1M) to verify that certain basic hardware and
        software pre-configuration requirements have been met.If sccheck(1M)
        detects potential problems with configuring this machine as a cluster
        node, a list of warnings is printed.
     
    Hit ENTER to continue:

    如果 sccheck 指令偵測到任何問題,便會顯示有關發現之問題的資訊,並提示您所應採取的下個動作。


    The sccheck utility has detected the following potential problems:
    ...  
    Hit ENTER to continue:
    ...
     What would you like to do?
      
            1) Proceed with the installation anyway
            2) Retry sccheck
            q) Return to the main menu
      
        Option:

    如果您看到這個 sccheck 錯誤訊息,請輸入下列回應之一。

    • 如果確定可以放心地忽略這些 sccheck 訊息,例如,從 Sun Cluster 3.0 12/01 版次注意事項中的通知得知,最近的資格會觸發無害的錯誤訊息,請輸入 1 繼續安裝。

    • 如果您可以更正問題,又不需要結束 scinstall 公用程式,請更正問題並輸入 2 再次執行 sccheck

    • 輸入 q 停止安裝。更正 sccheck 所偵測到的問題,然後再回到 步驟 8 並重新啟動 scinstall

  14. 指定是否要使用自動探尋來配置叢集傳輸。

    如果您的配置中未使用 Ethernet 網路配接卡,請回答 no 並移至 步驟 16


    >>> Autodiscovery of Cluster Transport <<<
      
        If you are using ethernet adapters as your cluster transport
        adapters, autodiscovery is the best method for configuring the
        cluster transport.
      
        Do you want to use autodiscovery (yes/no) [yes]?
    ...
        The following connections were discovered:
      
            node1:adapter switch node2:adapter 
            node1:adapter switch node2:adapter 
      
        Is it okay to add these connections to the configuration (yes/no) [yes]?

  15. 是否在 步驟 14 中使用自動探尋?

  16. 指定此叢集是否為兩個節點的叢集。


    >>> Point-to-Point Cables <<<
    ...
        Is this a two-node cluster (yes/no) [yes]?

  17. 是否指定此叢集為兩個節點的叢集?

    • 如果是,請指定是否要使用傳輸接點。


          Does this two-node cluster use transport junctions (yes/no) [yes]?

    • 如果不是,請按 Return 以繼續。如果叢集含有三個或三個以上的節點,就一定要使用傳輸接點。


          Since this is not a two-node cluster, you will be asked to configure
          two transport junctions.
        
      Hit ENTER to continue:

  18. 是否將叢集指定為使用傳輸接點?

    • 如果是,請指定傳輸接點。


      >>> Cluster Transport Junctions <<<
      ...
          What is the name of the first junction in the cluster [switch1]?
          What is the name of the second junction in the cluster [switch2]?

    • 如果不是,請跳至 步驟 19

  19. 指定第一個叢集交互連接傳輸配接卡。

    輸入 help 以列出可供此節點使用的所有傳輸配接卡。


    >>> Cluster Transport Adapters and Cables <<<
    ...
        What is the name of the first cluster transport adapter (help)?adapter
    

  20. 指定第一個傳輸配接卡連接的裝置。

    • 如果傳輸配接卡使用傳輸接點,請指定接點及其通訊埠的名稱。


          Name of the junction to which "adapter" is connected [switch1]?
      ...
          Use the default port name for the "adapter" connection (yes/no) [yes]?

    • 如果傳輸配接卡沒有使用傳輸接點,請指定它所連接的另一個傳輸配接卡。


          Name of adapter on "node1" to which "adapter" is connected?adapter
      
  21. 指定第二個叢集交互連接傳輸配接卡。

    輸入 help 以列出可供此節點使用的所有傳輸配接卡。


        What is the name of the second cluster transport adapter (help)?adapter
    

  22. 指定第二個傳輸配接卡連接的裝置。

    • 如果傳輸配接卡使用傳輸接點,請指定接點及其通訊埠的名稱。


          Name of the junction to which "adapter" is connected [switch2]?
          Use the default port name for the "adapter" connection (yes/no) [yes]?
       
      Hit ENTER to continue:

    • 如果傳輸配接卡沒有使用傳輸接點,請指定它所連接的另一個傳輸配接卡。


          Name of adapter on "node1" to which "adapter" is connected?adapter
      

  23. 指定整體裝置檔案系統名稱。


    >>> Global Devices File System <<<
    ...
        The default is to use /globaldevices.
     
        Is it okay to use this default (yes/no) [yes]?

  24. 是否要安裝任何 Sun Cluster 軟體修補程式?


    >>> Automatic Reboot <<<
    ...
        Do you want scinstall to reboot for you (yes/no) [yes]?

    • 如果是的話,請在「自動重新開機」畫面輸入 no,取消自動重新開機功能。

    • 如果不是,請輸入 yes 接受自動重新開機。

  25. 接受或拒絕所產生的 scinstall 指令。

    顯示由您的輸出所產生的 scinstall 指令以供確認。


    >>> Confirmation <<<
     
        Your responses indicate the following options to scinstall:
     
          scinstall -i  \
    ...
        Are these the options you want to use (yes/no) [yes]?
        Do you want to continue with the install (yes/no) [yes]?

    • 如果您接受此指令繼續安裝,scinstall 便會繼續進行。"範例 - 在第一個節點上安裝 Sun Cluster 軟體" 顯示的範例便是 scinstall 行處理時您可能會看到的輸出。如果叢集內尚未建立贊助節點,scinstall 會一直等待到有贊助節點可用為止。

      Sun Cluster 的安裝輸出記錄在 /var/cluster/logs/install/scinstall.log.pid 檔案,其中 pidscinstall 實例的處理 ID 編號。


      註解 -

      除非您安裝了自己的 /etc/inet/ntp.conf 檔案,否則 scinstall 指令會為您安裝預設的 ntp.conf 檔案。 因為隨附的預設檔案會參考八個節點,因此 xntpd(1M) 常駐程式可能會在啟動時發出錯誤訊息。 您可以忽略這些訊息。 請參閱 "如何更新網路時間協定 (NTP)",以取得如何在其它一般叢集狀況下抑制這些訊息的資訊。


    • 如果您拒絕此指令,scinstall 便會詢問您是否要解除安裝 Sun Cluster 軟體。


          Do you want to de-install the Sun Cluster software (yes/no) [no]?

      scinstall 返回 Main Menu 之後,您可重新執行功能表選項 2,然後提供不同的回答。您在先前階段作業的回答,會顯示為預設值。

  26. 安裝任何 Sun Cluster 軟體修補程式。

    請參閱Sun Cluster 3.0 12/01 版次注意事項 以取得修補程式和安裝指示的位置。

  27. 將節點重新開機以建立叢集。

    如果您在 步驟 26 中安裝修補程式之後已將節點重新開機,便不需要再次將它重新開機。


    小心 - 小心 -

    請勿在其它節點還在安裝時,將第一個安裝的節點重新開機或關機,即使您是使用另一個節點當作贊助節點。在還未將法定票數指定給叢集節點以及尚未停用叢集安裝模式之前,建立了叢集的第一個安裝節點是唯一有法定票數的節點。 如果在叢集還處於安裝模式時,將第一個安裝的節點重新開機或關機,將造成系統因為遺失法定數目而當機。叢集節點會維持在安裝模式,直到您第一次執行 scsetup(1M) 指令為止 (在執行 "如何執行後續安裝設定"的程序時)。


  28. 對其它每一個節點重複這個程序,直到所有的節點均配置完整。

    您不需要等第二個節點完成安裝並重新開機至節點中就可以開始安裝其它節點。

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

    請至"如何配置名稱服務轉換"

範例 - 在第二個節點上安裝 Sun Cluster 軟體

以下範例顯示執行 scinstall 指令,以及當 scinstall 安裝作業在叢集的第二個節點 phys-schost-2 完成安裝時所顯示的進度訊息。


>>> 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 \
           -B type=switch,name=switch1 -B type=switch,name=switch2 \
           -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-2" 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-2" ... done (id=2)
  
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 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 ...