Comments, Example – HP P6000 Continuous Access Software User Manual

Page 197

Advertising
background image

Comments

•

Guidelines apply.

Example

This template was generated to perform one iteration of the cascaded replication involving one
virtual disk. No other template options were selected.

Task

Line

// Perform cascaded replication.

1

//

2

// This template assumes that you have three storage systems located at three different sites:

3

// Site 1: Contains a source DR group.

4

// Site 2: Contains a destination DR group.

5

// Site 3: After the script completes, it will contain a snapclone of the virtual disk.

6

//

7

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

8

$site_1_array = SetVariable(%site_1_array%)

9

$site_1_array_DR_Group_name_unc = SetVariable(%site_1_array_DR_Group_name_unc%)

10

$source_storvol_unc1 = SetVariable(%source_storvol_unc1%)

11

$dest_storvol1 = SetVariable(%dest_storvol1%)

12

$DiskGroup_name = SetVariable(%DiskGroup_name%)

13

$site_2_array = SetVariable(%site_2_array%)

14

$host_name = SetVariable(%host_name%

15

$site_3_array = SetVariable(%site_3_array%)

16

$DR_group_name = SetVariable(%DR_group_name%)

17

$DR_source_storvol_unc1 = SetVariable(%DR_source_storvol_unc1%)

18

//

19

// Validate some resources needed by this job:

20

// - The arrays at Sites 1, 2 and 3.

21

// - The source DR group at Site 1 and it's virtual disk member(s).

22

// - The storage system at Site 2 with the destination DR group and it's virtual disk member(s).

23

// - The host name at Site 2.

24

// - The source host used for suspend/resume application at Site 1 (if applicable).

25

//

26

// Validate that resources are as expected.

27

ValidateHost ($host_name)

28

ValidateStorageSystem ($site_1_array)

29

ValidateStorageSystem ($site_2_array)

30

ValidateStorageSystem ($site_3_array)

31

Job templates

197

Advertising