Guidelines for Protecting Data using HP StorageWorks Storage Mirroring with Volume Shadow Copy Service (VSS) (T2558-96332, March 2009)
5. The data is applied on the target as it is received. Since the task command was inserted inline,
the replication data from the source is applied to the target first. When the target gets to the
Storage Mirroring task command, the target data will be in the exact same state as the source
data when the source application service was stopped. Since this was a stable point on the
source, it is also a stable point on the target.
6. The target processes the Storage Mirroring task command and completes whatever task is defined.
Since the Storage Mirroring task command is user-defined, you can insert any valid executable
or batch file.
The following batch files outline an example of stopping a Microsoft SQL Server 2000 database,
inserting a task command to initiate VSS snapshot on the target, and then restarting the SQL database.
You can modify the batch files to accommodate your own application(s) and/or snapshot solution(s).
NOTE:
The dosnapshot.bat, task.txt, and snapshotcommand.bat files should be stored on the
source in the Storage Mirroring directory (typically c:\Program Files\DoubleTake). The
snapshotcommand.bat file should also be stored in the Storage Mirroring directory on the target.
The files may be run manually when desired, or they can be scheduled using the Windows Task
Scheduler. See your Microsoft Windows reference guide for more information about scheduling.
Before these batch files can be executed, Storage Mirroring task command processing must be enabled.
1. In the Storage Mirroring Management Console, double-click on the source server to log in.
2. Right-click on the server and choose Properties.
3. Click on the Setup tab. Select Enable Task Command Processing.
4. Repeat steps 1-3 on the target server.
For more information about the DTCL queuetask command that is used, see the HP StorageWorks
Storage Mirroring Users Gui de. For more information about Microsoft commands, see your Microsoft
reference guide.
These sample batch files are available at http://www.hp.com/support
After you modify the sample scripts, save them with a new name to remove the SAMPLE_ prefix. Copy
the scripts to the directory where Storage Mirroring is installed.
The sample batch files provided are only examples. Because no two environments or configurations
are exactly the same, you MUST modify the sample scripts in order to make the solution work in your
environment.
The following are samples of batch files called in this process.
Guidelines for Protecting Data using HP StorageWorks Storage Mirroring with Volume Shadow Copy
Service (VSS) 23