此程序提供長形式的 Sun Cluster 指令。大多指令也有短的形式。除了指令名稱有長形式和短形式之分外,指令本身是相同的。如需指令及其短形式的清單,請參閱附錄 ASun Cluster 以物件為導向的指令。
請確定您已正確完成移除叢集節點中「移除叢集節點」作業對應表中所列出的所有必要作業。
確認您已將節點從所有資源群組、裝置群組及法定裝置配置移除,並在繼續此程序前將它置於維護狀態。
在您想移除的節點上,成為超級使用者,或成為提供 solaris.cluster.modify RBAC 授權的角色。
將您想移除的節點啟動為非叢集節點。
在 SPARC 架構的系統上,執行下列指令:
ok boot -x |
在 x86 架構的系統上,執行下列指令:
phys-schost# shutdown -g -y -i0 Press any key to continue |
在 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 」中的「System Administration Guide: Basic Administration」中的第 11 章「GRUB Based Booting (Tasks)」。
在啟動參數畫面中,使用方向鍵選取核心項目並鍵入 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 選項增加至核心啟動參數指令。
從叢集移除節點。
# clnode remove 節點名稱 |
從另一個叢集節點,使用 scstat(1M) 驗證節點移除。
# clnode status 節點名稱 |
如果您要從已移除的節點解除安裝 Sun Cluster 軟體,請參考如何從叢集節點移除 Sun Cluster 軟體。如果您不要從移除節點解除安裝 Sun Cluster 軟體,您可以如「Sun Cluster 3.1 - 3.2 Hardware Administration Manual for Solaris OS」所述,透過移除硬體連接從叢集實體移除節點。
這個範例顯示如何從叢集移除節點 (phys-schost-2)。clnode remove 指令是從您想從叢集 ( phys-schost-1) 移除的節點處執行。
[從叢集中移除節點:] phys-schost-1# clnode remove phys-schost-2 [驗證節點移除:] phys-schost-1# clnode status phys-schost-2 -- Cluster Nodes -- Node name Status --------- ------ Cluster node: phys-schost-1 Online |
若要從已移除的節點解除安裝 Sun Cluster 軟體,請參閱如何從叢集節點移除 Sun Cluster 軟體。
如需硬體程序,請參閱「Sun Cluster 3.1 - 3.2 Hardware Administration Manual for Solaris OS 」。
如需有關移除叢集節點作業的完整清單,請參閱表 8–3。
若要將節點增加至現有叢集,請參閱如何新增節點至已授權的節點清單。