執行此程序,在現有叢集中增加新節點。若要使用 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」。
請執行以下作業:
確定已安裝 Solaris 作業系統來支援 Sun Cluster 軟體。
如果節點上已安裝了 Solaris 軟體,則您必須確定安裝的 Solaris 符合 Sun Cluster 軟體以及您要安裝到叢集上的任何其他軟體的需求。請參閱如何安裝 Solaris 軟體,以取得有關安裝 Solaris 軟體來滿足 Sun Cluster 軟體要求的更多資訊。
請確定 Sun Cluster 套裝軟體和修補程式已安裝在節點上。請參閱如何安裝 Sun Cluster 架構與資料服務套裝軟體。
確認已準備好叢集來增加節點。請參閱如何為其他叢集節點準備叢集。
請確定您要使用 scinstall 公用程式的一般模式還是自訂模式。對於 Sun Cluster 軟體的「一般」安裝,scinstall 自動指定下列配置預設值。
元件 |
預設值 |
---|---|
叢集傳輸交換器 |
switch1 與 switch2 |
整體裝置檔案系統名稱 |
/globaldevices |
請完成以下配置規劃工作表之一。請參閱規劃 Solaris 作業系統與規劃 Sun Cluster 環境,以取得規劃準則。
典型模式工作表 - 如果要使用典型模式,並且接受所有預設值,請完成以下工作表。
自訂模式工作表 - 若要使用自訂模式並自訂配置資料,請完成以下工作表。
請依照這些準則來使用此程序中的互動式 scinstall 公用程式:
互動式 scinstall 可讓您繼續鍵入。因此,如果下一個功能表螢幕沒有立即顯示,請勿多次按下 Return 鍵。
除非另有說明,否則可按下 Ctrl-D 返回一系列相關問題的起始位置或 Main Menu。
先前階段作業的預設回覆顯示在問題結尾處的括號 ([ ]) 中。按 Return 鍵可輸入括號中的回應,無需鍵入它。
若要在叢集節點上進行配置,請成為超級使用者。
啟動 scinstall 公用程式。
phys-schost-new# /usr/cluster/bin/scinstall |
螢幕會顯示 scinstall 主功能表。
鍵入 [Create a New Cluster or Add a Cluster Node] 的選項號碼,然後按換行鍵。
*** 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 |
之後會顯示 [New Cluster and Cluster Node] 功能表。
鍵入 [Add This Machine as a Node in an Existing Cluster] 的選項號碼,然後按換行鍵。
依照功能表提示提供您的答覆從配置規劃工作表提供您的回答。
scinstall 公用程式配置節點並將節點啟動到叢集中。
從 DVD-ROM 光碟機卸載 Sun Java Availability Suite DVD-ROM。
在要加入至叢集中的任何其他節點上重複執行此程序,直到完全配置所有其他節點。
對於 Solaris 10 作業系統,請驗證每個節點上 Service Management Facility (SMF) 的多重使用者服務皆為線上狀態。
如果節點的服務尚未進入線上狀態,請待其進入線上狀態後,再繼續執行下一個步驟。
phys-schost# svcs multi-user-server node STATE STIME FMRI online 17:52:55 svc:/milestone/multi-user-server:default |
phys-schost# claccess deny-all |
另外,您可以使用 clsetup 公用程式。請參閱「Sun Cluster 系統管理指南(適用於 Solaris 作業系統)」中的「如何新增節點至已授權的節點清單」,以取得相關程序的資訊。
在節點登入為超級使用者。
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) 線上手冊」。
驗證是否已安裝所有必要的修補程式。
phys-schost# showrev -p |
(可選擇) 若所有的監視磁碟路徑都故障,請啟用自動節點重新啟動。
如果您想要在具有高度可用性的本機檔案系統上使用 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 9 或 Solaris 10)。
以下範例顯示增加至叢集 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 套裝軟體。接著,重新執行此程序。
若要將節點增加至使用法定裝置的現有叢集,請至如何在將節點增加至叢集後更新法定裝置。
否則,請至如何驗證法定配置與安裝模式。