HP P6000 Replication Solutions Manager Job Command Reference (T3680-96090, October 2012)

Use snapclone instead of snapshot. Generates a template that uses 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).1
//2
// Assign some variables that will be used in this job.3
$source_storvol_unc1 = SetVariable(%source_storvol_unc1%)4
$dest_storvol1 = SetVariable(%dest_storvol1%)5
//6
// Validate that resources are as expected.7
ValidateStorageVolume ($source_storvol_unc18
ValidateSnapshotStorageVolume ($source_storvol_unc19
//10
$Rep1 = SnapshotStorageVolume ($source_storvol_unc1, FULLY_ALLOCATED, SAME, $dest_storvol1, WAIT)
onerror pauseat E1:
11
//12
// Wait for user to initiate rollback.13
Pause ()14
//15
// Rollback.16
E2: DeleteStorageVolume ($Rep1) onerror pauseat E2:17
//18
Exit (SUCCESS19
//20
// Failure exit - no rollback needed.21
E1: Exit (FAILURE)22
Replicate storage volumes via preallocated replication (template)
Template summary
A. Disables (flushes) the write cache of a storage volume.
B. Prepares the container(s) for storage volume replication.
Job templates 83