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 的最佳粒度是单个资源。由于 Messaging Server 对于 Sun Cluster 来说是一种资源,因此 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 -g resource_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