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

如何在第一個叢集節點安裝 Sun Cluster 軟體 (scinstall)

安裝 Solaris 作業環境之後,請在叢集的一個節點上執行此作業,以安裝 Sun Cluster 軟體並建立叢集。


註解 -

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


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

    您必須依照 "如何安裝 Solaris 軟體" 描述的程序安裝 Solaris 軟體。 如果節點已經安裝了 Solaris 軟體,您還是必須重新再安裝一次,以確定 Solaris 的安裝內容符合 Sun Cluster 軟體和其它要安裝在叢集上的軟體的需求。

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

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

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

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

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

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

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

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

    • 如果不是,請至步驟 6

    • 如果是,請從 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-2 支援 RSMAPI 與 SCI-PCI 配接卡所需的 Sun Cluster 3.0 套件

      功能 

      需安裝的其它 Sun Cluster 3.0 套件  

      RSMAPI 

      SUNWscrif

      SCI-PCI 配接卡 

      SUNWsci SUNWscid SUNWscidx

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


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

  7. 啟動 scinstall(1M) 公用程式。


    # ./scinstall
    

    依照提示並使用您的配置規劃表來安裝 Sun Cluster 軟體。

    使用交談式 scinstall 公用程式時,請遵循以下的準則。

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

    • 除非另有說明,按下 Control-D 將返回一系列相關問題的起始位置或 Main Menu。如果您在安裝 Sun Cluster 軟體之後按下 Control-D 以中斷階段作業,scinstall 將會詢問您是否要解除安裝那些套件。

    • 您階段作業的回答,會被儲存為下次執行此功能表選項時的預設值。 預設答案顯示在提示符號末尾的括弧 ([ ]) 內。


    提示 -

    在以叢集模式順利啟動節點後,才能重新執行 scinstall,以及依據需要變更配置資訊。 然而,如果節點的錯誤配置資料,影響到叢集已建立的部份,您可能需要先將錯誤資訊移除 。 若要執行此動作,請登入其中一個作用中的叢集節點,然後使用 scconf(1M) 公用程式移除錯誤的配接卡、接點或電纜資訊。


  8. 在 Main Menu 上,輸入 1 (建立一個新的叢集)。

    讀過 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:1
     
     *** Establishing a New Cluster ***
    ...
     Do you want to continue (yes/no) [yes]?yes
    

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


    >>> Software Package Installation <<<
      
        Installation of the Sun Cluster framework software packages will 
        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 以進入下一個畫面。

  10. 指定叢集名稱。


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

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


    >>> 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 所偵測到的問題,然後再回到 步驟 7 並重新啟動 scinstall

  12. 指定其它將成為此叢集一部份的節點名稱。


    >>> Cluster Nodes <<<
    ...
        Node name:node2
        Node name (Ctrl-D to finish):<Control-D>
     
        This is the complete list of nodes:
    ...
        Is it correct (yes/no) [yes]?

  13. 指定是否要使用資料加密標準 (DES) 認證方式。

    依預設,只有節點實際連接私有交互連接,而且其名稱已於 步驟 12 內予以指定,Sun Cluster 軟體才會允許節點連接叢集。然而,因為私有交互連接尚未完全配置,所以節點實際上是透過公開網路與贊助節點溝通。 DES 認證機制為安裝程序多提供一層額外的安全保障,讓贊助節點得以更可靠地認證與它聯繫要求更新叢集配置的節點。

    如果您選擇採用 DES 認證多加上一層保障,則必須先將所有必要的加密鍵設定好之後,節點才能加入叢集內。 請參閱 keyserv(1M) 及 publickey(4) 線上援助頁,以取得詳細資訊。


    >>> Authenticating Requests to Add Nodes <<<
    ...
        Do you need to use DES authentication (yes/no) [no]?

  14. 指定私有網路位址與網路遮罩。


    >>> Network Address for the Cluster Transport <<<
    ...
        Is it okay to accept the default network address (yes/no) [yes]?
        Is it okay to accept the default netmask (yes/no) [yes]?


    註解 -

    等叢集成功形成之後,私有網路位址就不能變更了。


  15. 指定叢集是否使用傳輸接點。

    • 如果此叢集為兩個節點的叢集,請指定您是否要使用傳輸接點。


      >>> Point-to-Point Cables <<<
       ...
          Does this two-node cluster use transport junctions (yes/no) [yes]?


      提示 -

      無論節點是否互相直接連接,您都可以指定叢集使用傳輸接點。 如果將叢集指定為使用傳輸接點,以後要將新的節點加入叢集內就比較簡單了。


    • 如果這個叢集含有三個或三個以上的節點,就一定要使用傳輸接點。請按 Return 繼續進入下一個畫面。


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

  16. 這個叢集是否使用傳輸接點?

    • 如果是,請指定傳輸接點的名稱。您可以使用預設名稱 switchN,或建立自己的名稱。


      >>> 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]?

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

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

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


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

  18. 如果您的叢集使用傳輸接點,請指定第一個傳輸接點及其通訊埠的名稱。

    否則,請跳至 步驟 19


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


    註解 -

    如果您的配置使用 SCI 配接卡,當出現配接卡連線 (通訊埠名稱) 的提示時,請勿接受預設值。請提供在 Dolphin 切換器上找到的通訊埠名稱 (0123),且節點是實際以電纜連接。以下範例顯示拒絕預設通訊埠名稱並指定 Dolphin 切換器通訊埠名稱 0 的提示和回應。


        Use the default port name for the "adapter" connection (yes/no) [yes]?no
        What is the name of the port you want to use?0
    


  19. 選擇第二個叢集交互連接傳輸配接卡。

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


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

    scinstall 指令最多可以配置兩個配接卡。至於其它配接卡,等 Sun Cluster 軟體安裝完畢,可以使用 scsetup 公用程式進行配置。

  20. 如果您的叢集使用傳輸接點,請指定第二個傳輸接點及其通訊埠的名稱。

    否則,請跳至 步驟 21


        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:


    註解 -

    如果您的配置使用 SCI 配接卡,當出現配接卡通訊埠名稱的提示時,請勿接受預設值。請提供在 Dolphin 切換器上找到的通訊埠名稱 (0123),且節點是實際以電纜連接。以下範例顯示拒絕預設通訊埠名稱並指定 Dolphin 切換器通訊埠名稱 0 的提示和回應。


        Use the default port name for the "adapter" connection (yes/no) [yes]?no
        What is the name of the port you want to use?0
    


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


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

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


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

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

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

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

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


    >>> Confirmation <<<
     
        Your responses indicate the following options to scinstall:
     
          scinstall -ik  \
    ...
        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 進行處理時您可能會看到的輸出。

      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 之後,您可重新執行功能表選項 1,然後提供不同的回答。您在先前階段作業的回答,會顯示為預設值。

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

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

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

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

    Sun Cluster 安裝完成並第一次重新開機後,便已建立叢集,這個節點亦成為叢集內第一個安裝的節點。

  26. 安裝叢集中的其它節點。

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

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

以下範例顯示執行 scinstall 指令,以及當 scinstall 安裝作業在叢集的第一個節點 phys-schost-1 完成安裝時所顯示的進度訊息。此叢集具有四個節點,並使用 Ethernet 網路配接卡和傳輸接點。


>>> Confirmation <<<
  
    Your responses indicate the following options to scinstall:
  
      scinstall -ik \
           -C sc-cluster \
           -F \
           -T node=phys-schost-1,node=phys-schost-2,node=phys-schost-3,node=phys
-schost-4,authtype=sys \
           -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
  
Initializing cluster name to "sc-cluster" ... done
Initializing authentication options ... done
Initializing configuration for adapter "hme1" ... done
Initializing configuration for adapter "hme3" ... done
Initializing configuration for junction "switch1" ... done
Initializing configuration for junction "switch2" ... done
Initializing configuration for cable ... done
Initializing configuration for cable ... done
  
  
Setting the node ID for "phys-schost-1" ... done (id=1)
  
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.061401232831
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.10559
  
  
Rebooting ...