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

C. Locally replicates (copies) the storage volume to a container.
D. Re-enables the write cache of the storage volume.
NOTE: This template cannot be used with some older versions of controller software. For
information on controller version feature support, see the HP P6000 Enterprise Virtual Array
Compatibility Reference.
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
84 Jobs