使用 XML 叢集配置檔執行此程序來配置新叢集節點。新節點可以是執行 Sun Cluster 3.2 2/08 軟體之現有叢集節點的複本。
此程序會在新節點配置以下叢集元件:
叢集節點成員
叢集互連
全域裝置
執行下列作業:
確定已安裝 Solaris 作業系統來支援 Sun Cluster 軟體。
如果節點上已安裝了 Solaris 軟體,則您必須確定安裝的 Solaris 符合 Sun Cluster 軟體以及您要安裝到叢集上的任何其他軟體的需求。請參閱如何安裝 Solaris 軟體,以取得有關安裝 Solaris 軟體來滿足 Sun Cluster 軟體要求的更多資訊。
請確定 Sun Cluster 套裝軟體和必要的修補程式已安裝在節點上。請參閱如何安裝 Sun Cluster 架構與資料服務套裝軟體。
確認已準備好叢集來增加節點。請參閱如何為其他叢集節點準備叢集。
確認尚未在想要增加至叢集的可能節點上配置了 Sun Cluster 軟體。
在可能的節點上成為超級使用者。
判定是否已在可能的節點上配置了 Sun Cluster 軟體。
phys-schost-new# /usr/sbin/clinfo -n |
將可能的節點啟動至非叢集模式。
在 SPARC 架構的系統上,執行下列指令:
ok boot -x |
在 x86 架構的系統上,執行下列指令:
在 GRUB 功能表上,使用箭頭鍵選取適當的 Solaris 項目,然後輸入 e 編輯其指令。
GRUB 功能表會以類似以下的方式顯示:
GNU GRUB version 0.95 (631K lower / 2095488K upper memory) +----------------------------------------------------------------------+ | Solaris 10 /sol_10_x86 | | Solaris failsafe | | | +----------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, or 'c' for a command-line. |
如需有關以 GRUB 為基礎的啟動之更多資訊,請參閱「System Administration Guide: Basic Administration」中的第 11 章「GRUB Based Booting (Tasks)」。
在啟動參數畫面,使用箭頭鍵選取 kernel 項目並輸入 e 來編輯該項目。
GRUB 啟動參數畫面會以類似以下的方式顯示:
GNU GRUB version 0.95 (615K lower / 2095552K upper memory) +----------------------------------------------------------------------+ | root (hd0,0,a) | | kernel /platform/i86pc/multiboot | | module /platform/i86pc/boot_archive | +----------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted. Press 'b' to boot, 'e' to edit the selected command in the boot sequence, 'c' for a command-line, 'o' to open a new line after ('O' for before) the selected line, 'd' to remove the selected line, or escape to go back to the main menu. |
增加 -x 到指令來指定系統啟動為非叢集模式。
[ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ESC at any time exits. ] grub edit> kernel /platform/i86pc/multiboot -x |
按 Enter 接受變更,並返回啟動參數畫面。
畫面會顯示已編輯的指令。
GNU GRUB version 0.95 (615K lower / 2095552K upper memory) +----------------------------------------------------------------------+ | root (hd0,0,a) | | kernel /platform/i86pc/multiboot -x | | module /platform/i86pc/boot_archive | +----------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted. Press 'b' to boot, 'e' to edit the selected command in the boot sequence, 'c' for a command-line, 'o' to open a new line after ('O' for before) the selected line, 'd' to remove the selected line, or escape to go back to the main menu.- |
輸入 b 將節點啟動為非叢集模式。
對核心啟動參數指令所做的這個變更不會在系統啟動後持續。下次您重新啟動節點時,將會啟動至叢集模式。若要轉而啟動為非叢集模式,請再次執行上述步驟以增加 -x 選項到核心啟動參數指令。
從可能的節點取消配置 Sun Cluster 軟體。
phys-schost-new# /usr/cluster/bin/clnode remove |
若要複製執行 Sun Cluster 3.2 2/08 軟體的節點,請建立叢集配置 XML 檔案。
在要複製的叢集節點上成為超級使用者。
將現有節點配置資訊匯出到檔案。
phys-schost# clnode export -o clconfigfile |
指定輸出目的地。
叢集配置 XML 檔案的名稱。指定的檔案名稱可以是現有檔案,或者指令將建立的新檔案。
如需得知更多資訊,請參閱「clnode(1CL) 線上手冊」。
將叢集配置 XML 檔複製到要配置為新叢集節點的可能節點。
在可能的節點上成為超級使用者。
視需要修改叢集配置 XML 檔案。
開啟叢集配置 XML 檔案進行編輯。
若要複製現有叢集節點,請開啟使用 clnode export 指令所建立的檔案。
若不要複製現有叢集節點,請建立新檔案。
以出現在「clconfiguration(5CL) 線上手冊」中元素階層上的檔案為基礎。您可以在任一目錄儲存此檔案。
修改 XML 元素的值以反映您要建立的節點配置。
請參閱「clconfiguration(5CL) 線上手冊」,以取得有關叢集配置 XML 檔案之結構與內容的詳細資訊。
驗證叢集配置 XML 檔案。
phys-schost-new# xmllint --valid --noout clconfigfile |
配置新叢集節點。
phys-schost-new# clnode add -n sponsornode -i clconfigfile |
指定現有的叢集成員名稱以作為新節點的贊助者。
指定叢集配置 XML 檔名稱以當成輸入來源。
(可選擇) 若所有的監視磁碟路徑都故障,請啟用自動節點重新啟動。
配置失敗 - 如果無法將一或多個節點加入叢集,或者指定了錯誤的配置資訊,請先嘗試重新執行此程序。若上述做法無法修正問題,請在每個配置錯誤的節點執行如何取消配置 Sun Cluster 軟體來修正安裝問題的程序來將其從叢集配置中移除。您不需要解除安裝 Sun Cluster 套裝軟體。接著,重新執行此程序。
若要將節點增加至使用法定裝置的叢集,請至如何在將節點增加至叢集後更新法定裝置。
否則,請至如何驗證法定配置與安裝模式。