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

Considerations
Tru64 UNIX. When replicating 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 a host volume one time No other template options were
selected.
TaskLine
// Make multiple snapclones of the same Host Volume, and mount to a host.1
// This requires normalization between each snapclone.2
//3
// Assign some variables that will be used in this job.4
$source_hostvol_unc1 = SetVariable(%source_hostvol_unc1%)5
$mount_host1 = SetVariable(%mount_host1%)6
//7
// Validate that resources are as expected.8
ValidateHost ($mount_host1)9
ValidateSnapcloneHostVolume ($source_hostvol_unc1)10
//11
$Rep1 = SnapcloneHostVolume ($source_hostvol_unc1, SAME, WAIT) onerror pauseat E1:12
//13
// Mount the replicated volume(s) on a host.14
PresentStorageVolumes ($Rep1, $mount_host1) onerror pauseat E2:15
DiscoverDiskDevices16
$HV1 = CreateHostVolumeFromDiskDevices ($source_hostvol_unc1, $Rep1, $mount_host1) onerror pauseat E217
$MP1 = MountHostVolume ($HV1, %mount_point1%) onerror pauseat E3:18
//19
// Wait for user to initiate rollback.20
Pause ()21
//22
// Rollback.23
E4: UnmountHostVolume ($MP1) onerror pauseat E4:24
E3: DeleteHostVolume ($HV1) onerror pauseat E3:25
//26
E2: DeleteStorageVolumes ($Rep1) onerror pauseat E2:27
//28
Exit (SUCCESS)29
//30
Job templates 67