Replicate host disk devices, mount to a host, Template summary, Template options – HP P6000 Continuous Access Software User Manual

Page 204: Example

Advertising
background image

// Failure exit - no rollback needed.

31

E1: Exit (FAILURE)

32

Replicate host disk devices, mount to a host (template)

Template summary

A.

Locally replicates (copies) the storage volumes that underlie a raw host volume on an enabled
host.

B.

Presents the underlying storage volume copies to a second enabled host (creates a new raw
host volume).

C.

Pauses the job.

D.

After continuing, removes the raw host volume from the second enabled host.

E.

Unpresents and deletes the storage volume copies from the storage system

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 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 replicate one raw host volume and duplicate it on another enabled
host. No other template options were selected.

Task

Line

// Replicate host disk device(s), and mount to a host.

1

//

2

// Assign some variables that will be used in this job.

3

$source_host = SetVariable(%source_host%)

4

$source_disk_device_unc1 = SetVariable(%source_disk_device_unc1%)

5

$dest_storvol1 = SetVariable(%dest_storvol1%)

6

$mount_host = SetVariable(%mount_host%)

7

//

8

// Validate that resources are as expected.

9

ValidateHost ($source_host)

10

ValidateHost ($mount_host)

11

//

12

$Rep1 = SnapshotDiskDevice ($source_disk_device_unc1, FULLY_ALLOCATED, SAME, $dest_storvol1, WAIT)
onerror pauseat E1:

13

//

14

// Create disk device(s) on a host.

15

CreateDiskDevice ($Rep1, $mount_host, %LUN%, READ_WRITE) onerror pauseat E2:

16

204 Jobs

Advertising