HP P6000 Continuous Access Software User Manual

Page 198

Advertising
background image

ValidateStorageVolume (%site_1_array_source_storvol_unc1%)

32

ValidateStorageVolume (%site_2_array_source_storvol_unc1%)

33

//

34

// The setting of the following 2 steps may be dependent on the configuration

35

// of the DR group. Please consult the documentation for the appropriate setting options.

36

// Set the DR group to synchronous.

37

// [Use 'onerror continue' in case the mode is already set.]

38

SetDrGroupIoMode ($site_1_array_DR_Group_name_unc, SYNCHRONOUS) onerror continue

39

//

40

// Set the DR group to failsafe enabled.

41

// [Use 'onerror continue' in case the mode is already set.]

42

SetDrGroupFailsafe ($site_1_array_DR_Group_name_unc, ENABLED) onerror continue

43

//

44

// If the DR group from Site 1 to Site 2 is not normalized, wait.

45

WaitDrGroupNormalization ($site_1_array_DR_Group_name_unc)

46

//

47

// Create a snapclone at Site 2.

48

$Rep1 = SnapcloneStorageVolume ($source_storvol_unc1, $DiskGroup_name, SAME, $dest_storvol1, WAIT)
onerror pauseat E1:

49

//

50

// Wait for the snapclone(s) to finish.

51

WaitStorageVolumeNormalization ($Rep1) onerror pauseat E2:

52

//

53

// Set the DR group at Site 1 back to failsafe disabled.

54

SetDrGroupFailsafe ($site_1_array_DR_Group_name_unc, DISABLED) onerror continue

55

//

56

// Set the DR group at Site 1 back to asynchronous.

57

SetDrGroupIoMode ($site_1_array_DR_Group_name_unc, ASYNCHRONOUS) onerror continue

58

//

59

// Present the snapclone at Site 2 to a host.

60

// NOTE: This is required only for VCS 3.x. For later versions, you may remove this step.

61

// Typically you will NOT want to present to an Enabled Host Agent, but instead

62

// use the name of a 'dummy' EVA host that you have set up in Command View.

63

PresentStorageVolume ($Rep1, $host_name, %LUN1%, READ_WRITE) onerror pauseat E2:

64

//

65

// Make a DR group with the Site 3 storage system.

66

$DRG1 = CreateDrGroup ($DR_group_name, $DR_source_storvol_unc1, $site_3_array, "", "", SAME, "", "",
0, FALSE) onerror pauseat E3:

67

//

68

198 Jobs

Advertising