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

//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
$mount_host = SetVariable(%mount_host%)6
//7
// Validate that resources are as expected.8
ValidateHost ($mount_host)9
ValidateStorageVolume ($source_storvol_unc1)10
ValidateSnapshotStorageVolume ($source_storvol_unc1)11
//12
$Rep1 = SnapshotStorageVolume ($source_storvol_unc1, FULLY_ALLOCATED, SAME, $dest_storvol1, WAIT)
onerror pauseat E1:
13
//14
// Create disk device(s) on a host.15
CreateDiskDevice ($Rep1, $mount_host, %LUN%, READ_WRITE) onerror pauseat E2:16
//17
// Wait for user to initiate rollback.18
Pause ()19
//20
// Rollback.21
E3: RemoveDiskDevice ($Rep1, $mount_host) onerror pauseat E2:22
//23
E2: DeleteStorageVolume ($Rep1) onerror pauseat E2:24
//25
Exit (SUCCESS)26
//27
// Failure exit - no rollback needed.28
E1: Exit (FAILURE)29
Replicate storage volumes (template)
Template summary
A. Locally replicates (copies) storage volumes.
B. Pauses the job.
C. After continuing, deletes the storage volume copies from the storage system.
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.
82 Jobs