Sun Java System Messaging Server 6.3 Administration Guide

4.4.1 To Start and Stop Services in an HA Environment

While Messaging Server is running under HA control, you cannot use the normal Messaging Server start, restart, and stop commands to control individual Messaging Server services. If you attempt a stop-msg in an HA deployment, the system warns that it has detected an HA setup and will tell you how to properly stop the system.

The appropriate start, stop and restart commands are shown in the tables below. Note that there are no specific HA commands to individually start, restart, or stop other Messaging Server services (for example, SMTP). However, you can run a stop-msg service command to stop/restart individual servers such as imap, pop or sched.

Sun Cluster’s finest granularity is that of an individual resource. Since Messaging Server is known to Sun Cluster as a resource, scswitch commands affect all Messaging Server services as a whole.

Table 4–2 Start, Stop, Restart in a Sun Cluster 3.0/3.1 Environment

Action  

Individual Resource  

Entire Resource Group  

Start 

scswitch -e -j resource

sscswitch -Z -g resource_group

Restart 


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

scswitch -R -g resource_group

Stop 

scswitch -n -j resource

scswitch -F -g resource_group

Table 4–3 Start, Stop, Restart in Veritas 3.5, 4.0, 4.1 and 5.0 Environments

Action  

Individual Resource  

Entire Resource Group  

Start 

hares -online resource -sys system

hagrp -online group -sys system

Restart 


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

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

Stop 

hares -offline resource -sys system

hagrp -offline group -sys system