HP P6000 Replication Solutions Manager Job Command Reference (T3680-96090, October 2012)

// 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
// Check the state of the DR group before we continue.69
WaitDrGroupNormalization ($DRG1)70
//71
// Delete the DR group from Site 2 to Site 3, but keep the copy at Site 3.72
// Keep trying until the destination is finished allocating.73
// The time required depends on virtual disk size, workload, etc.74
ddgwt: Wait ("0:0:3"75
DeleteDrGroup ($DR_group_name, DETACH) onerror goto ddgwt:76
//77
// Delete the presentation.78
// This is required only for VCS 3.x. For later versions, you may remove this step.79
E3: UnpresentStorageVolume ($Rep1, $host_name) onerror pauseat E3:80
//81
// Delete the snapclone(s) at Site 2 that the DR group was using.82
E2: DeleteStorageVolume ($Rep1) onerror pauseat E2:83
//84
Exit (SUCCESS)85
//86
// Failure exit - no rollback needed.87
E1: Exit (FAILURE)88
Perform planned failover (template)
Template summary
Performs a failover of two sites in the case where the source site resources and link remain available.
The DR group pair contains one storage volume (virtual disk) at the source and destination sites.
A. Stops an application on the enabled host at site 1 (if necessary).
B. Unmounts the host volume on the enabled host at site 1.
C. Performs a failover from site 1 to site 2.
D. Discovers the host volume at site 2
E. Mounts host volume on the enabled host at site 2.
F. Starts applications on enabled host at site 2.
Job templates 63