Sun Cluster 系統管理指南(適用於 Solaris 作業系統)

Procedure如何重新啟動叢集節點

如果您計劃關閉或重新啟動叢集中其他的作用中節點,請至少等待至您正重新啟動的節點已達到下列狀況:

否則,該節點將不能用於接管來自您關閉或重新啟動的叢集中其他節點的服務。如需關於重新啟動非全域區域的資訊,請參閱「System Administration Guide: Solaris Containers-Resource Management and Solaris Zones」中的第 20 章「Installing, Booting, Halting, Uninstalling, and Cloning Non-Global Zones (Tasks)」

此程序提供長形式的 Sun Cluster 指令。大多數指令還有簡短的形式。除了指令名稱有長形式和短形式之分外,指令本身是相同的。如需指令及其短形式的清單,請參閱附錄 ASun Cluster 以物件為導向的指令

  1. SPARC:如果叢集節點正在執行 Oracle Parallel Server 或 Oracle RAC,請關閉所有資料庫實例。

    請參閱 Oracle Parallel Server 或 Oracle RAC 產品說明文件,以取得關機程序的說明。

  2. 成為超級使用者或成為在要關閉的叢集節點上提供 solaris.cluster.admin RBAC 授權的角色。

  3. 使用 clnode evacuate shutdown 指令關閉叢集節點。

    在要關閉的節點上輸入下列指令。clnode evacuate 指令會將所有裝置群組從特定節點切換至下一個喜好的節點。指定也會將所有資源群組從特定節點上的全域或非全域區域切換至其他節點上的下一個喜好全域或非全域區域。

    • 在 SPARC 架構的系統上,執行下列指令:


      # clnode evacuate  node
      # shutdown -g0 -y -i6
      
    • 在基於 x86 的系統上,執行下列動作︰


      # clnode evacuate  node
      

      當螢幕顯示 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.

    備註 –

    叢集節點和叢集互連之間必須有運轉中的連線,才能夠成為叢集成員。


  4. 確認節點啟動成功而且是在線上狀態。


    # cluster status -t node
    

範例 3–8 SPARC: 重新啟動叢集節點

當重新啟動 phys-schost-1 時,下列範例會顯示主控台輸出。這個節點的訊息,例如關機和啟動通知,會顯示在叢集中其他節點的主控台上。


# clnode evacuate phys-schost-1
# shutdown -g0 -y -i6
Shutdown started.    Wed Mar 10 13:47:32 phys-schost-1 cl_runtime: 

WARNING: CMM monitoring disabled.
phys-schost-1# 
INIT: New run level: 6
The system is coming down.  Please wait.
System services are now being stopped.
Notice: rgmd is being stopped.
Notice: rpc.pmfd is being stopped.
Notice: rpc.fed is being stopped.
umount: /global/.devices/node@1 busy
umount: /global/phys-schost-1 busy
The system is down.
syncing file systems... done
rebooting...
Resetting ... 
,,,
Sun Ultra 1 SBus (UltraSPARC 143MHz), No Keyboard
OpenBoot 3.11, 128 MB memory installed, Serial #5932401.
Ethernet address 8:8:20:99:ab:77, Host ID: 8899ab77.
...
Rebooting with command: boot
...
Hostname: phys-schost-1
Booting as part of a cluster
...
NOTICE: Node phys-schost-1: attempting to join cluster
...
NOTICE: Node phys-schost-1: joined cluster
...
The system is coming up.  Please wait.
The system is ready.
phys-schost-1 console login: 


範例 3–9 x86: 重新啟動叢集節點

以下範例顯示重新啟動節點 phys-schost-1 時的主控台輸出。這個節點的訊息,例如關機和啟動通知,會顯示在叢集中其他節點的主控台上。


# clnode evacuate phys-schost-1
ok boot
Rebooting with command: boot 
...
Hostname: phys-schost-1
Booting as part of a cluster
...
NOTICE: Node phys-schost-1: attempting to join cluster
...
NOTICE: Node phys-schost-1: joined cluster
...
The system is coming up.  Please wait.
checking ufs filesystems
...
reservation program successfully exiting
Print services started.
volume management starting.
The system is ready.
phys-schost-1 console login: