{"id":10017,"date":"2017-04-18T14:54:57","date_gmt":"2017-04-18T13:54:57","guid":{"rendered":"https:\/\/myworldofit.net\/?p=10017"},"modified":"2017-04-18T14:54:57","modified_gmt":"2017-04-18T13:54:57","slug":"when-shutting-down-a-hyper-v-virtual-machine-the-hyper-v-replication-state-goes-to-critical","status":"publish","type":"post","link":"https:\/\/myworldofit.net\/?p=10017","title":{"rendered":"When shutting down a Hyper-V virtual machine the Hyper-V replication state goes to critical"},"content":{"rendered":"<p><a href=\"https:\/\/myworldofit.net\/wp-content\/uploads\/2017\/04\/HyperVReplica.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"210\" class=\"alignright size-medium wp-image-10018\" alt=\"\" src=\"https:\/\/myworldofit.net\/wp-content\/uploads\/2017\/04\/HyperVReplica-300x210.png\" srcset=\"https:\/\/myworldofit.net\/wp-content\/uploads\/2017\/04\/HyperVReplica-300x210.png 300w, https:\/\/myworldofit.net\/wp-content\/uploads\/2017\/04\/HyperVReplica.png 647w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>For the past few months I&#8217;ve been using an in house script to manage the rebooting of Virtual Machines on Hyper-V hosts following Windows Updates. These Virtual Machines also take part in Hyper-V Replica Replication to a DR host. On occasion I&#8217;ve spotted that when shutting down (as part of the reboot sequence) the Hyper-V Replica state will go into a Error &#8216;Critical&#8217; state.<\/p>\n<p>As it transpires this happens when the machine is shutting down and Hyper-V replica is attempting to create a reference point to send replica data over to the DR host.<\/p>\n<p>The best fix I have at the moment for this issue is to suspend replication (you can use the Suspend-VMReplication PowerShell Cmdlet as documented here &#8211; <a href=\"https:\/\/technet.microsoft.com\/en-us\/itpro\/powershell\/windows\/hyper-v\/suspend-vmreplication\">https:\/\/technet.microsoft.com\/en-us\/itpro\/powershell\/windows\/hyper-v\/suspend-vmreplication<\/a> to accomplish this)&nbsp;before shutting down the machine and then resuming replication (Resume-VMReplication and <a href=\"https:\/\/technet.microsoft.com\/en-us\/itpro\/powershell\/windows\/hyper-v\/resume-vmreplication\">https:\/\/technet.microsoft.com\/en-us\/itpro\/powershell\/windows\/hyper-v\/resume-vmreplication<\/a>) once shutdown is complete.<\/p>\n<p>You will also note this issue noted under Hyper-V-VMMS in Event Viewer with Event IDs along the lines of 19060, 33680, 32546 and 32026.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For the past few months I&#8217;ve been using an in house script to manage the rebooting of Virtual Machines on Hyper-V hosts following Windows Updates. These Virtual Machines also take part in Hyper-V Replica Replication to a DR host. On occasion I&#8217;ve spotted that when shutting down (as part of the reboot sequence) the Hyper-V Replica state will go into&#8230; <a class=\"read-more\" href=\"https:\/\/myworldofit.net\/?p=10017\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[11,7],"tags":[373,378,377,376,80,264,375,381,380,379,374,97],"series":[],"class_list":["post-10017","post","type-post","status-publish","format-standard","hentry","category-servers","category-virtualization","tag-373","tag-378","tag-377","tag-376","tag-hyper-v","tag-hyper-v-replica","tag-hyper-v-server-2016","tag-replication","tag-resume-vmreplication","tag-suspend-vmreplication","tag-virtual-machine","tag-windows-server"],"_links":{"self":[{"href":"https:\/\/myworldofit.net\/index.php?rest_route=\/wp\/v2\/posts\/10017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myworldofit.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myworldofit.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myworldofit.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myworldofit.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10017"}],"version-history":[{"count":1,"href":"https:\/\/myworldofit.net\/index.php?rest_route=\/wp\/v2\/posts\/10017\/revisions"}],"predecessor-version":[{"id":10019,"href":"https:\/\/myworldofit.net\/index.php?rest_route=\/wp\/v2\/posts\/10017\/revisions\/10019"}],"wp:attachment":[{"href":"https:\/\/myworldofit.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myworldofit.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myworldofit.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10017"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/myworldofit.net\/index.php?rest_route=%2Fwp%2Fv2%2Fseries&post=10017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}