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

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

執行此程序,在現有叢集中增加新節點。若要使用 JumpStart 增加新節點,請改為遵循如何安裝 Solaris 和 Sun Cluster 軟體 (JumpStart)中的程序。


備註 –

此程序使用 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. 若要在叢集節點上進行配置,請成為超級使用者。

  2. 啟動 scinstall 公用程式。


    phys-schost-new# /usr/cluster/bin/scinstall
    

    螢幕會顯示 scinstall 主功能表。

  3. 輸入與 [建立新的叢集或增加叢集節點] 選項對應之數字,然後按 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
    

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

  4. 輸入與 [將此機器增加到現有叢集做為節點] 選項對應的數字,然後按下 Return 鍵。

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

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

  6. 從 DVD-ROM 光碟機卸載 Sun Java Availability Suite DVD-ROM。

    1. 若要確保 DVD-ROM 未被佔用,請轉至不是位於 DVD-ROM 上的目錄。

    2. 彈出 DVD-ROM。


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

  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. 從使用中的叢級成員,阻止讓其他任何節點加入叢集。


    phys-schost# claccess deny-all
    

    另外,您可以使用 clsetup 公用程式。請參閱「Sun Cluster 系統管理指南(適用於 Solaris 作業系統)」中的「如何新增節點至已授權的節點清單」以得知相關程序資訊。

  10. 在節點登入為超級使用者。

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


    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) 線上手冊。

  12. 驗證是否已安裝所有必要的修補程式。


    phys-schost# showrev -p
    
  13. (可選擇) 若所有的監視磁碟路徑都故障,請啟用自動節點重新啟動。

    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
      …
  14. 若您想要在具有高度可用性的本機檔案系統使用 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–3 在附加節點上配置 Sun Cluster 軟體

以下範例顯示增加至叢集 schost 的節點 phys-schost-3。贊助節點為 phys-schost-1


*** Adding a Node to an Existing Cluster ***
Fri Feb  4 10:17:53 PST 2005


scinstall -ik -C schost -N phys-schost-1 -A trtype=dlpi,name=qfe2 -A trtype=dlpi,name=qfe3 
-m endpoint=:qfe2,endpoint=switch1 -m endpoint=:qfe3,endpoint=switch2


Checking device to use for global devices file system ... done

Adding node "phys-schost-3" to the cluster configuration ... done
Adding adapter "qfe2" to the cluster configuration ... done
Adding adapter "qfe3" 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 postconfig file from "phys-schost-1" if it exists ... done
Copying the Common Agent Container keys from "phys-schost-1" ... done


Setting the node ID for "phys-schost-3" ... done (id=1)

Setting the major number for the "did" driver ... 
Obtaining the major number for the "did" driver from "phys-schost-1" ... done
"did" driver major number set to 300

Checking for global devices global file system ... done
Updating vfstab ... done

Verifying that NTP is configured ... done
Initializing NTP configuration ... done

Updating nsswitch.conf ... 
done

Adding clusternode entries to /etc/inet/hosts ... done


Configuring IP Multipathing groups in "/etc/hostname.<adapter>" files

Updating "/etc/hostname.hme0".

Verifying that power management is NOT configured ... done

Ensure that the EEPROM parameter "local-mac-address?" is set to "true" ... done
The "local-mac-address?" parameter setting has been changed to "true".

Ensure network routing is disabled ... done

Updating file ("ntp.conf.cluster") on node phys-schost-1 ... done
Updating file ("hosts") on node phys-schost-1 ... done

Rebooting ... 

疑難排解

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

接下來的步驟

若要將節點增加至使用法定裝置的現有叢集,請至如何在將節點增加至叢集後更新法定裝置

否則,請移至如何驗證法定配置與安裝模式