You are on page 1of 4

Module 7: Overview of high availability and

disaster recovery
Lab: Planning and implementing a high
availability and disaster recovery solution
Exercise 1: Determining the appropriate high availability and disaster
recovery solution

Task 1: Design the appropriate high availability and disaster recovery solution

Question:
What actions should you take, and which technologies should you consider using?
Answer:
 Create a Business Recovery Plan to outline and prioritize the divisional and service requirements,
with
the customer facing financial requirements having the most critical requirements
 Consider using Live Migration for monthly planned downtime to allow for patching of your virtual
machines.
 Consider using Storage Migration to migrate the virtual machine storage off the existing server, to
upgrade the existing servers’ storage, and to migrate back the virtual machine storage to the server
without any virtual machine downtime.
 Consider using Hyper-V Recovery Manager solution, integrated with Hyper-V Replica, to provide
disaster recovery for critical VMs in the event of a disaster in any of offices.

Exercise 2: Implementing storage migration

Task 0: Preliminary steps


1. Confirm that the configurations of the servers are as follows (configure them if necessary):

LON-DC1: 172.16.0.10, 255.255.0.0, Default Gateway 172.16.0.1, DNS 172.16.0.10


LON-NVHOST3: 172.16.0.33, 255.255.0.0, Default Gateway 172.16.0.1, DNS 172.16.0.10
LON-NVHOST4: 172.16.0.34, 255.255.0.0, Default Gateway 172.16.0.1, DNS 172.16.0.10

2. Install the Hyper-V module

On LON-DC1 at the Windows PowerShell command prompt, type the following command, and then
press Enter:

Invoke-Command -computername LON-NVHOST3,LON-NVHOST4 {Install-WindowsFeature


Hyper-V -includeAllSubfeature -IncludeManagementTools -Restart}

Task 1: Configure and perform storage migration


1. Import Virtual Machine LON-SVR1

On LON-NVHOST3, click Start, and then click Windows PowerShell.


At the Windows PowerShell prompt, type the following script, and then press Enter:

& “E:\Program Files\Microsoft Learning\20740\Drives\CreateVirtualSwitches.ps1”


& “E:\Program Files\Microsoft Learning\20740\Drives\Import LON-SVR1-B.ps1”

Note: The drive letter for this path might vary depending on the lab configuration.

2. On LON-NVHOST3, in Hyper-V Manager, right-click LON-SVR1-B, and click Start, then click
Settings.
3. In Settings for LON-SVR1-B, under IDE Controller 0, click Hard Drive. Confirm that it is using the
LON-SVR1-B-Allfiles.vhd that is stored locally, and then click OK.
3. In Hyper-V Manager, right-click 20740C-LON-SVR1-B, and then click Move.
4. In the Move “20740C-LON-SVR1-B” Wizard, on the Before You Begin page, click Next.
5. On the Choose Move Type page, select the Move the virtual machine’s storage option, and
then click Next.
6. On the Choose Options for Moving Storage page, select the Move only the virtual machine’s
virtual hard disks option, and then click Next.
7. On the Select Items to Move page, confirm that only 20740C-LON-SVR1-B-Allfiles.vhd is
selected, and then click Next.
8. On the Choose a new location for attached virtual hard disk page, in the Folder text box, type
C:\VMs\LON-SVR1-B, and then click Next.
9. On the Completing Move Wizard page, click Finish.

Note: Because the VHD is dynamically expanding and is small, the move occurs quickly.

10. In Hyper-V Manager, right-click LON-SVR1-B, and then click Settings.


11. In Settings for LON-SVR1-B, under IDE Controller 0, click Hard Drive. Confirm that
20740C-LON-SVR1-B-Allfiles.vhd is stored on C:\VMs folder structure.
Note: This confirms that the VHD was moved while the virtual machine was running.

-Restore Disk to the original location:

12. On LON-NVHOST3, in Hyper-V Manager, right-click 20740C-LON-SVR1-B, and then click Move.
13. In the Move “20740C-LON-SVR1-B-” Wizard, on the Before You Begin page, click Next.
14. On the Choose Move Type page, select the Move the virtual machine’s storage option, and
then click Next.
15. On the Choose Options for Moving Storage page, select the Move only the virtual machine’s
virtual hard disks option, and then click Next.
16. On the Select Items to Move page, confirm that only 20740C-LON-SVR1-B-Allfiles.vhd is
selected,
and then click Next.
17. On the Choose a new location for attached virtual hard disk page, in the Folder text box, type
E:\Program Files\Microsoft Learning\20740\Drives\20740C-LON-SVR1-B\Virtual Hard Disks,
and then click Next.
18. On the Completing Move Wizard page, click Finish.

