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

Procedure如何在所有節點上配置 Sun Cluster 軟體 (scinstall)

在叢集的一個節點上執行此程序,以在叢集的所有節點上配置 Sun Cluster 軟體。


備註 –

此程序使用 scinstall 指令的互動式格式。若要使用 scinstall 指令的非互動式格式,例如在開發安裝程序檔時,請參閱 scinstall(1M) 線上手冊。

在執行 scinstall 指令之前,請確認已手動或使用 Java ES installer 程式的無訊息模式格式在節點上安裝 Sun Cluster 套裝軟體。如需得知從安裝程序檔執行 Java ES installer 程式的相關資訊,請參閱「Sun Java Enterprise System 5 Installation Guide for UNIX」中的第 5 章「Installing in Silent Mode」


開始之前

請執行以下作業:

請遵照這些準則來使用此程序中的互動式 scinstall 公用程式:

  1. 若在安裝 Sun Cluster 軟體期間停用了遠端配置,請重新啟用遠端配置。

    啟用所有叢集節點的 用於超級使用者的遠端 Shell (rsh(1M)) 或 Secure Shell (ssh(1)) 存取。

  2. 在您要配置叢集的叢集節點上,成為超級使用者。

  3. 啟動 scinstall 公用程式。


    phys-schost# /usr/cluster/bin/scinstall
    
  4. 輸入與 [建立新的叢集或增加叢集節點] 選項對應之數字,然後按 Return 鍵。


     *** Main Menu ***
    
        Please select from one of the following (*) options:
    
          * 1) Create a new cluster or add a cluster node
            2) Configure a cluster to be JumpStarted from this install server
            3) Manage a dual-partition upgrade
            4) Upgrade this cluster node
          * 5) Print release information for this cluster node
     
          * ?) Help with menu options
          * q) Quit
    
        Option:  1
    

    之後會顯示 [新叢集與叢集節點功能表]。

  5. 輸入與 [建立新叢集] 選項對應之數字,然後按 Return 鍵。

    之後會顯示 [典型或自訂模式] 功能表。

  6. 輸入與 [典型] 或 [自訂] 模式選項對應之數字,然後按 Return 鍵。

    之後會顯示 [建立新叢集] 畫面。閱讀需求事項,然後按下 Control-D 繼續。

  7. 依照功能表提示, 從配置規劃工作表提供您的回答。

    scinstall 公用程式會安裝與配置所有叢集節點,並重新啟動叢集。在所有節點都已順利啟動並進入叢集後,即建立了叢集。Sun Cluster 安裝輸出記錄於 /var/cluster/logs/install/scinstall.log.N 檔案中。

  8. 對於 Solaris 10 作業系統,請在每個節點上驗證 Service Management Facility (SMF) 的多重使用者服務為線上狀態。

    如果節點的服務尚未進入線上狀態,請待其進入線上狀態後,再繼續執行下一個步驟。


    phys-schost# svcs multi-user-server
    STATE          STIME    FMRI
    online         17:52:55 svc:/milestone/multi-user-server:default
  9. 在節點登入為超級使用者。

  10. 確認所有的節點均已加入叢集。


    phys-schost# clnode status
    

    輸出類似下列文字。


    === Cluster Nodes ===
    
    --- Node Status ---
    
    Node Name                                       Status
    ---------                                       ------
    phys-schost-1                                   Online
    phys-schost-2                                   Online
    phys-schost-3                                   Online

    如需得知更多資訊,請參閱 clnode(1CL) 線上手冊。

  11. (可選擇) 若所有監視磁碟路徑都故障了,請啟用自動節點重新啟動。

    1. 啟用自動重新啟動功能。


      phys-schost# clnode set -p reboot_on_path_failure=enabled
      
      -p

      指定要設定的特性

      reboot_on_path_failure=enable

      若至少有一個磁碟可以從叢集的不同節點存取時,指定為如果所有監視的磁碟路徑失敗時節點會重新啟動。

    2. 驗證在磁碟路徑失敗而自動重新啟動的功能已啟用。


      phys-schost# clnode show
      === Cluster Nodes ===                          
      
      Node Name:                                      節點
      …
        reboot_on_path_failure:                          enabled
      …
  12. 若您想要在具有高度可用性的本機檔案系統使用 Sun Cluster HA for NFS,請確認已停用迴路檔案系統 (LOFS)。

    若要停用 LOFS,請在叢集的每個節點增加以下項目到 /etc/system 檔。


    exclude:lofs

    /etc/system 檔所做的變更會在下次重新啟動系統後生效。


    備註 –

    如果您在具有高度可用性的本機檔案系統上使用 Sun Cluster HA for NFS,並且執行 automountd,則無法啟用 LOFS。LOFS 可導致 Sun Cluster HA for NFS 發生切換保護移轉問題。若您選擇要在具有高度可用性的本機檔案系統上增加 Sun Cluster HA for NFS,您就必須進行以下其中一項配置變更。

    但是,若您在叢集配置非全域區域,就必須在全部叢集節點啟用 LOFS。若具有高度可用性之本機檔案系統上的 Sun Cluster HA for NFS 必須與 LOFS 共存,請使用其他解決方案之一,而非停用 LOFS。

    • 停用 LOFS。

    • 停用 automountd 常駐程式。

    • 從自動掛載程式對應中,排除所有由 Sun Cluster HA for NFS 匯出的具有高度可用性之本機檔案系統中的檔案。此選擇可讓您將 LOFS 與 automountd 常駐程式保持為啟用狀態。


    請參閱「System Administration Guide: Devices and File Systems」中的「The Loopback File System」 (Solaris 9Solaris 10) ,以得知關於迴路檔案系統的更多資訊。


範例 3–1 在所有節點上配置 Sun Cluster 軟體

以下範例顯示 scinstall 在雙節點叢集上完成配置作業時,所記錄的 scinstall 進度訊息 (schost)。使用 scinstall 一般模式,從 phys-schost-1 安裝叢集。另一個叢集節點為 phys-schost-2。配接卡名稱為 qfe2qfe3。已啟用自動選擇法定裝置。


  Installation and Configuration

    Log file - /var/cluster/logs/install/scinstall.log.24747

    Testing for "/globaldevices" on "phys-schost-1" … done
    Testing for "/globaldevices" on "phys-schost-2" … done
    Checking installation status … done

    The Sun Cluster software is already installed on "phys-schost-1".
    The Sun Cluster software is already installed on "phys-schost-2".
    Starting discovery of the cluster transport configuration.

    The following connections were discovered:

        phys-schost-1:qfe2  switch1  phys-schost-2:qfe2
        phys-schost-1:qfe3  switch2  phys-schost-2:qfe3

    Completed discovery of the cluster transport configuration.

    Started sccheck on "phys-schost-1".
    Started sccheck on "phys-schost-2".

    sccheck completed with no errors or warnings for "phys-schost-1".
    sccheck completed with no errors or warnings for "phys-schost-2".

    Removing the downloaded files … done

    Configuring "phys-schost-2" … done
    Rebooting "phys-schost-2" … done

    Configuring "phys-schost-1" … done
    Rebooting "phys-schost-1" …

Log file - /var/cluster/logs/install/scinstall.log.24747

Rebooting …

疑難排解

配置失敗 - 若無法將一個或數個節點加入叢集,或者指定了錯誤的配置資訊,請先嘗試重新執行此程序。若上述做法無法修正問題,請在每個配置錯誤的節點執行如何取消配置 Sun Cluster 軟體來修正安裝問題的程序來將其從叢集配置中移除。您不需要解除安裝 Sun Cluster 套裝軟體。接著,重新執行此程序。

接下來的步驟