Sun Java System Messaging Server 6 2005Q4 管理指南

啟動和停止 HA 環境中的服務

Messaging Server 在 HA 控制下執行時,無法使用一般的 Messaging Server 啟動、重新啟動和停止指令來控制個別 Messaging Server 服務。如果在 HA 部署中嘗試使用 stop-msg,系統會警告您偵測到 HA 設定,並告訴您如何正確停止系統。

下表顯示了正確的啟動、停止和重新啟動指令。請注意,沒有特定的 HA 指令來單獨啟動、重新啟動或停止其他 Messaging Server 服務 (例如 SMTP)。但是,您可以執行 stop-msg service 指令來停止/重新啟動個別伺服器 (例如 imappopsched)。

Sun Cluster 的最小處理單位就是單個資源。由於 Sun Cluster 將 Messaging Server 視為一個資源,因此 scswitch 指令會總體影響所有的 Messaging Server 服務。

表 4–2 在 Sun Cluster 3.0/3.1 環境中啟動、停止和重新啟動

動作 

單個資源 

全部資源群組 

啟動 

scswitch -e -j resource

sscswitch -Z -g resource_group

重新啟動 


scswitch -n -j resource
scswitch -e -j resource

scswitch -R -g resource_group

停止 

scswitch -n -j resource

scswitch -F -gresource_group

表 4–3 在 Veritas 1.3、2.0、2.1 和 3.5 環境中啟動、停止和重新啟動

動作 

單個資源 

全部資源群組 

啟動 

hares -online resource -sys system

hagrp -online group -sys system

重新啟動 


hares -offline resource -sys  system
hares -online resource -sys  system

hagrp -offline group -sys system
hagrp -online group -sys system

停止 

hares -offline resource -sys system

hagrp -offline group -sys system