執行此作業來變更叢集私用 IP 位址範圍,以支援節點或非全域區域數量的增加,或者私用網路數量的增加,或者兩者混用時數量的增加。您也可以使用此程序來減少私用 IP 位址範圍。
此程序的執行必須先關閉整個叢集。
成為叢集上某個節點的超級使用者。
從節點啟動 clsetup 公用程式。
# clsetup |
螢幕將顯示 clsetup 主功能表。
將每一個資源群組切換為離線。
若節點包含非全域區域,則該區域中的任一資源群組也會被切換為離線。
停用叢集中的所有資源。
結束 clsetup 公用程式。
驗證所有節點上的全部資源都處於 Offline 狀態,以及所有資源群組都處於 Unmanaged 狀態。
# cluster status -t resource,resourcegroup |
限制輸出到指定的叢集物件
指定資源
指定資源群組
在某一個節點上關閉叢集。
# cluster shutdown -g0 -y |
指定等候時間 (以秒為單位)
避免發出要求您確認關閉的提示
啟動每個節點進入非叢集模式。
在 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 」中的「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 選項到核心啟動參數指令。
從一個節點啟動 clsetup 公用程式。
在非叢集模式中執行時,clsetup 公用程式會顯示非叢集模式作業的「主功能表」。
鍵入與「變更 IP 位址範圍」選項對應的數字,然後按下換行鍵。
clsetup 公用程式會顯示目前的私有網路配置,接著詢問您是否要變更此配置。
若要變更私有網路 IP 位址或 IP 位址範圍,請鍵入 yes 再按下換行鍵。
clsetup 公用程式會顯示預設的私有網路 IP 位址 (172.16.0.0),並且詢問是否可接受此預設值。
變更或接受私有網路 IP 位址。
變更或接受預設的私有網路 IP 位址範圍。
預設的網路遮罩為 255.255.248.0。此預設 IP 位址範圍在叢集中最多支援 64 個節點及 10 個私有網路。
鍵入 yes 回應 clsetup 公用程式關於進行更新的問題。
完成後,退出 clsetup 公用程式。
重新啟動每個節點,讓它們回到叢集中。
關閉每個節點。
# shutdown -g0 -y |
啟動每個節點進入叢集模式。
在基於 SPARC 的系統上,執行下列動作︰
ok boot |
在基於 x86 的系統上,執行下列動作︰
當螢幕顯示 GRUB 功能表時,請選取合適的 Solaris 項目然後按下 Enter。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)」。
從一個節點啟動 clsetup 公用程式。
# clsetup |
螢幕將顯示 clsetup 主功能表。
重新啟用所有停用的資源。
使每個資源群組返回線上狀態。
若節點包含非全域區域,也會讓該區域中的所有資源群組成為線上狀態。
當所有資源群組返回線上狀態後,請結束 clsetup 公用程式。
輸入 q 退出每一個子功能表,或按 Ctrl-C。
若要增加節點到現有叢集,請至以下其中一個程序:
若要在叢集節點建立非全域區域,請至在叢集節點配置非全域區域。