HP OpenView Storage Mirroring High Availability for Exchange Server 2000/2003 Application Notes (May 2005, T2558-88020)

Storage Mirroring High availability for Exchange Server 2000/2003 application notes 9
NOTE: If you start Exchange Server and mount the replicated databases on the target, or if the data on
the target is otherwise modified, the data on the source and target will no longer match. If the updated
data on the target is not needed, perform a full or difference with block checksum mirror from the source to
the target. If the updated data on the target is needed, restore the data from the target to the source.
Configuring failure monitoring
You will be establishing high availability by configuring Storage Mirroring failure monitoring. In the event
of a failure, the target can stand in for the source with minimal disruption to end users.
1. If a failure occurs, you will want to have the Exchange services start on the target machine
automatically. To do this, create a batch file on the target called
postover.bat using the sample
batch file below. Save the batch file to the same directory where your Storage Mirroring files are
installed.
PostOver.BAT
rem Sample Exchange 2000/2003 post-failover script.
rem The following line pauses Storage Mirroring processing until the Storage Mirroring queue on the
target
rem has been flushed. The time specified, in seconds, is a wait time that starts when the target
rem queue becomes idle. If the wait time elapses, with no further activity in the queue, processing
rem will continue. You will need to subsititute your target for target_name in the command.
"c:\program files\OpenView\Storage Mirroring\dtcl.exe" waitontarget target_name 10
rem The following line sets a flag so that the database can be overwritten. You will need to
rem replace source_name with the name of your source and target_name with the name of your target.
"c:\program files\OpenView\Storage Mirroring\exchfailover.exe" -setup -failover -s source_name -t
target_name
rem The following lines start the Exchange services on the target. You may need to modify the
rem script to fit the Exchange version and specific services used in your environment. If the service
rem is running on the source, then you’ll need to start it in this batch file. If the service is not
rem running on the source, because it is disabled (like POP3Svc and IMAP4Svc are disabled by default
rem in Exchange 2003), then you do not want to start the service in the batch file. If you modify the
rem batch file to fit your environment, the services must still be started in the order shown. Just
rem remark out the services that are not applicable to your environment. Because the Exchange
rem services may return that they have started when in fact they have not, the DTCL wait command
rem pauses processing to allow Exchange to complete its startup ensuring dependent services
rem will not fail. The amount of time to set the wait command will vary from server to server.
rem This sample script includes a 20 second interval but it may need to be adjusted to fit
rem your environment. See the Storage Mirroring User’s Guide for details on the wait command and
running
rem DTCL from a command line. If desired, you can substitute the Microsoft sleep utility for the
rem DTCL wait command. The sleep utility can be found in the Windows 200x resource kit.
net start MSExchangeSA
"c:\program files\OpenView\Storage Mirroring\dtcl.exe" wait 20000
net start MSExchangeIS
"c:\program files\OpenView\Storage Mirroring\dtcl.exe" wait 20000
net start MSExchangeMTA
"c:\program files\OpenView\Storage Mirroring\dtcl.exe" wait 20000
net start POP3Svc
net start IMAP4Svc
net start MSExchangeMGMT
net start RESvc
net start MSExchangeES
net start W3SVC
net start SMTPSVC
rem The following line points the mailboxes in active directory to the target server. You will need to
rem replace source_name with the name of your source and target_name with the name of your target.
"c:\program files\OpenView\Storage Mirroring\exchfailover.exe" -failover -s source_name -t target_name