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

20
5. Restart any Outlook clients so that they can access the source.
To reestablish protection of the Exchange data on the source, create a replication set, reestablish the
Storage Mirroring connection to the target, and begin failure monitoring as documented earlier in the
procedure.
Sample Batch File to Automate Steps After Restore
rem Sample batch file to automate steps after restore.
rem The user executing this batch file must have System permissions.
rem The following line sets a flag so that the database can be overwritten. This step is actually
rem repetitive of previous manual steps, because testing has found the database overwrite flag to
rem often be inconsistent. You will need to replace source_name with the name of your source and
rem target_name with the name of your target.
"c:\program files\OpenView\Storage Mirroring\exchfailover.exe" -setup -failback -s source_name -t
target_name
rem The following lines start the Exchange services on the source. 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
"c:\program files\OpenView\Storage Mirroring\dtcl.exe" wait 20000
rem The following line points the mailboxes in active directory to the source 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
"
-failback -onlypublicfolders -s source_name
-t target_name