Sun Cluster 3.0 U1 安裝手冊

如何安裝 Sun Cluster 軟體 (scinstall)

安裝 Solaris 作業環境之後,請在叢集的每個節點上執行此作業,以安裝 Sun Cluster 軟體,並建立新叢集節點。您也可以使用此程序將新節點新增到現有的叢集內。


註解 -

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


  1. Sun Cluster 3.0 版次注意事項 取得已完成的下列配置規劃表。

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

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

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

  2. 成為叢集節點的超級使用者。

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

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

  4. 變更為到 /cdrom/suncluster_3_0u1/SunCluster_3.0/Tools 目錄。


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

  5. 要在現有的叢集安裝新的節點嗎?

  6. 安裝第一個節點並建立新的叢集。

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

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


      # ./scinstall
      

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

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

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

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


      提示 -

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


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


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

    3. 指定叢集名稱。


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

    4. 指定其他將成為此叢集一部份的節點名稱&


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

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

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

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


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

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


      註解 -

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



       >>> 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]? 
    7. 如果這個是兩個節點的叢集,請指定此叢集是否要使用傳輸接點。


      提示 -

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



       >>> Point-to-Point Cables <<< ...Does this two-node cluster use transport junctions (yes/no) [yes]?
    8. 如果此叢集使用傳輸接點,請指定傳輸接點的名稱。

      如果叢集含有三個或三個以上的節點,就一定要使用傳輸接點。您可以使用預設名稱 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]? 

    9. 請設定叢集交互連接傳輸配接卡,而且如果有用到的話,還要輸入配接卡所連接的傳輸接點名稱。

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


       >>> Cluster Transport Adapters and Cables <<<
       ...
          What is the name of the first cluster transport adapter?  adapter
       ...
          Name of the junction to which "adapter" is connected [switch1]? 
       ...
          What is the name of the second cluster transport adapter?  adapter
       ...
          Okay to use the default for the "qfe0" connection (yes/no) [yes]? 
        
          What is the name of the second cluster transport adapter?  adapter
       
          Name of the junction to which "adapter" is connected [switch2]? 
           Use the default port for the "adapter" connection [yes]? 

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


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

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

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

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


       >>> Automatic Reboot <<< ...Do you want scinstall to reboot for you (yes/no) [yes]?
    12. 接受或拒絕所產生的 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 公用程式會返回 Main Menu。在此您可以重新執行功能表選項 1,然後提供不同的回答。您先前回答的內容,會顯示為預設值。

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


    註解 -

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


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

    • 如果是的話,請將需要的 Sun Cluster 軟體修補程式安裝到節點上,然後將節點重新開機。請參閱 Sun Cluster 3.0 U1 版次注意事項,以取得修補程式和安裝指示的位置。

    • 如果不是,而且 scinstall 在安裝的過程中將節點重新開機,請跳至 步驟 8。如果 scinstall 未將節點重新開機,請自行重開該節點,建立叢集,然後再繼續進行 步驟 8

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

  8. 安裝叢集內的第二個節點。

    請依照提示訊息安裝 Sun Cluster 軟體。請參閱您的配置規劃表的資訊。


    註解 -

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


    1. 啟動 scinstall 公用程式。

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


      # ./scinstall
      

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


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

    3. 指定現存叢集節點的名稱,請參閱 sponsoring node


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

    4. 指定叢集名稱。


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

    5. 指定此叢集是否由兩個節點構成,以及該叢集是否使用傳輸接點。

      若叢集含有三個或三個以上節點,就必須使用傳輸接點。


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

    6. 指定叢集交互連接傳輸配接卡和傳輸接點,如果有的話。


      >>> Cluster Transport Adapters and Cables <<< ...What is the name of the first cluster transport adapter?  
      adapter
      ...Name of adapter on 'node1' to which 'adapter' is connected?  
      adapter
       
          What is the name of the second cluster transport adapter?  adapter
          Name of adapter on 'node1' to which 'adapter' is connected?  
      adapter
      

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


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

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

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

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


       >>> Automatic Reboot <<< ...Do you want scinstall to reboot for you (yes/no) [yes]?
    9. 接受或拒絕所產生的 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 會一直等待到有贊助節點可用為止。

      • 如果您不接受指令,scinstall 公用程式會返回 Main Menu。在此您可以重新執行功能表選項 2,然後提供不同的回答。您先前回答的內容,會顯示為預設值。

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


    註解 -

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


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

    • 如果是的話,請將 Sun Cluster 軟體修補程式安裝到節點上,然後將節點重新開機。請參閱 Sun Cluster 3.0 U1 版次注意事項,以取得修補程式和安裝指示的位置。


      註解 -

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


    • 如果不是,而且 scinstall 在安裝的過程中將節點重新開機,請跳至 步驟 10。如果 scinstall 未將節點重新開機,請自行重開該節點,建立叢集,然後再繼續進行 步驟 10

  10. 對其他每一個節點重複 步驟 8步驟 9,直到所有的節點均配置完整。

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

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

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

範例-安裝 Sun Cluster 軟體

scinstall 安裝作業在叢集的第一個節點 phys-schost-1 完成安裝時,下列範例即顯示其進度訊息。


** Installing SunCluster 3.0 **
        SUNWscr.....done.
        SUNWscdev...done.
        SUNWscu.....done.
        SUNWscman...done.
        SUNWscsal...done.
        SUNWscsam...done.
        SUNWscrsmop.done.
        SUNWsci.....done.
        SUNWscid....done.
        SUNWscidx...done.
        SUNWscvm....done.
        SUNWmdm.....done.
 
Initializing cluster name to "sccluster" ... done
Initializing authentication options ... done
Initializing configuration for adapter "hme2" ... done
Initializing configuration for adapter "hme4" ... 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
Checking device to use for global devices 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.060199105132
Power management is incompatible with the HA goals of the cluster.
Please do not attempt to re-configure power management.
 
Ensure 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.276
 
Rebooting ...