If the protected source site is unavailable, in the destination site for an already created replication perform a disaster recovery operation and recover the workload.
Prerequisites
- Verify that in VMware Cloud Director, the VM discovery option is not activated. For information about deactivating virtual machine discovery, see Discovering and Adopting vApps in the VMware Cloud Director documentation.
- Verify that the workload is already protected in the destination site. For more information, see Create a protection.
- Verify that you can access VMware Cloud Director Availability as a tenant or as a provider. For more information, see Accessing VMware Cloud Director Availability.
- Verify that VMware Cloud Director Availability 4.7 or later is deployed in both the source and in the destination sites for activating Change storage placement. Also, to change the storage placement after the failover operation completes, depending on whether the virtual machines are configured to power-on in the destination site:
-
- Powered-on migrated virtual machines
- Verify that both vMotion and Storage vMotion are setup. For more information, see Migration with vMotion and Migration with Storage vMotion in the vSphere documentation.
- Verify that for Cloud Director sites, VMware Cloud Director Availability 4.7 or later is deployed in both the source and in the destination sites for:
- Activating Copy security tags when such apply on the source virtual machine. For information about the tags, see Tags in the NSX documentation and View the Security Tags in Your Organization in the VMware Cloud Director Tenant Portal in the VMware Cloud Director documentation.
- Pre-selecting the VDC policies when such already apply on the source virtual machine.
Procedure
- In the left pane, choose a replication direction by clicking Incoming Replications or Outgoing Replications.
- Select an exiting replication to fail over that has synchronized at least once, then click .
- Complete the Failover wizard and depending on the source and destination sites configure the different failover settings for the selected workloads.
- Start from step f for failing over to or from Cloud Director sites, skipping steps a-e.
- Start from step a for vSphere DR and migration between vCenter Server sites.
- The Replications page shows when a selected replication is already configured with recovery settings and to use them and skip to step f, select Use preset recovery settings where available.
For information about configuring the recovery settings for vSphere DR and migration between vCenter Server sites, see Configure recovery settings for vSphere DR and migration.
- On the Storage placement page, to select a different placement for the recovered workload after the fail over completes, activate the Change storage placement toggle, then you must select a VM Storage Policy and a Placement Datastore , and click Next.
Note: By selecting a different datastore than the selected one in the existing replication, results in move of the data after the failover completes, which can affect the performance of the VM until the operation completes. See the above Prerequisites for vMotion and Storage vMotion, depending on the selected power-on state in the destination site.
Attempting to change the storage placement from an encrypted storage policy to a non-encrypted one and the other way round is not supported.
All disks and the vmdk file move to the newly selected storage. If the VM cannot be moved to the new storage, it remains available and failed over in the original storage as configured in the existing replication.
The VM can have only one storage profile assigned for all its disks, overriding any Use flexible storage profile assignment settings per disk.
Change storage placement is not available for replications from a Cloud Director site as a source to an on-premises site as a destination.
- On the VM Folder page, select a destination location for storing the failed over virtual machines, then click Next.
- On the Compute Resource page, select a destination compute resource for the failed over virtual machines, then click Next.
- On the Network Mappings page, select a network mapping for each adapter connected to each virtual machine, then click Next.
- On the Settings page, select the configuration for the recovered workload depending on the destination site, then click Next.
Option Description Instances handling after recovery Both for failing over to Cloud Director sites and for vSphere DR and migration. Does not apply for failing over from a Cloud Director site to an On-premises site. - Default: selecting this option provides the lowest Recovery Time Objective (RTO). To optimize performance, perform instances consolidation after the recover task completes.
- Expose PITs: only available for failing over already protected virtual machines to an on-premises site as a destination, selecting this option allows instances older than the selected instance to be exported as snapshots to the recovered virtual machine.
- Consolidate: selecting this option consolidates all instances into the recovered disk. This can improve the runtime performance of the recovered virtual machine in the destination site but might significantly increase the RTO.
Security tags For failing over to Cloud Director sites:
To copy the security tags from the source virtual machine then during recovery apply them to the destination virtual machine, select the Copy security tags check box.Power settings Powers on the recovered workload in the destination site after the failover task completes.
Network Settings For failing over to Cloud Director sites:- Select Apply preconfigured network settings on failover, to assign the network configured during the virtual machine replication.
- Select Connect all VMs to network and from the drop-down menu select a network to connect the replicated virtual machines to.
VDC policy settings For failing over to Cloud Director sites: Note: When a VDC policy with the same name already applies on the source workload, it is pre-selected for you. You can choose to either keep it, or select another VDC policy. For more information, see VDC compute policies.- Select the organization placement policy to apply on the recovered workloads from the VM placement policy drop-down menu.
- Select the organization sizing policy from the VM sizing policy drop-down menu. With no sizing policy selected for the replication, VMware Cloud Director automatically applies the system default sizing policy on the destination virtual machine.
- Select a new storage placement after fail over completes from the Storage Profile drop-down menu. See the above Note in step b.
- On the Recovery Instance page, when instances are preserved, select recovery point in time, then click Next.
- On the Ready To Complete page, verify that the failover settings are correct, then click Finish.
The Last changed column shows the failover progress in percentages. When the failover of the workload completes, the Recovery state column of this replication shows green state Failed-Over. The workload is now ready for use in the destination site.
When the failover task succeeds the change storage policy task initiates when a new storage profile is selected, then moves the recovered virtual machines and their disks to the newly selected storage. In the bottom in the Tasks tab, a Recovered VM storage profile task shows the move execution to the new storage. While this task is progressing, the workload is ready to be used, with limited performance until the task finishes. The state of the change storage policy task does not affect the state of the priorly completed failover task.
- (Optional) In the bottom pane, to monitor the progress of the task, click the Tasks tab.
Results
What to do next
- You can reverse and re-protect the workload back to the source site. For more information, see Reverse a Replication.
- You can permanently stop the traffic of this replication, remove the replication and remove all retained replication instances, by clicking then confirming the deletion.