HP P6000 Replication Solutions Manager User Guide (T3680-96089, October 2012)

Launch backup after replication. Adds a launch command for interacting with an enabled
host, for example, to start a tape backup.
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.
Comments
This template cannot be used with some older versions of controller software.
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 one host volume. No other template options were selected.
TaskLine
// Replicate host volume(s) via pre-allocated replication, and mount to a host.1
//2
// Assign some variables that will be used in this job.3
$source_hostvol_unc1 = SetVariable(%source_hostvol_unc1%)4
$source_host = SetVariable(%source_host%5
$mount_host = SetVariable(%mount_host%)6
//7
// Validate that resources are as expected.8
ValidateHost ($source_host)9
ValidateHost ($mount_host)10
ValidateHostVolume ($source_hostvol_unc111
//12
// Begin flushing the cache on the host volume(s).13
SetHostVolumeWriteCacheMode ($source_hostvol_unc1, WRITE_CACHE_DISABLED, NOWAIT) onerror pauseat
E1:
14
//15
// Wait for the cache flush to complete.16
WaitForHostVolumeWriteCacheFlush ($source_hostvol_unc1) onerror pauseat E1:17
//18
#Prepare the container(s) for host volume replication19
PrepareContainerForHostDiskDeviceReplication ( %hostvol_unc_name%, %managed_set_of_containers%,
%copytype% ) onerror continue
20
DO {21
$Rep1 = SnapshotHostVolumeToContainersInManagedSet ($source_hostvol_unc1, %dest_container_set1%,
FULLY_ALLOCATED, NOWAIT) onerror pauseat E1:
22
//23
214 Jobs