Mount existing storage volumes (template), Mount existing storage volumes, Template summary – HP P6000 Continuous Access Software User Manual
Page 195: Template options, Comments, Example
Mount existing storage volumes (template)
Template summary
A.
Creates a host volume by presenting an existing* storage volume to an enabled host.
B.
Mounts the host volume.
C.
Pauses the job until continued by a user.
D.
After continuing, unmounts and deletes the host volume.
* A storage volume that is created by means other than this job. The volume must exist and be in
the replication manager database when this job is run.
Template options
•
Number of volumes to replicate. Adds commands for each volume.
•
Launch backup after replication. Adds a launch command for interacting with an enabled
host, for example, to start a tape backup.
•
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 HP-UX host volumes.
•
When used with Tru64 UNIX hosts, this template supports only UFS file systems.
Example
This template was generated to mount one existing storage volume on a host. No other template
options were selected.
Task
Line
// Mount existing storage volume(s).
1
//
2
// Assign some variables that will be used in this job.
3
$storvol_unc1 = SetVariable(%storvol_unc1%)
4
$mount_host = SetVariable(%mount_host%)
5
//
6
// Validate that resources are as expected.
7
ValidateHost ($mount_host)
8
ValidateStorageVolume ($storvol_unc1)
9
//
10
// Mount the volume(s) on a host.
11
$HV1 = CreateHostVolumeDiscrete (%component%, $storvol_unc1, $mount_host) onerror pauseat E1:
12
$MP1 = MountHostVolume ($HV1, %mount_point1%) onerror pauseat E2:
13
//
14
// Wait for user to initiate rollback.
15
Pause ()
16
Job templates 195