Template summary, Template options, Example – HP P6000 Continuous Access Software User Manual
Page 217

//
23
// Rollback.
24
E4: UnmountHostVolume ($MP1) onerror pauseat E4:
25
E3: DeleteHostVolume ($HV1) onerror pauseat E3:
26
//
27
E2: DeleteStorageVolumes ($Rep1) onerror pauseat E2:
28
//
29
Exit (SUCCESS)
30
//
31
// Failure exit - no rollback needed.
32
E1: Exit (FAILURE)
33
Replicate raw storage volumes mount (raw) to a host (template)
Template summary
A.
Locally replicates (copies) raw storage volumes.
B.
Presents the storage volume copies to an enabled host (creates a raw host volume).
C.
Pauses the job.
D.
After continuing, removes the raw host volume from the enabled host.
E.
Unpresents and deletes the storage volume copy from the storage system.
Template options
•
Number of volumes to replicate. Adds commands for each volume.
•
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
.
Example
This template was generated to locally replicate one storage volume. No other template options
were selected.
Task
Line
// Replicate raw storage volume(s), and mount to a host.
1
//
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
Job templates
217