網頁

2013年2月28日 星期四

Hyper-V 3.0 --- Execute Planned Failover for Kerberos authentication on the same AD Domain (part 5)

After deploying Hyper-V Replica, maybe one day need to take Host/VM offline on the Primary Server due to the Host/VM need to update Windows security or replace bad equipment. When this status happens, we need to failover VM from the Primary to Replica role and change replication direction for configuring “reverse replication”. So does that we have to do a planned failover.
Drawing3
How to do it?
Configure primary server to receive replicationIn Hyper-V Manger of the primary server, click this Host next to click Hyper-V Settings… in the Actions paneScreenHunter_02In the Hyper-V Settings dialog, click Replication Configuration Enabled as a Replica Server, choose Enable this computer as Replica Server and Use Kerberos(HTTP) check box in the Authentication and ports sections, select Allow replication from the
specified server
option in the Authorization and Storage sections.ScreenHunter_03
Click Add… buttonScreenHunter_18In Add Authorization Entry dialog, key in the specified word as the primary server, the default location to store replica files and the trust group next to click OK button (# 1)ScreenHunter_19Click OK button to complete Replication Configuration settingScreenHunter_21
Configure the firewall rule on the primary serverIn Windows Firewall with Advanced Security dialog, click Inbound Rules and select Hyper-V Replica HTTP Listener (TCP-In) next to click Enable Rule then in Actions panel.ScreenHunter_23
Do a Planned Failover
In Hyper-V Manager on the primary server, turn off VM that we want to fail over. (# 2)ScreenHunter_27Right-click offline VM next to select Replication, Planned Failover… in menuScreenHunter_28In Planned Failover dialog, enable Start the Replica virtual machine after failover check box next to click Fail Over button to begin to transfer VM on the replica server.ScreenHunter_29If the prerequisite is done, the Failover operation will be successful.ScreenHunter_30The VM replication role will be changed on the original server.ScreenHunter_31The VM plays the part of the primary server will be started and replication direction will be from primary to replica server.ScreenHunter_32
Verify the replication healthRight-click VM on the replica server and click replication, View Replication Health… link in menuScreenHunter_33The dialog will pop up and the some information can tell us whether replication is healthful now. (# 3)ScreenHunter_34In the primary server, we also do the same step to realize replication health information.ScreenHunter_36
Reference :
(# 1) In reverse replication setting, the replica files will locate on the original VM path. Its location doesn’t base on our assignment.ScreenHunter_37(# 2) If VM is still running and execute planned failover activity, we will get a error so that planned failover cannot be work.ScreenHunter_26(# 3) About interpreting replication health attribute, we can refer to these information as the following URL
         Interpreting Replication Health – Part 1
         Interpreting Replication Health - Part 2

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

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.