Q: Can I perform a planned failover of a Hyper-V Replica replicated virtual machine to test the replica VM prior to starting reverse replication?
Use Windows PowerShell to test a VM by doing a planned failover.
John Savill
August 8, 2012
1 Min Read
A: Using Windows PowerShell, far more granular control is available over the planned failover process than if you used the Hyper-V Manager GUI. Here's how to failover using PowerShell:
Shutdown the virtual machine (VM):
Stop-VM –VMName –ComputerName
Prepare the VM for failover:
Start-VMFailover –VMName –ComputerName –Prepare
Prepare the VM for failover on the Hyper-V Replica server:
Start-VMFailover –VMName –ComputerName
Start the VM on the replica and perform any testing:
Start-VM –VMName –ComputerName
Reverse the replication from the replica server to the primary:
Set-VMReplication -VMName -ComputerName –Reverse
About the Author
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
You May Also Like