beautypg.com

Considerations, Example, Template summary – HP P6000 Continuous Access Software User Manual

Page 219

background image

Considerations

Tru64 UNIX. When replicating virtual disks with 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 storage volume. No other template options were
selected.

Task

Line

// Replicate storage volume(s).

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

//

6

// Validate that resources are as expected.

7

ValidateStorageVolume ($source_storvol_unc1

8

ValidateSnapshotStorageVolume ($source_storvol_unc1

9

//

10

$Rep1 = SnapshotStorageVolume ($source_storvol_unc1, FULLY_ALLOCATED, SAME, $dest_storvol1, WAIT)
onerror pauseat E1:

11

//

12

// Wait for user to initiate rollback.

13

Pause ()

14

//

15

// Rollback.

16

E2: DeleteStorageVolume ($Rep1) onerror pauseat E2:

17

//

18

Exit (SUCCESS

19

//

20

// Failure exit - no rollback needed.

21

E1: Exit (FAILURE)

22

Replicate storage volumes via preallocated replication (template)

Template summary

A.

Disables (flushes) the write cache of a storage volume.

B.

Prepares the container(s) for storage volume replication.

C.

Locally replicates (copies) the storage volume to a container.

D.

Re-enables the write cache of the storage volume.

NOTE:

This template cannot be used with some older versions of controller software.

Job templates

219