Sun Cluster 3.0 U1 系統管理手冊

2.1.3 如何重新啟動叢集

請執行 scshutdown(1M) 指令來關閉叢集,接著在每一個節點上使用 boot 指令來啟動叢集。

  1. (可選用)。對於正在執行 Oracle Parallel Server (OPS) 的叢集,請關閉所有 OPS 資料庫實例。

    請參閱 Oracle Parallel Server 產品文件,以取得關機程序。

  2. 成為叢集中任何節點的超級使用者。

  3. 關閉叢集為 OBP。

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


    # scshutdown -g0 -y
    

    這樣會關閉每一個節點使其顯示 ok 提示符號。


    註解 -

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


  4. 啟動每一個節點。

    節點的啟動順序沒有任何影響,除非您在兩次關機之間進行變更。在這種情況時,您必須先啟動最後配置的節點。


    ok boot
    

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

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

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


    # scstat -n
    


    註解 -

    如果叢集節點的 /var 檔案系統已滿,Sun Cluster 可能無法在該節點上啟動。如果發生這個問題,請參閱 "2.3.1 如何修復整個 /var 檔案系統"


2.1.3.1 範例 - 重新啟動叢集

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


# scshutdown -g0 -y
May 2 10:08:46 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 1: attempting to join cluster
...
NOTICE: Node 2 (incarnation # 937690106) has become reachable.
NOTICE: Node 3 (incarnation # 937690290) has become reachable.
NOTICE: cluster has reached quorum.
...
NOTICE: Cluster members:   1  2  3
...
NOTICE: Node 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 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: