This article mainly demonstrates virtual machine replication between Hyper-V hosts and Hyper-V clusters, as described in the previous article on the replica technology for standalone Hyper-V hosts.
1. Log on to any Hyper-v cluster node server, open failover Cluster Manager
2. Right-click Role, select Configure role
650) this.width=650; "height=" 306 "title=" clip_image001 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image001 "src=" http://s3.51cto.com/wyfs02/ M02/58/55/wkiom1suee-bwcrtaafwdq3fbf4025.jpg "border=" 0 "/>
3. The High Availability wizard page that appears, read the relevant information and click Next
4. Select the Roles page, select Hyper-V replica broker (Hyper-V Replica broker), and click Next
650) this.width=650; "height=" 499 "title=" clip_image003 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image003 "src=" http://s3.51cto.com/wyfs02/ M00/58/55/wkiom1suefczd2uaaaim9dky2w8950.jpg "border=" 0 "/>
5. Type the name that the client will use when accessing this cluster role
650) this.width=650; "height=" 499 "title=" clip_image005 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image005 "src=" http://s3.51cto.com/wyfs02/ M01/58/55/wkiom1suefczwqy9aahjw6h8ymy473.jpg "border=" 0 "/>
6. Confirm the Settings page and confirm that configuring the High Availability page information for the Hyper-V replica agent is correct click Next
650) this.width=650; "height=" 499 "title=" clip_image007 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image007 "src=" http://s3.51cto.com/wyfs02/ M02/58/55/wkiom1suefcitypxaafo6gs_w8g037.jpg "border=" 0 "/>
7. Wait for the configuration high availability to complete, click View Report, confirm the message and click Finish
650) this.width=650; "height=" 499 "title=" clip_image009 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image009 "src=" http://s3.51cto.com/wyfs02/ M00/58/55/wkiom1suefkdfx8paaiwebw7f_y982.jpg "border=" 0 "/>
8. Right-click Create "Hvreplica" to select Copy settings
650) this.width=650; "height=" 487 "title=" clip_image011 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image011 "src=" http://s3.51cto.com/wyfs02/ M01/58/55/wkiom1suefbgzu_naahj_ns_kmw033.jpg "border=" 0 "/>
9. Hyper-V Replica proxy Settings page, select Enable this cluster as a replica server, select authentication and port, and set authorization and storage information, click OK
650) this.width=650; "height=" 499 "title=" clip_image013 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image013 "src=" http://s3.51cto.com/wyfs02/ M00/58/52/wkiol1suernje5r6aagczt8pe8o730.jpg "border=" 0 "/>
10. Setting up Hyper-V standalone host to enable Hyper-V replication technology
650) this.width=650; "height=" 499 "title=" clip_image015 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image015 "src=" http://s3.51cto.com/wyfs02/ M00/58/55/wkiom1suefezacwsaahsnufnmx8142.jpg "border=" 0 "/>
Log on to the primary replica server, right-click the virtual machine that has replication technology enabled, expand Network adapters, tap TCP/IP in failover, at which point administrators can use these network settings to control the static IP address that is used when the virtual machine is started as part of a failover. If you configure this virtual machine to use dynamically assigned IP addresses, you do not need to configure these settings. Regardless of the type of failover that an administrator uses, you first need to make sure that these values are set on both the current primary and replica servers. The affected virtual machine and the server on which it is running must use the same version of Hyper-V Integration Services (that is, the Hyper-V integration service may need to be updated)
650) this.width=650; "height=" 403 "title=" clip_image017 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image017 "src=" http://s3.51cto.com/wyfs02/ M00/58/55/wkiom1suefrrs9e0aaj300qtofs858.jpg "border=" 0 "/>
Log on to the secondary replica server, right-click the virtual machine that has replication technology enabled, expand Network adapters, and tap test failover. Specifies the configuration of the network adapter used by the test replica virtual machine. When you select a test failover task on a replica virtual machine, a test replica virtual machine is created.
650) this.width=650; "height=" 436 "title=" clip_image019 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image019 "src=" http://s3.51cto.com/wyfs02/ M01/58/55/wkiom1suefrildzqaahh2viud-i035.jpg "border=" 0 "/>
Test failover
1. Log on to the primary replica server and right-click the virtual machine with replication technology enabled
2. Select Copy and click "Test Failover"
650) this.width=650; "height=" 410 "title=" clip_image021 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image021 "src=" http://s3.51cto.com/wyfs02/ M02/58/55/wkiom1suefuif3tjaaf5fyc2dqu441.jpg "border=" 0 "/>
3. Test Failover dialog box, use one of the recovery points to create a virtual machine to test failover
650) this.width=650; "height=" 301 "title=" clip_image023 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image023 "src=" http://s3.51cto.com/wyfs02/ M00/58/52/wkiol1suer7cqhikaafor2saidc881.jpg "border=" 0 "/>
4. As stated above, after clicking Test failover, a test replica virtual machine will be created
650) this.width=650; "height=" 266 "title=" clip_image025 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image025 "src=" http://s3.51cto.com/wyfs02/ M00/58/55/wkiom1suefzcvxaqaaebpglhlxi559.jpg "border=" 0 "/>
5. Once again, right-click the virtual machine with the replication technology enabled, select Stop test failover to
650) this.width=650; "height=" 493 "title=" clip_image026 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image026 "src=" http://s3.51cto.com/wyfs02/ M01/58/52/wkiol1suer_yidfxaaiskvga-fs872.jpg "border=" 0 "/>
6. This process will delete the created test replica virtual machine and will lose the data
650) this.width=650; "height=" 244 "title=" clip_image028 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image028 "src=" http://s3.51cto.com/wyfs02/ M01/58/55/wkiom1suef6rg_6taadyeo-srqw858.jpg "border=" 0 "/>
Performing a fail-over
1. Open Hyper-V Manager, right-click on the replica's virtual machine, select "Enable Replication"
2. Specify the replica server page, specify the replica server, click Next
650) this.width=650; "height=" 375 "title=" clip_image030 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image030 "src=" http://s3.51cto.com/wyfs02/ M02/58/55/wkiom1suef7s5aynaagt_q8if0w126.jpg "border=" 0 "/>
3. Specify the Connection Parameters page, confirm the information is correct, click Next
650) this.width=650; "height=" 499 "title=" clip_image032 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image032 "src=" http://s3.51cto.com/wyfs02/ M00/58/55/wkiom1suef_siy0saag8h-4mic0653.jpg "border=" 0 "/>
4. Select the VHD file you want to copy and click Next
650) this.width=650; "height=" 428 "title=" clip_image034 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image034 "src=" http://s3.51cto.com/wyfs02/ M02/58/52/wkiol1suesoqup9gaagpammlxho222.jpg "border=" 0 "/>
5. Select the rate of change sent to the replica server and click Next
650) this.width=650; "height=" 345 "title=" clip_image036 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image036 "src=" http://s3.51cto.com/wyfs02/ M02/58/56/wkiom1sueghckrqdaae-uvyiv-a210.jpg "border=" 0 "/>
6. Configure additional recovery point pages, which the administrator can configure to store only recently received replication data, and update the data on the replica server based on the frequency of replication that you configure. You can also configure replicas to retain an additional one or more recovery points, which are created approximately once per hour. Having additional recovery points also allows you to restore virtual machine operations to an earlier point in time when performing a failover. You can keep up to 15 (24 in Windows Server R2) Such a recovery point to record the number of recovery points that you need.
650) this.width=650; "height=" 427 "title=" clip_image038 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image038 "src=" http://s3.51cto.com/wyfs02/ M00/58/56/wkiom1suegly6wyyaahqh_nbu20801.jpg "border=" 0 "/>
7. Select the initial replication Method page, in order to begin copying data, the replica needs to transfer the current state of the virtual machine. This initial state can be transmitted directly through the existing network, immediately or later, when you configure it. You can also use a pre-existing restored virtual machine on the replica server (for example, if you have restored an earlier backup of the virtual machine on the replica server) as the initial copy. Alternatively, you can save network bandwidth by replicating the initial copy to external media and then physically passing media to the replica site. Record the initial replication method that you plan to use.
650) this.width=650; "height=" 499 "title=" clip_image040 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image040 "src=" http://s3.51cto.com/wyfs02/ M01/58/56/wkiom1suegssnuicaaiosuqedqw952.jpg "border=" 0 "/>
8. Wait for replication to complete
650) this.width=650; "height=" 273 "title=" clip_image042 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image042 "src=" http://s3.51cto.com/wyfs02/ M00/58/56/wkiom1suegwzjtfzaad7hislbnq257.jpg "border=" 0 "/>
9. Log on to the Hyper-V standalone server to view the replicated virtual machines
650) this.width=650; "height=" 231 "title=" clip_image044 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image044 "src=" http://s3.51cto.com/wyfs02/ M00/58/52/wkiol1suesjsvaaxaade0fbygpo690.jpg "border=" 0 "/>
10. Right-click the virtual machine with replication technology enabled, select Copy, and tap scheduled failover
650) this.width=650; "height=" 499 "title=" clip_image046 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image046 "src=" http://s3.51cto.com/wyfs02/ M01/58/52/wkiol1suesnre4xcaagtxwiyzli111.jpg "border=" 0 "/>
11. Planned failover page, click "Failover"
12. Waiting for planned failover to complete
650) this.width=650; "height=" 496 "title=" clip_image048 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image048 "src=" http://s3.51cto.com/wyfs02/ M02/58/52/wkiol1suesry6oylaaifk-sjvvg851.jpg "border=" 0 "/>
13. The replica-enabled virtual machine on the replica server will automatically start running
650) this.width=650; "height=" 499 "title=" clip_image050 "style=" border:0px;padding-top:0px;padding-right:0px; Padding-left:0px;background-image:none, "alt=" clip_image050 "src=" http://s3.51cto.com/wyfs02/M01/58/52/ Wkiol1suesuqwfauaahhqylurpa286.jpg "border=" 0 "/>
This article is from "Xu Ting Blog-Microsoft technology Sharing" blog, please be sure to keep this source http://ericxuting.blog.51cto.com/8995534/1600840
Hyper-V server cluster Replica