HP P6000 Replication Solutions Manager User Guide (T3680-96089, October 2012)
Template options
• Number of volumes to replicate. Adds commands for each volume.
• Suspend source before replication. Adds launch commands for interacting with an enabled
host. For example, to suspend and resume host application I/O.
• Use snapclone instead of snapshot. Generates a template that uses preallocated snapclone
replication.
• Include e-mail notification. Adds a command for e-mail notification of the job instance status.
See SetNotificationPolicy.
Considerations
• Tru64 UNIX. When replicating virtual disks with AdvFS volumes that have heavy I/O, select
the option Suspend source before replication. See Suspending I/O before replicating AdvFS
volumes.
Example
This template was generated to replicate one storage volume. No other template options were
selected.
TaskLine
// Replicate storage volume(s) via pre-allocated replication.1
//2
// Assign some variables that will be used in this job.3
$source_storvol_list = SetListVariable(%source_storvol_list%)4
$dest_container_list = SetListVariable(%dest_container_list%)5
//6
// Validate that resources are as expected.7
ValidateStorageVolumes ($source_storvol_list)8
//9
// Begin flushing the cache on the storage volume(s).10
SetStorageVolumesWriteCacheMode ($source_storvol_list, WRITE_CACHE_DISABLED, NOWAIT) onerror pauseat
E1:
11
//12
// Wait for the cache flush to complete.13
WaitForStorageVolumesWriteCacheFlush ($source_storvol_list) onerror pauseat E1:14
//15
#Prepare the containers(s) for storage volume replication16
PrepareContainers ( $source_storvol_list, $dest_container_list, FULLY_ALLOCATED ) onerror continue17
DO {18
$Rep1 = SnapshotStorageVolumesToContainers ($source_storvol_list, $dest_container_list, FULLY_ALLOCATED,
NOWAIT) onerror pauseat E2:
19
//20
} ALWAYS {21
// Restore the writeback cache on the storage volume(s).22
220 Jobs