{"id":2018,"date":"2021-09-17T02:22:19","date_gmt":"2021-09-17T00:22:19","guid":{"rendered":"https:\/\/itsimple.info\/?p=2018"},"modified":"2021-09-17T02:22:20","modified_gmt":"2021-09-17T00:22:20","slug":"how-to-add-or-remove-any-specific-disk-from-hyper-v-replication-hot-add-remove","status":"publish","type":"post","link":"https:\/\/itsimple.info\/?p=2018","title":{"rendered":"How To Add Or Remove any specific disk from Hyper-V replication (hot add\/remove)"},"content":{"rendered":"\n<p>Starting from windows 2016 the same command to create replication is the one to remove disks, when running the command the replication will hot add\/remove any disk you specified, if you add specific disk, the other will be excluded ! here some example (execute Powershell on the host):<\/p>\n\n\n\n<p>To add\/update all the disk on the VM to the replication :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>Set-VMreplication VMName -ReplicatedDisks (Get-VMHardDiskDrive VMName)<\/code><\/pre>\n\n\n\n<p>To add specific disk ,only this disk will be add to the replication, the other will be excluded :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Set-VMreplication \"VMname\" -ReplicatedDisks (Get-VMHardDiskDrive \"VMname\" -ControllerType SCSI -ControllerNumber 0 -ControllerLocation 0)<\/pre>\n\n\n\n<p>To add\/update mote then one disk, just add additional location with comma to separate :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Set-VMreplication \"VMname\" -ReplicatedDisks (Get-VMHardDiskDrive \"VMname\" -ControllerType SCSI -ControllerNumber 0 -ControllerLocation 0), (Get-VMHardDiskDrive \"VMname\" -ControllerType SCSI -ControllerNumber 0 -ControllerLocation 2)<\/pre>\n\n\n\n<p>When changing disks on the replication disk list you should concider some time to let the disk re-replicate and merging (shown in the hyper-v manager)<\/p>\n\n\n\n<figure class=\"wp-block-pullquote is-style-solid-color\"><blockquote class=\"has-text-color has-vivid-green-cyan-color\"><p><strong>Good Luck<\/strong><\/p><\/blockquote><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Starting from windows 2016 the same command to create replication is the one to remove disks, when running the command the replication will hot add\/remove any disk you specified, if you add specific disk, the other will be excluded ! here some example (execute Powershell on the host): To add\/update all the disk on the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,12,18,14,15],"tags":[],"class_list":["post-2018","post","type-post","status-publish","format-standard","hentry","category-hyper-v","category-tutorials","category-virtualization","category-windows","category-windows-server"],"_links":{"self":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/2018","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2018"}],"version-history":[{"count":0,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/2018\/revisions"}],"wp:attachment":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2018"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2018"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}