HP P6000 Replication Solutions Manager Administrator Guide (T3680-96069, June 2012)

ValidateSnapshotHostVolume ( $source_hostvol_unc3 )
ValidateSnapshotHostVolume ( $source_hostvol_unc2 )
ValidateSnapshotHostVolume ( $source_hostvol_unc1 )
//
// Suspend the host application.
Launch ( "15.146.153.141", "suspend_oracle_database.bat", "", WAIT, "0" ) onerror
pauseat E1:
DO {
$Rep1 = SnapshotHostVolume ( $source_hostvol_unc1, FULLY_ALLOCATED, SAME, NOWAIT )
onerror pauseat E1:
$Rep2 = SnapshotHostVolume ( $source_hostvol_unc2, FULLY_ALLOCATED, SAME, NOWAIT )
onerror pauseat E2:
$Rep3 = SnapshotHostVolume ( $source_hostvol_unc3, FULLY_ALLOCATED, SAME, NOWAIT )
onerror pauseat E3:
//
} ALWAYS {
// Resume the host application.
Launch ( "15.146.153.141", "resume_oracle_database.bat", "", WAIT, "0" )
}
//
// Wait for replicated storage to appear.
WaitForStorageVolumesDiscovery ( $Rep1 ) onerror pauseat E4:
WaitForStorageVolumesDiscovery ( $Rep2 ) onerror pauseat E4:
WaitForStorageVolumesDiscovery ( $Rep3 ) onerror pauseat E4:
// Wait for user to initiate rollback.
Pause ( )
//
// Rollback.
E4: DeleteStorageVolumes ( $Rep3 ) onerror pauseat E4:
E3: DeleteStorageVolumes ( $Rep2 ) onerror pauseat E3:
E2: DeleteStorageVolumes ( $Rep1 ) onerror pauseat E2:
//
Exit ( SUCCESS )
//
// Failure exit - no rollback needed.
E1: Exit ( FAILURE )
64 Using the replication manager with Oracle tools