Results: After completing this exercise, you should have moved Hyper-V storage and virtual machines
and then restore it to the original location.

Exercise 3: Configuring Hyper-V Replicas

Task 1: Configure a replica on both host machines


1. On LON-NVHOST3, open the Hyper-V Manager console.
2. In Hyper-V Manager, right-click LON-NVHOST3, and then select Hyper-V Settings.
3. In Hyper-V Settings for LON-NVHOST3, click Replication Configuration.
4. In the Replication Configuration pane, click Enable this computer as a Replica server.
5. In the Authentication and ports section, select Use Kerberos (HTTP).
6. In the Authorization and storage section, click Allow replication from any authenticated
server, and then click Browse.
7. Expand This PC, double-click Local Disk (C), and then click New folder. For the folder name, type
VMReplica, and then press Enter. Select the C:\VMReplica\ folder, and then click Select Folder.
8. In Hyper-V Settings for LON-NVHOST3, click OK.
9. In the Settings dialog box, read the notice, and then click OK.
10. Click Start, and then click Control Panel.
11. In Control Panel, click System and Security, and then click Windows Firewall.
12. Click Advanced settings.
13. Click Inbound Rules.
14. In the right pane, in the rule list, find and right-click the Hyper-V Replica HTTP Listener (TCP-
In) rule, and then click Enable Rule.
15. Close the Windows Firewall with Advanced Security console, and then close the Windows
Firewall.
16. Repeat steps 1 through 15 on LON-NVHOST4.

Task 2: Configure replication for the LON-SVR1-B virtual machine


1. On LON-VHOST3, open Hyper-V Manager console and then right-click 20740C-LON-SVR1-B.
2. Click Enable Replication.
3. On the Before You Begin page, click Next.
4. In the Replica Server box, type LON-NVHOST4 and then click Next.
5. On the Specify Connection Parameters page, click Use Kerberos authentication (HTTP), and
then click Next.
6. On the Choose Replication VHDs page, click Next.
7. On the Configure Replication Frequency page, from drop-down list box, select 30 seconds, and
then click Next.
8. On the Configure Additional Recovery Points page, select Maintain only the latest recovery
point, and then click Next.
9. On the Choose Initial Replication Method page, click Send initial copy over the network, select
Start replication immediately, and then click Next.
10. On the Completing the Enable Replication Wizard page, click Finish.
11. At the Replication enabled successfully prompt, click Close.
12. Wait about five minutes. You can monitor the progress of the initial replication in the Status
column in the Hyper-V Manager console. When it completes (progress reaches 100 percent), ensure
that 20740C-LON-SVR1-B has appeared on LON-NVHOST4 in Hyper-V Manager

Task 3: Validate a planned failover to the replica site


1. On LON-NVHOST3, in Hyper-V Manager, right-click 20740C-LON-SVR1-B.
2. Select Replication, and then click View Replication Health.
3. Review content of the window that appears and ensure that there are no errors.
4. Click Close.
5. On LON-NVHOST4, open Hyper-V Manager, and then verify that 20740C-LON-SVR1-B is turned
off.
6. From LON-NVHOST3, connect to 20740C-LON-SVR1-B virtual machine.
7. Shut down virtual machine 20740C-LON-SVR1-B
8. On LON-NVHOST3, in Hyper-V Manager, right-click 20740C-LON-SVR1-B, point to Replication,
and then click Planned Failover.
9. In the Planned Failover window, ensure that the option Start the Replica virtual machine after
failover is selected, and then click Fail Over.
10. On LON-NVHOST4, in Hyper-V Manager, ensure that 20740C-LON-SVR1-B is running.
Task 4: Prepare for the next module
1. Right-click 20740C-LON-SVR1-B on LON-NVHOST4.
2. Click Replication and then click Cancel Failover. Click Yes.
3. Right-click 20740C-LON-SVR1-B, point to Replication, and then click Remove Replication.
4. Click Remove Replication.
5. Repeat step 3 and 4 on LON-NVHOST3.
6. On LON-NVHOST3, in Hyper-V Manager, right-click LON-NVHOST3 and then click Hyper-V
Settings.
7. In Replication Configuration, clear the Enable this computer as a Replica server check box and
click OK.
8. Repeat step 6 and 7 on LON-NVHOST4.

You might also like