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

//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
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 configuration35
// 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 continue39
//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 continue43
//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 continue55
//56
// Set the DR group at Site 1 back to asynchronous.57
SetDrGroupIoMode ($site_1_array_DR_Group_name_unc, ASYNCHRONOUS) onerror continue58
//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 instead62
62 Jobs