| Quick Links |
| netapp.com |
| Tech OnTap Archive |
| November 2009 (PDF) |
Top Five Hyper-V Best PracticesMicrosoft® Hyper-V™ virtualization technology has been shipping for more than a year. Tech OnTap profiled the use of Hyper-V with NetApp® technology in several past articles, including an overview article and a detailed case study of one customer’s experiences. NetApp has been involved with hundreds of Hyper-V deployments and has developed a detailed body of best practices for Hyper-V deployments on NetApp. Tech OnTap asked me to highlight the top five best practices for Hyper-V on NetApp, with special attention to the recently released Hyper-V Server 2008 R2.
You can find full details on these items and much more in NetApp Storage Best Practices for Microsoft Virtualization which has been updated to include Hyper-V R2. BP #1: Network Configuration in Hyper-V EnvironmentsThere are two important best practices to mention when it comes to network configuration:
Physical network adapters. Failure to configure enough network connections can make it appear as though you have a storage problem, particularly when using iSCSI. Smaller environments require a minimum of two or three network adapters, while larger environments require at least four or five. You may require far more. Here’s why:
The following tables will help you choose the right number of physical adapters. Table 1) Standalone Hyper-V servers.
Table 2) Clustered Hyper-V servers.
Table 3) Clustered Hyper-V servers using live migration.
Table 4) Clustered Hyper-V servers using live migration and CSV.
New network features. Windows Server® 2008 R2 supports a number of new networking features. NetApp recommends configuring these features on your Hyper-V servers and taking advantage of them whenever possible. Be aware that some or all of them may not be supported by your server and network hardware. (See sidebar for details.) BP #2: Selecting the Correct iGroup and LUN Protocol TypeWhen provisioning a NetApp LUN for use with Hyper-V, you must specify specific initiator groups (iGroups) and the correct LUN type. Incorrect settings can make deployment difficult and performance can suffer. Initiator groups. FCP and iSCSI storage must be masked so that the appropriate Hyper-V server and virtual machines (VMs) can connect to them. With NetApp storage, LUN masking is handled by iGroups.
It’s easier to manage iGroups by using NetApp SnapDrive®. SnapDrive cuts down on the confusion because it knows which OS you are using and automatically configures that setting for your iGroups. LUN types. The LUN Protocol Type setting determines the on-disk layout of the LUN. It is important to specify the correct LUN type to make sure that the LUN aligns properly with the file system it contains. (See the following tip for an explanation.) This issue is not unique to NetApp storage. Any storage vendor or host platform may exhibit this problem. Tip: The LUN type you specify depends on your OS, OS version, disk type, and Data ONTAP® version. For complete information on LUN types for different operating systems, refer to the Block Access Management Guide for your version of Data ONTAP. The following tables will help you choose the correct LUN type. Table 5) LUN types for use with Data ONTAP 7.3.1 and later.
Table 6) LUN types for use with Data ONTAP 7.2.5 through 7.3.0.
BP #3: Virtual Machine Disk AlignmentTip: This tip is closely tied to the previous one, since failure to follow the previous tip will result in misalignment. The problem of virtual machine disk alignment is not unique to Hyper-V, nor is it unique to NetApp storage. This problem exists in any virtual environment on any storage platform. This problem occurs because, by default, many guest operating systems, including Windows 2000 and 2003 and various Linux® distributions, start the first primary partition at sector (logical block) 63. This behavior leads to misaligned file systems because the partition does not begin at a block boundary. As a result, every time the virtual machine wants to read a block, two blocks have to be read from the underlying LUN, doubling the I/O burden.
Figure 1) Virtual disk misalignment. The situation becomes even more complicated when virtual machines are managed as files within the Hyper-V server’s file system, because it introduces another layer that must be properly aligned. This is why selecting the LUN type is so critical.
The best practices guide provides complete procedures for identifying and correcting alignment problems. BP #4: Using Cluster Shared VolumesCluster shared volumes are a completely new feature in Hyper-V R2. If you’re familiar with VMware®, you can think of a CSV as being somewhat akin to VMFS (although there are significant differences). A CSV is a “disk” that is connected to the Hyper-V parent partition and shared between multiple Hyper-V server nodes configured as part of a Windows failover cluster. A CSV can be created only from shared storage, such as a LUN provisioned on a NetApp storage system. All Hyper-V server nodes in the failover cluster must be connected to the shared storage system. CSVs have many advantages, including:
CSV Dynamic I/O Redirection allows storage and network I/O to be redirected within a failover cluster if a primary pathway is interrupted. The following recommendations apply specifically to the use of CSVs and are intended to minimize the impact of I/O redirection:
The best practices guide describes additional best practices that pertain specifically to backup and VM provisioning with CSVs. BP #5: NetApp Storage Software and ToolsNetApp provides a variety of storage software and tools that can simplify operations in a Hyper-V environment. With the release of Hyper-V R2, minimum requirements have changed for many software elements:
For the latest information on supported software versions, refer to the NetApp Interoperability Matrix. (You must have a NOW™ (NetApp on the Web) account to access this resource.) ConclusionIf you pay attention to the best practices I’ve outlined here, you can avoid most of the pitfalls of configuring your Hyper-V environment. For complete details on these procedures and much more, refer to the Hyper-V best practices guide and Hyper-V implementation guide. Got opinions about Hyper-V?Ask questions, exchange ideas, and share your thoughts online in NetApp Communities. |
|