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 11
PreBack.BAT
NOTE: A copy of this sample script (preback.bat.sample) is available in the Samples folder, located
in the directory where Storage Mirroring is installed. After you modify the sample script, copy the script
and save it with a new name to remove the .sample extension.
If you are upgrading from an earlier version of the Exchange Failover utility, you will need to do the
following:
• Compare the sample scripts to your failback and post-restore scripts and incorporate the new
commands (-nopublicfolders, -onlypublicfolders) into your scripts.
Modify the failover and failback scripts to remove the NSISPN commands. This functionality has been
incorporated into the utility and is no longer necessary in the scripts. Leaving the commands in the scripts
will not cause any harm or failure in execution.
4. On the target, open the Failover Control Center. (Start, Programs, Storage Mirroring, Failover Control
Center).
5. Select the target machine from the list of available machines. If the target you need is not displayed,
click Add Target, enter the machine name, and click OK.
6. Click Login to login to the target machine.
7. To add a monitor for the selected target, click Add Monitor. Type the name of the source machine and
click OK. The Monitor Settings window will open.
8. Select the IP address to be monitored by marking the check box to the left of the address in the Names
to Monitor tree.
9. Select IP Address(es) and Server Name under Items to Failover.
10.If you are failing over/back the Active Directory hostname, click Account and specify a username and
password with full domain administrative privileges.
11.Click OK to go back to the Monitor Settings dialog box.
12.Click Scripts and specify the location and file names of the scripts created earlier.
13.Click OK to go back to the Monitor Settings dialog box.
14.Click OK to begin monitoring the source machine.
In the event of a source machine failure, your target machine is now ready to stand in for the source.
rem Sample Exchange 2000/2003 pre-failback script.
rem The following lines stop the Exchange services on the target. You may need to modify
rem the script to fit the Exchange version and specific services used in your environment,
rem although the services must be stopped in the order shown.
net stop MSExchangeSA /y
net stop MSExchangeMGMT
net stop POP3SVC
net stop IMAP4SVC
net stop ResVC
net stop MSExchangeES
net stop W3SVC
net stop SMTPSVC
"c:\program files\OpenView\Storage Mirroring\exchfailover.exe" -failback -nopublicfolders -s source_name
-t target_name