網頁

2013年2月8日 星期五

Hyper-V 3.0 --- One-Way Replication between Non-Cluster Hosts on the same AD domain (part 4)

In Hyper-V 3.0, there is new exciting function as “Replica” that belong to be an asynchronous replication from one Hyper-V’s VM to another Hyper-V Server.
Its synchronization exists four types:
          1. non-cluster to non-cluster
          2. non-cluster to cluster
          3. cluster to non-cluster
          4. cluster to cluster
In the following lab, I will introduce how to do it on non-cluster environment.Drawing2

Configure the firewall on Replica Server
To configure the firewall rules for Kerberos authentication, click Advanced settings link to open Windows Firewall with Advance Security Management in Control Panel/System and Security/Windows Firewall.ScreenHunter_03In Windows Firewall with Advanced Security Management, click Inbound Rules next to select Hyper-V Replica HTTP Listener (TCP-In) and click Enable RuleScreenHunter_05

Configure the Replica server to receive replication
In Hyper-V Manager, click the Replica Server next to click Hyper-V Setting… link in the Actions panelScreenHunter_06In the Hyper-V Settings dialog, click Replication Configuration Enabled as a Replica server in Server panel, select Enable this computer as a Replica server and User Kerberos (HTTP) check box in the Authentication and ports sectionScreenHunter_07In the Authorization and storage section, select Allow replication from the specified servers radius button next to click Add… buttonScreenHunter_08In Add Authorization Entry dialog, write down the individual primary server as vw-hyperv-01.dw.com by <FQDN> or the particular domain as *.dw.com by *.<Domain Name> in Specify the primary server field, designate the special location for storing replica files, and assign a name as Trust Group 01 with the trust group tag.ScreenHunter_10Click OK button if we are finishedScreenHunter_11Click OK button if this reminding message “Inbound traffic needs to be allowed in the Firewall” has already been done.ScreenHunter_12

Enable replication for VM on Primary serverIn Hyper-V Manager,  select a VM that want to be replicated next to click Enable Replication… link to launch the Enable Replication wizard.ScreenHunter_13In Before You Begin page, click Next > buttonScreenHunter_14In Specify Replica Server page, enter either NETBIOS or FQDN on Replica server field next to click Next > buttonScreenHunter_15 In Specify Connection Parameters page, the port number and authentication type of the Replica server will automatically be populated if Remote WMI is enabled. So that keep the original setting about Compress the data that is transmitted over the network check box and then click Next > button.ScreenHunter_16In Choose Replication VHDs page, clear the check box of some VHDs that we don’t want to replicate next to click Next > button ScreenHunter_18In Configure Recovery History page, select Additional recovery points option, assign a number of additional recovery points to be stored, enable and change copy frequency for Replication incremental VSS next to click Next > buttonScreenHunter_19In Choose Initial Replication Method page, select the initial replication method and schedule initial replication based on the decision next to click Next > buttonScreenHunter_21Click Finish button to complete the enable replication wizard (# 2)ScreenHunter_22Due to we choose the initial copy over the network, the transmission traffic will begin to be high in the send of Primary Server or the receive of Replica Server.
ScreenHunter_24ScreenHunter_23

Monitor replication health
In Hyper-V Manager of Replica Server, right-click the replicating VM next to select Replication and View Replication Health… in menu to launch the health report.ScreenHunter_26In Replication Health dialog, it will show the current replication status and some statistics.ScreenHunter_27Repeat the above steps on primary server and also can view replication health.ScreenHunter_29

Perform a Test Failover on Replica Server
In Hyper-V Manager, right-click VM of Replica Server next to select Replication and Test Failover… in menuScreenHunter_35In Test Failover dialog, choose a recovery point next to click Test Failover buttonScreenHunter_36So does that will create a new VM with name ““<virtual machine name>-Test” as VM-MB-01-test and no connect to any network segment. In the moment, we will setup another virtual switch into this network adapter to avoid Server name conflict when it powers on. ScreenHunter_03Then we need to confirm whether this VM can Start/Pause/Stop, and that any applications in the virtual machine run properly.ScreenHunter_04If the Test VM function is normal, please right-click VM of Replica Server again next to select Replication and Test Failover… in menuScreenHunter_12Click Stop Test Failover buttonScreenHunter_13So does that the Test VM will be deleted and its data will be discarded now.ScreenHunter_14
In the next article, I will introduce the planned failover & unplanned failover on Hyper-V 3.0
See you next time!

Reference : 
(# 1) Configure your Replica server to receive replication traffic from specific primary server(s)
(# 2) In the moment, a dialog box appears and tell us replication enabled successfully. In this dialog, we can click Settings… button to configure network for VM on Replica Server. ScreenHunter_25We can configure the same or different network setting so that the virtual machine will connect to our decided network after a failover to the Replica server.ScreenHunter_01If click Close button, we have to manually configure the network setting for Replica VM because it doesn’t connect to any network on Replica Server by default.
ScreenHunter_07


<<<  Hyper-V 3.0 --- Copied VM is working in another Hyper-V 3.0 Server (part 3)

Since 2010 Design by Davidwa
©Copyright Davidwa Inc. All rights reserved.