beautypg.com

Replicate host volumes, mount to a host (template), Replicate host volumes, mount to a host, Considerations – HP P6000 Continuous Access Software User Manual

Page 209: Example, Template summary

background image

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 replicate one host volume. No other template options were selected.

Task

Line

// Replicate host volume(s).

1

//

2

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

3

$source_hostvol_unc1 = SetVariable(%source_hostvol_unc1%)

4

$source_host = SetVariable(%source_host%)

5

//

6

// Validate that resources are as expected.

7

ValidateHostVolume ($source_hostvol_unc1)

8

ValidateSnapshotHostVolume ($source_hostvol_unc1)

9

//

10

$Rep1 = SnapshotHostVolume ($source_hostvol_unc1, FULLY_ALLOCATED, SAME, WAIT) onerror pauseat E1:

11

//

12

// Wait for user to initiate rollback.

13

Pause ()

14

//

15

// Rollback.

16

E2: DeleteStorageVolumes ($Rep1) onerror pauseat E2:

17

//

18

Exit (SUCCESS)

19

//

20

// Failure exit - no rollback needed.

21

E1: Exit (FAILURE)

22

Replicate host volumes, mount 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 the new host volume on the second enabled host.

D.

Pauses the job.

E.

After continuing, unmounts the new host volume from the second enabled host, unpresents
and deletes the storage volume copies from the storage system.

Job templates 209