Hyper-V replica Test failover failing for some VM's

MasisP 1 Reputation point
2021-11-09T20:28:46.573+00:00

I have server 2012 R2 Hyper-V Replication jobs to an offsite server. I tried to run test-failover on these VM's on these VM's and 3 out of 7 are failing. replication status is showing normal and it is replicating every 5 minutes. The error I get is:

Start-VMFailover : Hyper-V failed to enable test failover for 'VM': One or more arguments are invalid

(0x80070057). (Virtual machine ID E96F556B-FE79-4D9C-89EC-632C3CDF3A2C)

Replication operation for virtual machine 'VM' failed: One or more arguments are invalid (0x80070057).

(Virtual machine ID E96F556B-FE79-4D9C-89EC-632C3CDF3A2C) (Primary server: 'SourceHost', Replica server:

'Destination Host')

A parameter that is not valid was passed to the operation.

At C:\DR Scripts\Start_TestFailover.ps1:1 char:1

  • Start-VMFailover * -AsTest -Confirm:$false
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidArgument: (Microsoft.HyperV.PowerShell.VMTask:VMTask) [Start-VMFailover], Virtual
    izationOperationFailedException
    • FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.StartVMFailoverCommand "

has someone seen this before? I haven't been able to find any answers online

Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,529 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Georg Matviak 176 Reputation points
    2021-11-12T17:40:09.163+00:00

    Hello MasisP-5872,

    Thank you for your question and for getting in touch. My name is Samuel and I would be more than happy to help you with your query.

    Check your guest configuration file to see what drives it is pointing to.

    Then check the physical drives to make sure your vhd files are still present.

    See also the article below that comments on a problem similar to yours, I believe it can help:

    https://social.technet.microsoft.com/Forums/en-US/7198c6f5-3eb6-4d67-8f53-f1c2891bb1a7/hyperv-failover-fails-for-some-virtual-machines-on-replica-server?forum= winserverhyperv


    --If the answer is helpful, please vote positively and accept the answer--

    Yours sincerely,

    0 comments No comments

  2. MasisP 1 Reputation point
    2021-11-12T20:33:23.703+00:00

    The Drives were preset and everything looked good. What I did as a workaround is to remove the replication without deleting the replica VM and then start new replication and chose use existing VM on the replica site to resync it. After resync was complete, I was able to start the test-fail-over.

    0 comments No comments