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

Replicate host volume, mount components to a host (template)
Template summary
A. Locally replicates (copies) the storage volumes that underlie a host volume on an enabled host.
B. Presents the underlying storage volume copies to a second enabled host (creates a new host
volume).
C. Mounts a component in the new host volume on the second enabled host.
D. Pauses the job.
E. After continuing, unmounts the component from the second enabled host, unpresents and
deletes the storage volume copies from the storage system.
Template options
Number of components to mount. Adds commands for each component.
Suspend source before replication. Adds launch commands for interacting with an enabled
host, for example to suspend and resume host application I/O.
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 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 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 locally replicate and mount one host volume. No other template
options were selected.
TaskLine
// Replicate a host volume, and mount slices/partitions/LVs to a host.1
//2
// Assign some variables that will be used in this job.3
$mount_host = SetVariable(%mount_host%)4
$source_host = SetVariable(%source_host%)5
$source_hostvol_unc1 = SetVariable(%source_hostvol_unc1%)6
//7
// Validate that resources are as expected.8
ValidateHost ($mount_host)9
ValidateHostVolume ($source_hostvol_unc1)10
ValidateSnapshotHostVolume ($source_hostvol_unc1)11
//12
$Rep1 = SnapshotHostVolume ($source_hostvol_unc1, FULLY_ALLOCATED, SAME, WAIT) onerror pauseat E1:13
//14
80 Jobs