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

Procedure如何重新啟動叢集

執行 cluster(1CL) shutdown 指令來關閉叢集,接著在各個節點上使用 boot(1M) 指令啟動叢集。

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

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

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

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

  3. 關閉叢集。

    從叢集中的單一節點,輸入下列指令。


    # cluster shutdown -g0 -y 
    

    會關閉每一個節點。


    備註 –

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


  4. 啟動每一個節點。

    節點的啟動順序沒有任何影響,除非您在兩次關機之間進行配置變更。如果您在關機期間變更任何配置,請先以最近的配置啟動節點。

    • 在基於 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)」

    當叢集元件啟動時,訊息會出現在啟動節點的主控台上。

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

    scstat 指令可報告節點的狀態。


    # cluster status -t node
    

    備註 –

    如果叢集節點的 /var 檔案系統已滿,Sun Cluster 可能無法在該節點上重新啟動。如果出現此問題,請參閱如何修復整個 /var 檔案系統



範例 3–4 SPARC: 重新啟動叢集

下列的範例顯示當停止正常的叢集作業,將所有節點關閉至 ok 提示符號,並重新啟動叢集時主控台的輸出。-g 0 選項可將寬限期設成零,-y 提供自動的 yes 回應,以確認問題。關機訊息還會出現在叢集中其他節點的主控台上。


# cluster shutdown -g0 -y
Wed Mar 10 13:47:32 phys-schost-1 cl_runtime: 
WARNING: CMM monitoring disabled.
phys-schost-1# 
INIT: New run level: 0
The system is coming down.  Please wait.
...
The system is down.
syncing file systems... done
Program terminated
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-2 (incarnation # 937690106) has become reachable.
NOTICE: Node phys-schost-3 (incarnation # 937690290) has become reachable.
NOTICE: cluster has reached quorum.
...
NOTICE: Cluster members: phys-schost-1 phys-schost-2 phys-schost-3.
...
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:
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: