Module9
Module9
Contents:
and takeaways
Module overview
1 of 53 3/12/2019, 1:29 PM
about:blank
Note: Many of the features that this module describes are also available in
Windows Server 2012 R2 and Windows Server 2012. This module explicitly
calls out the features that are new to Windows Server 2016.
Objectives
Lesson
After you will be able to:
2 of 53 3/12/2019, 1:29 PM
about:blank
Most organizations have certain applications that are business critical and must be
highly available. To ensure that an application or a service is highly available, you
must environment that provides redundancy components that
the application can choose among high
availability services hosted within
3 of 53 3/12/2019, 1:29 PM
about:blank
Host clustering
Host clustering enables you to configure a failover cluster when you use the Hyper-V
host configure host clustering the VM
as a You implement failover-clustering at the
host-server that the guest operating applications that
run within to be cluster-aware. highly
available.
Guest
4 of 53 3/12/2019, 1:29 PM
about:blank
system implements failover clustering so that you can locate the VMs on a single
host. This can be a quick and cost-effective configuration in a test or staging
environment.
For production environments, however, you can protect the application or service
more robustly if you deploy the VMs on separate failover clustering-–enabled
Hyper-V failover clustering host and
VM levels, resource regardless fails is a
VM or configuration is considered an
configuration mission-critical applications
environment.
You should consider several factors when you implement guest clustering:
• The application or service must be failover cluster-aware. This includes any of the
Windows services that are cluster-aware, applications, such
as Server and Microsoft
You should deploy multiple network adapters on the host computers and the VMs.
Ideally, should dedicate network connection to the iSCSI connection (if you use
this method storage), to the private hosts, and to
the network client computers
NLB
NLB works with VMs in the same way that it works with physical hosts. It distributes
IP traffic to multiple instances of a TCP/IP service, such as a web server that runs on
5 of 53 3/12/2019, 1:29 PM
about:blank
a host within the NLB cluster. NLB transparently distributes client requests among the
hosts, and it enables the clients to access the cluster by using a virtual host name or
a virtual IP address. From the client computer’s perspective, the cluster appears to
be a single server that answers these client requests. As enterprise traffic increases,
you can add another server to the cluster.
When you configure an NLB cluster, you must install and configure the application on
all VMs that will participate in the NLB cluster. After you configure the application, you
install the NLB feature in Windows Server 2016 within each VM’s guest operating
system (not on the Hyper-V hosts), and then configure an NLB cluster for the
application. Windows Server also the guest
operating to only Windows Server should
use the versions within one a Guest
Cluster resource typically increased I/O
performance the VM nodes on different
Note: As with earlier versions of Windows Server, you should not implement
NLB and failover clustering within the same operating system because the two
technologies conflict with each other.
6 of 53 3/12/2019, 1:29 PM
about:blank
When you implement failover clustering and configure VMs as highly available
resources, treats the VMs like service. For
example, failover clustering the VM as
quickly host in the cluster. runs the
VM. move the VM to any cluster as
part of migration.
1. The node where the VM is running owns the clustered instance of the VM,
controls access to the shared bus or iSCSI connection to the cluster storage,
7 of 53 3/12/2019, 1:29 PM
about:blank
and has ownership of any disks or logical unit numbers (LUNs) that you assign
to the VM. All the nodes in the cluster use a private network to send regular
signals, known as heartbeat signals, to one another. The heartbeat indicates
that a node is functioning and communicating on the network. The default
heartbeat configuration specifies that each node sends a heartbeat over
TCP/UDP port 3343 each second (or 1,000 milliseconds [ms]).
You define the one or more nodes that could take over by configuring the
Preferred Owner and the Possible Owners properties. The Preferred Owner
hierarchy of ownership possible
resource. By default, all nodes Possible
removing a node as a Possible from
in a failure situation.
8 of 53 3/12/2019, 1:29 PM
about:blank
3. You also can configure the cluster service to fail back to the offline node after it
becomes active again. When the cluster service fails back, it uses the same
procedures that it performs during failover. This means that the cluster service
takes all the resources associated with that instance offline, moves the
instance, and then brings all the resources in the instance back online.
There are many improvements to the functionality of Hyper-V with failover clustering
since Hyper-V in Windows Server 2016
continues with failover clustering features and
improvements areas:
9 of 53 3/12/2019, 1:29 PM
about:blank
• File share storage. Windows Server 2012 introduced the possibility of storing VMs
on Server Message Block (SMB) file shares in a file server cluster. This is a way to
provide shared storage that is accessible by multiple clusters, by providing the
ability to move VMs between clusters without moving the storage. To enable this
feature, deploy a file server cluster role and select Scale-Out File Server for
application data.
• Rolling Hyper-V cluster upgrades. In Windows Server 2016, you can upgrade the
nodes one at a time when upgrading from Windows Server 2012 R2. After
upgrading all nodes in a Hyper-V cluster, you can upgrade the functional level of
the entire cluster.
10 of 53 3/12/2019, 1:29 PM
about:blank
After you determine which applications you will deploy on highly available failover
clusters, deploy the failover Apply the
following you implement the
11 of 53 3/12/2019, 1:29 PM
about:blank
• Plan the shared storage for failover clustering. When you implement failover
clustering for Hyper-V, the shared storage must be highly available. If the shared
storage fails, the VMs will all fail, even if the physical nodes are functional. To
ensure storage availability, you will need to plan for redundant connections to the
shared Redundant Array of Independent the storage
device. a shared virtual hard locate the
shared available resource such Server.
Check
Discovery
Why storage a best practice in Windows Hyper-V failover
clustering?
12 of 53 3/12/2019, 1:29 PM
about:blank
Discovery
You have two clusters; one is a Windows Server 2016 cluster (Cluster1), and the other is
a mixed mode cluster of Windows Server 2012 R2 and Windows Server 2016 (Cluster2)
that is upgrading but has not finished. two VMs
called VM2 occasionally need forth between
Cluster1 you upgrade the configuration
Show solution
Lesson objectives
After completing this lesson, you will be able to:
13 of 53 3/12/2019, 1:29 PM
about:blank
Hyper-V as a role has some specific requirements for cluster components. To form a
Hyper-V cluster, you must have at least two physical nodes. Whereas other clustered
roles (such as Dynamic Host Configuration Protocol [DHCP] or file server) allow
nodes nodes in most production be
physical Windows Server 2016 nested
virtualization, you to configure a Hyper-V guest VM.
Allowing clustering scenarios previously physical
servers, two guest VMs to create a Hyper-V.
In addition to having nodes, you also must have physical and virtual networks.
14 of 53 3/12/2019, 1:29 PM
about:blank
When using host clustering, VMs are also components of a Hyper-V cluster. In
Failover Cluster Manager, you can create new highly available VMs, or you can make
existing VMs highly available. In both cases, the VM storage location must be on
shared accessible to both nodes. You make all VMs
highly Cluster Manager, you are part of
a cluster
15 of 53 3/12/2019, 1:29 PM
about:blank
To deploy a Hyper-V cluster, you must ensure that you meet the hardware, software,
account, network-infrastructure requirements. detail these
requirements.
Hardware
You must have the following hardware for a two-node failover cluster:
16 of 53 3/12/2019, 1:29 PM
about:blank
Software recommendations
The following are the software recommendations for using Hyper-V and failover
clustering:
• All the servers in a failover cluster need to run Windows Server 2016 Standard,
Datacenter, Hyper-V Server 2016 different editions
are rolling upgrade failover
• Private networks. If you use private networks that you have not routed to your
entire network infrastructure for communication between cluster nodes, ensure
that each of these private networks uses a unique subnet.
17 of 53 3/12/2019, 1:29 PM
about:blank
• Account for administering the cluster. When you first create a cluster, or add
servers to it, you must sign in to the domain with an account that has administrator
rights and permissions on all the cluster’s servers. In addition, if the account is not
a Domain Admins account, the account must have the Create Computer Objects
permission in the domain.
To implement failover clustering for Hyper-V, you must complete the following high-
level steps:
2. Configure the shared storage. You must use Disk Manager to create disk
18 of 53 3/12/2019, 1:29 PM
about:blank
3. Install the Hyper-V and Failover Clustering features on the host servers. You
can use Server Manager in the Microsoft Management Console (MMC) or
Windows PowerShell to do this.
4. Validate the cluster configuration. The Validate This Cluster Wizard checks all
components that are required provides
components do not requirements.
resolve any issues that Cluster Wizard
6. Create a VM on one of the cluster nodes. When you create the VM, ensure that
19 of 53 3/12/2019, 1:29 PM
about:blank
all files associated with the VM—including both the virtual hard disk and VM
configuration files—are stored on the shared storage. You can create and
manage VMs in either Hyper-V Manager or Failover Cluster Manager. We
recommend that you use the Failover Cluster Manager console for creating
VMs. When you create a VM by using Failover Cluster Manager, the VM is
automatically highly available.
8. Test VM failover. After you make the VM highly available, you can migrate the
computer to another node in the cluster. You can select to perform a Quick
Migration or a Live Migration. In most cases, you should perform a Live
downtime. We discuss these this course.
Configuring
20 of 53 3/12/2019, 1:29 PM
about:blank
CSVs in a Windows Server 2016 failover cluster allow multiple nodes in the cluster to
have simultaneously to the same as an
NTFS Server 2016 failover storage to the
cluster. clustered roles can another
more requiring a change in drive dismounting and
remounting CSVs also help in simplifying of a potentially
large number of LUNs in a failover cluster.
CSVs provide a general-purpose, clustered file system, which you layer on NTFS.
Windows Server 2016 does not restrict CSVs to specific clustered workloads, but it
only clusters and Scale-Out
21 of 53 3/12/2019, 1:29 PM
about:blank
• Reduced LUNs for the disks. You can use CSVs to reduce the number of LUNs
that your VMs require. When you configure a CSV, you can store multiple VMs on
a single LUN, and multiple host computers can access the same LUN
concurrently.
• Improved use of disk space. Instead of placing each .vhd file on a separate disk
with the .vhd file can expand, oversubscribe disk
space vhd files on the same
When you implement a CSV, all added storage displays in the \ClusterStorage
folder. The \ClusterStorage folder is created on the cluster node’s system folder,
and you cannot move it. This means that all Hyper-V hosts that are members of
the cluster must use the same drive letter as their system drive, or VM failovers
fail.
• Increased resiliency. CSVs increases resiliency because the cluster can respond
correctly even if connectivity between one node and the SAN is interrupted, or if
part of a network is down. The cluster reroutes the CSV traffic through an intact
part of the SAN or network.
Implementing
Before you can add storage to the CSV, the LUN must be available as shared
22 of 53 3/12/2019, 1:29 PM
about:blank
storage to the cluster. When you create a failover cluster, all the shared disks that
you configured in Server Manager are added to the cluster, and you can add them to
a CSV. Additionally, you have the option to add storage to the cluster, after you create
the cluster. If you add more LUNs to the shared storage, you must first create
volumes on the LUN, add the storage to the cluster, and then add the storage to the
CSV.
• The LUN’s drive letter (or mount point) is removed when you convert from regular
disk access to the CSV. This means that you must re-create all VMs that you
stored on the shared storage. If you must keep the same VM settings, consider
exporting to a CSV, and then Hyper-V.
23 of 53 3/12/2019, 1:29 PM
about:blank
You add shared virtual hard disks as SCSI drives the settings. The disks
appear as virtual serial-attached SCSI disks in the VM. You can add a shared virtual
hard disk to any VM with a supported guest operating system running on a Windows
24 of 53 3/12/2019, 1:29 PM
about:blank
Server 2016 Hyper-V platform. When you use this technology, the guest-clustering
configuration is simplified because you have several options for providing shared
storage for guest clusters. These options include shared virtual hard disk, Fibre
Channel, SMB, Storage Spaces, and iSCSI storage. You can use shared virtual disks
to provide storage for solutions such as SQL Server databases and file server
clusters.
Shared limitations
25 of 53 3/12/2019, 1:29 PM
about:blank
• Sufficient memory, disk, and processor capacity within the failover cluster is
necessary to support multiple VMs implemented as guest failover clusters.
For the guest operating systems, you can only use Windows Server 2012 or later.
However, if you use Windows Server 2012 in VMs that use shared virtual hard disks,
you must integration services from R2 or later.
Hyper-V supports both Generation VMs.
• CSV location. In this scenario, all VM files, including the shared. vhdx or .vhds
files, are stored on a CSV configured as shared storage for a Hyper-V failover
cluster.
Note: You should not deploy a shared virtual hard disk on an ordinary file
share or a local hard drive on the host machine. You must deploy the shared
virtual hard disk on a highly available location
26 of 53 3/12/2019, 1:29 PM
about:blank
To add a shared virtual hard disk by using Windows PowerShell, you should use the
Add-VMHardDiskDrive cmdlet with the –ShareVirtualDisk parameter. You must run
this command under administrator privileges on the Hyper-V host, for each VM that
uses the shared .vhds file.
27 of 53 3/12/2019, 1:29 PM
about:blank
Data No
Hyper-V
28 of 53 3/12/2019, 1:29 PM
about:blank
Provides low latency and Yes (remote direct Yes (Fibre Channel) No
low central processing unit memory access
(CPU) use [RDMA] or Fibre
Channel)
Requires Yes
Requires Yes
reconfigured
migrated
Discovery
What using shared hard virtual
Show solution
29 of 53 3/12/2019, 1:29 PM
about:blank
It is possible to use one more technique to make VMs storage highly available.
Instead clustering, now you highly
available When you use this storage high
availability Hyper-V nodes, but by that host
VM files With this new capability, VM files,
including files, and checkpoints, on SMB file shares.
The Scale-Out File Server is different from the file server clusters that were the only
option in previous versions of Windows Server in several ways. An ordinary file
server cluster serves the clients only by using one node at a time; however, a Scale-
30 of 53 3/12/2019, 1:29 PM
about:blank
Out File Server can engage all nodes simultaneously. You achieve this with the new
Windows Server failover clustering features, and the new capabilities in the new
version of Windows file server protocol, SMB 3.0. Therefore, by adding nodes to the
failover cluster running the File Server role with the Scale-Out File Server feature,
performance of the entire cluster increases. This, it is now possible to store resources
such as databases or VM hard disks on the folder shares hosted on the Scale-Out
File Server.
• CSV Cache. Because the Scale-Out File Server clusters use CSVs, they also
benefit from the use of the CSV Cache. The CSV Cache is a feature that you can
use memory (RAM) as a write-through CSV Cache
provides read-only unbuffered I/O. performance for
applications Hyper-V, which conducts accessing a
.vhd Server 2012, you can of the total
physical write-through cache, and Windows Server
2012 R2 and Windows Server 2016. The total physical RAM that a CSV write-
through cache consumes is from nonpaged pool memory.
31 of 53 3/12/2019, 1:29 PM
about:blank
• Abstraction of the storage layer. When you use a Scale-Out File Server as the
storage location for virtual disks, you can migrate live VMs from cluster to cluster,
and you do not need to migrate the storage provided the URL location is
accessible from the destination cluster.
• One or more computers running Windows Server 2012 or later with the File and
Storage Services role installed.
Check
Discovery
Have you considered storing VMs on the SMB share? Why or why not?
32 of 53 3/12/2019, 1:29 PM
about:blank
Use the following recommendations to ensure that the failover clustering strategy
meets the organization’s requirements:
• Identify the application components that must be highly available to make the
33 of 53 3/12/2019, 1:29 PM
about:blank
applications highly available. In some cases, the application might run on a single
server. If so, you only need to make that server highly available. Other
applications might require that several servers and other components (such as
storage or the network) be highly available.
• Identify the application characteristics. You must understand several things about
an
• Verify basic requirements. The basic requirements for Live Migration in a cluster
34 of 53 3/12/2019, 1:29 PM
about:blank
require that all hosts must be part of a Windows Server 2008 R2 or later failover
cluster, and that host processors must be from the same manufacturer. In addition,
all hosts in the cluster must have access to shared storage.
• Configure a dedicated network adapter or virtual network adapter for live migration
communication. When you implement failover clustering, you should configure a
separate live migration network. network to
transfer during a failover. To optimize configure
a network that has a capacity second
(Gbps)
35 of 53 3/12/2019, 1:29 PM
about:blank
Failover clusters provide high availability for the roles configured in the cluster.
However, roles and act when role
availability. cluster roles, and when respond to a
heartbeat, can restart or fail over cluster
node.
In Windows Server versions prior to Windows Server 2012, the failover cluster was
not able to monitor applications that were running inside a VM. For example, if you
used a VM as a print server, the failover cluster was not able to detect if the Print
Spooler service in a VM stopped. It would not take any action, even though the print
server the VM was still responding
36 of 53 3/12/2019, 1:29 PM
about:blank
Windows Server 2016 also can monitor failure of VM storage and loss of network
connectivity with a technology called network health detection. Storage failure
detection of a VM boot disk disk that
the VM happens, the failover cluster the VM on a
different
37 of 53 3/12/2019, 1:29 PM
about:blank
Note: We still recommend that you drain clustered roles (and place the node
in maintenance mode) before performing a shutdown operation.
(Get-Cluster).DrainOnShutdown
Discovery
What Microsoft technologies monitoring
and network
Show solution
• Configure available.
Demonstration steps
38 of 53 3/12/2019, 1:29 PM
about:blank
1. Ensure that LON-NVHOST3 is the owner of the disk that is assigned to Cluster
Shared Volume. If it is not, move the disk to LON-NVHOST3.
4. In Failover Cluster Manager, click the Roles node, and then start the New
Virtual Machine Wizard. If an error displays informing you that Microsoft
working, restart this
computer as TestClusterVM.
• Select Generation 1
Not Connected.
39 of 53 3/12/2019, 1:29 PM
about:blank
7. Enable the option for migration to computers with a different processor version.
Lesson objectives
After you will be able to:
• Describe Protection.
• Configure Protection.
40 of 53 3/12/2019, 1:29 PM
about:blank
41 of 53 3/12/2019, 1:29 PM
about:blank
Each network adapter per VM can control this feature. By default, the Protected
Network setting is enabled for all virtual network adapters. You can find this property
in the advanced configuration section of the network adapter settings on each VM.
This allows you to remove the setting if a network is not important enough to trigger a
live migration if communications are lost.
42 of 53 3/12/2019, 1:29 PM
about:blank
for the memory to be saved when placing the VM in a saved state. If the host
begins a shutdown, Hyper-V Virtual Machine Management Service (VMMS) will
begin saving the VMs’ memory to the hard drive and placing the VMs in a saved
state.
• Turn off the virtual machine. This second option will allow VMMS to turn off the
VM Hyper-V and entering the VM
operating as no different from physical
machine.
43 of 53 3/12/2019, 1:29 PM
about:blank
In Windows 2012 and later when placing a Hyper-V failover cluster node in a paused
state, maintenance mode, all VMs migrated
to other This removes downtime required
for shutting host. However, if a shutdown without
placing mode, all VMs would node via a
quick would mean that the VM would state by saving
all activities to disk, moving the VM role, and then resuming the VM.
Windows Server 2012 R2 introduced draining on shutdown to resolve this issue. This
feature is also available Windows Server 2016 and enabled by default. A failover
cluster shutdown no longer saved state
and then instead will drain the migrations
instead Because live migration
downtime shutdown of failover cluster
Drain on shutdown should be enabled by default. However, to verify this setting, run
the following Windows PowerShell command:
44 of 53 3/12/2019, 1:29 PM
about:blank
(Get-Cluster).DrainOnShutdown
After running this Windows PowerShell command, you will see one of two options: “1”
means it is enabled, and “0” means it is disabled.
• Live
• Configure shutdown.
Demonstration steps
2. from LON-NVHOST3
45 of 53 3/12/2019, 1:29 PM
about:blank
3. Connect to TestClusterVM, and then ensure that you can operate it.
DrainOnShutdown
Check
Discovery
When is a good time to remove the Network Health Protections settings?
Check
Select
What enable VMMS to easily operating
system host-initiated shutdown?
46 of 53 3/12/2019, 1:29 PM
about:blank
Scenario
The initial deployment of VMs on Hyper-V has been successful for Adatum
Corporation. As a next step in VM deployment, A. Datum is considering ways to
ensure that the services and applications deployed on the VMs are highly available.
As part of the implementation of high availability for most network services and
applications, considering options run on
Hyper-V
Objectives
After will be able to:
47 of 53 3/12/2019, 1:29 PM
about:blank
Lab setup
Virtual 20740C-LON-DC1-C
Password: Pa55w.rd
Scenario
48 of 53 3/12/2019, 1:29 PM
about:blank
To test failover clustering for Hyper-V clusters, you have decided to install the
Hyper-V role on one physical server, implement nested virtualization on two VMs and
install Hyper-V on the two nested VMs.
2. virtualization hosts
Detailed Steps ▼
Detailed Steps ▼
Result: After completing this exercise, you should have successfully imported VMs
and enabled nested virtualization on 20740C-LON-NVHOST3 and 20740C-LON-
NVHOST4
Scenario
The initial deployment of VMs on Hyper-V is very successful for A. Datum. As a next
step in the deployment, A. Datum is considering ways to ensure that the services and
applications deployed on the VMs are highly available. As part of the implementation
of high network services and also is
considering the VMs that run available.
49 of 53 3/12/2019, 1:29 PM
about:blank
Detailed Steps
Detailed Steps
Detailed Steps
Result: After completing this exercise, you should have successfully configured
the failover clustering infrastructure for Hyper-V.
Scenario
1. iSCSI target
2. highly available
3.
4. shutdown
50 of 53 3/12/2019, 1:29 PM
about:blank
Detailed Steps ▼
Detailed Steps ▼
Detailed Steps ▼
Detailed Steps ▼
Detailed Steps
Review Question(s)
Discovery
What might not want Protected for a Virtual
Network
Show solution
Discovery
What is the difference between live migration and storage migration?
Show solution
Module takeaways
Best Practice:
• Develop standard configurations before you implement highly available
51 of 53 3/12/2019, 1:29 PM
about:blank
Common Troubleshooting
A VM fails over to another node in the host Please see Student Companion Content for this course.
cluster, but loses all network connectivity.
Four hours after restarting a Hyper-V host Please see Student Companion Content for this course.
that is a member of a host cluster, there are
still no VMs running the host.
Review
Check
Discovery
Do you have to implement CSV to provide high availability for VMs in VMM in Windows
52 of 53 3/12/2019, 1:29 PM
about:blank
Server 2016?
Tools
Tools for implementing failover clustering with Hyper-V include:
• Failover
• Hyper-V
• VMM
53 of 53 3/12/2019, 1:29 PM