Performing Failover by Failover Plan
To perform failover by failover plan with Veeam PowerShell snap-in, you need to perform the following steps:
- Create VM objects: run the
New-VBRFailoverPlanObjectCreates the VBRFailoverPlanObject object. cmdlet to create an object for each VM that you want to add to the failover plan.You can edit the created VM objects with the
Set-VBRFailoverPlanObjectModifies VMs in failover plans. cmdlet afterwards. - Create the failover plan: run the
Add-VBRFailoverPlanCreates failover plans or cloud failover plans. cmdlet to create the failover plan. Use the created VM objects to add VM to your plan.If you need to edit a created failover plan, run the
Set-VBRFailoverPlanModifies a selected failover plan or cloud failover plan. cmdlet. - Launch failover by the failover plan: run the
Start-VBRFailoverPlanStarts failover by failover plan. cmdlet to launch the failover process. Use theGet-VBRFailoverPlanReturns existing failover plans or cloud failover plans. cmdlet to look for the failover plan you need.You can launch failover plan that were created with UI as well.
- Finalize the failover process:
- Undo failover is the only available option to finalize failover as a group. Undo failover switches workload back to the original VMs, revert replication operations and discard changes made to the working VM replicas. In this case you loose all the changes that were made to the replicas while you failed over to them. Run the
Undo-VBRFailoverPlanUndoes the failover by failover plan. cmdlet to undo failover of the group. - Fail back if you want to switch back to the original VMs and keep the changes made to replicas. Run the
Stop-VBRReplicaFailoverUndoes replica failover. cmdlet. You need to process each VM individually. - Commit failover if you want to permanently move the workload to replica. Run the
Start-VBRViReplicaFailoverFails over corrupted VMware VMs to their replicas. cmdlet withDefiniteparameter. You need to process each VM individually.
- Undo failover is the only available option to finalize failover as a group. Undo failover switches workload back to the original VMs, revert replication operations and discard changes made to the working VM replicas. In this case you loose all the changes that were made to the replicas while you failed over to them. Run the
This example demonstrates how to create a failover plan for a group of Microsoft Exchange servers and a DNS server, run and undo it.
|
// Create VM objects: $DNS = Find-VBRViEntity -Name "DNSServer" | New-VBRFailoverPlanObject -BootDelay 0 $MSExchange01 = Find-VBRViEntity -Name "MS_Exchange_Server_01" | New-VBRFailoverPlanObject -BootOrder 1 -BootDelay 180 $MSExchange02 = Find-VBRViEntity -Name "MS_Exchange_Server_02" | New-VBRFailoverPlanObject -BootOrder 2 -BootDelay 120 // Create failover plan: Add-VBRFailoverPlan -Name "MS Exchange Group Failover" -FailoverPlanObject $DNS, $MSexchange01, $MSExchange02 -Description "Failover plan for the mail servers group: DNS Server, MS Exchange 01 Server, MS Exchange 02 Server" // Launch failover plan: Get-VBRFailoverPlan -Name "MS Exchange Group Failover" | Start-VBRFailoverPlan // Undo failover: Get-VBRFailoverPlan -Name "MS Exchange Group Failover" | Undo-VBRFailoverPlan |