beautypg.com

Comments, Example – HP P6000 Continuous Access Software User Manual

Page 206

background image

Comments

Tru64 UNIX. Replication is not supported when an AdvFS domain spans partitions.

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 locally replicate one host volume group and mount one of its
components (logical volume). No other template options were selected.

Task

Line

// Replicate a host volume group, and mount component(s) to a host.

1

//

2

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

3

$source_VolumeGroup_unc1 = SetVariable(%source_VolumeGroup_unc1%

4

$source_host = SetVariable(%source_host%)

5

$mount_host = SetVariable(%mount_host%

6

$source_VG_component_unc1 = SetVariable(%source_VG_component_unc1%

7

//

8

// Validate that resources are as expected.

9

ValidateHost ($source_host)

10

ValidateHost ($mount_host)

11

ValidateSnapshotHostVolumeGroup ($source_VolumeGroup_unc1)

12

//

13

$Rep1 = SnapshotHostVolumeGroup ($source_VolumeGroup_unc1, FULLY_ALLOCATED, SAME, WAIT) onerror
pauseat E1:

14

//

15

// Mount the replicated volume(s) on a host.

16

$HV1 = CreateHostVolumeGroup ($source_VolumeGroup_unc1, $Rep1, $mount_host) onerror pauseat E2:

17

$MP1 = MountVolumeGroupComponent ($HV1, $source_VolumeGroup_unc1, $source_VG_component_unc1,
%mount_point1%) onerror pauseat E3:

18

//

19

// Wait for user to initiate rollback.

20

Pause ()

21

//

22

// Rollback.

23

E4: UnmountHostVolume ($MP1) onerror pauseat E4:

24

E3: DeleteHostVolumeGroup ($HV1) onerror pauseat E3:

25

//

26

E2: DeleteStorageVolumes ($Rep1) onerror pauseat E2

27

//

28

Exit (SUCCESS)

29

206 Jobs