Start
This method starts or reconfigures the given recovery plan, or tests and cleans it up, depending on the mode specified. This operation requires one of these privileges depending on recovery mode, VcDr.RecoveryProfile.com.vmware.vcDr.Failover for a real recovery and VcDr.RecoveryProfile.com.vmware.vcDr.Run for a test recovery.
Synopsis
void start(RecoveryPlan.RecoveryMode mode, @version5 @optional RecoveryOptions options)
- mode – one of the
following recovery modes:
- test – run a test failover to the peer (recovery) site, without halting the local (protected) site.
- cleanupTest – after testing a recovery plan, cleans up all effects of the test operation.
- failover – move to the peer (recovery) site. When all groups are moved the recovery plan is complete.
- reprotect – the peer site becomes the protected site, and the local site becomes the recovery site.
- options specifies the recovery options. The RecoveryOptions.syncData is a boolean parameter and indicates whether to replicate the recent changes to the recovery site.
Faults
- InvalidState, if the recovery plan is not in the ready state.
- IvalidArgument, if the recovery mode is not valid.
- RuntimeFault
Example for Start
void _service.Start(_srm.plan, mode);