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

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

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

開始之前

請執行以下作業:

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

步驟
  1. 如果您要將此節點增加至單一節點的叢集,請透過顯示互連配置來確保已存在兩個叢集之間互連。


    # scconf -p | grep cable
    # scconf -p | grep adapter
    

    增加節點前,必須配置至少兩條電纜或兩個配接卡。

    • 如果輸出顯示兩條電纜或兩個配接卡的配置資訊,請繼續執行步驟 2

    • 如果輸出顯示沒有電纜或配接卡的配置資訊,或僅顯示一條電纜或一個配接卡的配置資訊,請配置新的叢集互連。

      1. 在現有叢集節點上,啟動 scsetup(1M) 公用程式。


        # scsetup
        
      2. 選擇功能表項目 [叢集互連]。

      3. 選擇功能表項目 [增加傳輸電纜]。

        依照指示指定要加入至叢集的節點名稱、傳輸配接卡名稱以及是否使用傳輸接點。

      4. 必要時,請重複執行步驟 c,以再次配置叢集互連。

        完成後,退出 scsetup 公用程式。

      5. 確認此叢集現在已配置了兩個叢集互連。


        # scconf -p | grep cable
        # scconf -p | grep adapter
        

        指令輸出應該至少顯示兩個叢集互連的配置資訊。

  2. 如果您將此節點增加至現有叢集,請將新節點增加至叢集的授權節點的清單。

    1. 在任意使用中的叢集成員上,啟動 scsetup(1M) 公用程式。


      # scsetup
      

      顯示 Main Menu。

    2. 選擇功能表項目,新增節點。

    3. 選擇功能表項目,指定可能增加其自身的機器之名稱。

    4. 依照提示,將節點名稱加入至已辨識機器的清單。

      如果完成作業後沒有任何錯誤,則 scsetup 公用程式會列印訊息 Command completed successfully

    5. 結束 scsetup 公用程式。

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

  4. 啟動 scinstall 公用程式。


    # /usr/cluster/bin/scinstall
    
  5. 從 [Main Menu] 中選擇功能表項目,安裝叢集或叢集節點。


      *** Main Menu ***
    
        Please select from one of the following (*) options:
    
          * 1) Install a cluster or cluster node
            2) Configure a cluster to be JumpStarted from this install server
            3) Add support for new data services to this cluster node
            4) Upgrade this cluster node
          * 5) Print release information for this cluster node
    
          * ?) Help with menu options
          * q) Quit
    
        Option:  1
    
  6. 從 [安裝功能表] 中選擇功能表項目 [將此機器增加為現有叢集中的節點]。

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

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

  8. 變更至是 CD-ROM 上的目錄,然後彈出 CD-ROM。


    # eject cdrom
    
  9. 請安裝任何必要的修補程式來支援 Sun Cluster 軟體 (如果您尚未執行此作業)。

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

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

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


    # svcs multi-user-server
    STATE          STIME    FMRI
    online         17:52:55 svc:/milestone/multi-user-server:default
  12. 從使用中的叢集成員,阻止任何其他節點加入叢集。


    # /usr/cluster/bin/scconf -a -T node=.
    
    -a

    指定指令的增加形式

    -T

    指定認證選項

    node=.

    指定要加入至認證清單中的點 (.) 節點名稱,以阻止任何其他節點自動加入至叢集

    或者,您可以使用 scsetup(1M) 公用程式。請參閱「Sun Cluster 系統管理指南(適用於 Solaris 作業系統)」中的「如何新增節點至已授權的節點清單」,以取得使用此公用程式的程序。

  13. 從一個節點,驗證所有節點都已加入了此叢集。

    執行 scstat(1M) 指令以顯示叢集節點的清單。您無需以超級使用者身份登入即可執行此指令。


    % scstat -n
    

    輸出類似下列。


    -- Cluster Nodes --
                               Node name      Status
                               ---------      ------
      Cluster node:            phys-schost-1  Online
      Cluster node:            phys-schost-2  Online
  14. 若要重新啟用迴路檔案系統 (LOFS),請從叢集的每個節點上的 /etc/system 檔案中刪除以下項目。


    exclude:lofs

    重新啟用 LOFS 會在下次重新啟動系統後生效。


    備註 –

    如果您在具有高度可用性的本機檔案系統上使用 Sun Cluster HA for NFS,並且執行 automountd,則無法啟用 LOFS。LOFS 可導致 Sun Cluster HA for NFS 發生切換保護移轉問題。如果您啟用了 LOFS,並且之後選擇在具有高度可用性的本機檔案系統上增加 Sun Cluster HA for NFS,則必須執行以下作業之一:

    • 在叢集的每個節點上修復 /etc/system 檔案的 exclude:lofs 項目,然後重新啟動節點。此變更會停用 LOFS。

    • 停用 automountd 常駐程式。

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


    請參閱「System Administration Guide, Volume 1」中的Types of File Systems(Solaris 8),或「System Administration Guide: Devices and File Systems」中的「The Loopback File System」(Solaris 9Solaris 10),以取得有關迴路檔案系統的更多資訊。


範例 2–2 在附加節點上配置 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 ... 

接下來的步驟

確定下一步驟:

如果您將節點增加至雙節點叢集,請移至如何在增加節點後更新 SCSI 保留

如果您要安裝資料服務,請移至適用於所要安裝的資料服務和您的 Solaris 作業系統版本的程序:

 

Sun Cluster 2 of 2 CD-ROM 

(Sun Java System 資料服務) 

Sun Cluster Agents CD 

(所有其他資料服務) 

程序 

Solaris 8 或 9 

Solaris 10 

Solaris 8 或 9 

Solaris 10 

如何安裝 Sun Cluster 架構和資料服務軟體套裝模組 (Java ES installer)

     

如何安裝資料服務軟體套裝模組 (pkgadd)

 

   

如何安裝資料服務軟體套件 (scinstall)

   

如何安裝資料服務軟體套裝模組 (Web Start installer)

   

 

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

疑難排解

當您增加或減少法定裝置的節點附件數目時,叢集節點不會自動重新計算法定票數。若要重新建立正確的法定票數,請使用 scsetup 公用程式移除每個法定裝置,然後再將其重新加入配置。請一次在一個法定裝置上執行此作業。

如果叢集僅有一個法定裝置,請在移除和重新增加原有法定裝置前配置第二個法定裝置。然後移除第二個法定裝置,以將叢集返回至其原有配置。