Using Windows Server 2012 R2 with ONTAP
You can use the ONTAP SAN host configuration settings to configure Windows server 2012 R2 with ONTAP as the target.
Booting the OS
There are two options for booting the operating system: by using either local boot or SAN boot. For local booting, you install the OS on the local hard disk (SSD, SATA, RAID, and so on). For SAN booting, see instructions below.
SAN booting
If you opt to use SAN booting, it must be supported by your configuration. You can use the NetApp Interoperability Matrix Tool to verify that your OS, HBA, HBA firmware and the HBA boot BIOS, and ONTAP version are supported.
-
Map the SAN boot LUN to the host.
-
Verify that multiple paths are available.
Multiple paths only become available after the host OS is up and running on the paths. -
Enable SAN booting in the server BIOS for the ports to which the SAN boot LUN is mapped. For information on how to enable the HBA BIOS, see your vendor-specific documentation.
-
Reboot the host to verify the boot is successful.
You can use the configuration settings provided in this document to configure cloud clients connected to Cloud Volumes ONTAP and Amazon FSx for ONTAP. |
Install Windows hotfixes
NetApp recommends that the latest cumulative update is installed on the server.
Go to the Microsoft Update Catalog 2012 R2 website to obtain and install the required Windows hotfixes for your version of Windows. |
-
Download hotfixes from the Microsoft support site.
Some hotfixes are not available for direct download. In these cases, you will need to request a given hotfix from Microsoft support personnel. |
-
Follow the instructions provided by Microsoft to install the hotfixes.
Many hotfixes require a reboot of your Windows host, but you can opt to wait to reboot the host until after you install or upgrade the Host Utilities. |
Install the Windows Unified Host Utilities
The Windows Unified Host Utilities (WUHU) are a set of software programs with documentation that enables you to connect host computers to virtual disks (LUNs) on a NetApp SAN. NetApp recommends downloading and installation of the latest utility kit. For WUHU configuration information and instructions, refer to the Windows Unified Host Utilities documentation and select the installation procedure for your Windows Unified Host Utilities version.
Multipathing
You must install MPIO software and have multipathing set up if your Windows host has more than one path to the storage system. Without MPIO software, the operating system might see each path as a separate disk, which can lead to data corruption. The MPIO software presents a single disk to the operating system for all paths, and a device-specific module (DSM) manages path failover.
On a Windows system, the two main components to any MPIO solution are a DSM and the Windows MPIO. MPIO is not supported for Windows XP or Windows Vista running in a Hyper- V virtual machine.
When you select MPIO support, the Windows Unified Host Utilities enables the included MPIO feature of Windows Server 2012 R2. |
SAN configuration
Non-ASA configuration
For non-ASA configuration there should be two groups of paths with different priorities.
The paths with higher priorities are Active/Optimized, meaning they are serviced by the controller where the aggregate is located.
The paths with lower priorities are active but are non-optimized because they are served from a different controller.
The non-optimized paths are only used when optimized paths are not available. |
The following example displays the correct output for an ONTAP LUN with two active/optimized paths and two active/non-optimized paths.
All SAN array configuration
For All SAN Array (ASA) configuration, there should be one group of paths with single priorities. All paths are active/optimized; that is, they are serviced by the controller and that the I/O is sent on all the active paths.
A single LUN shouldn't require more than four paths. Having more than four paths might cause path issues during storage failures. |
Hyper-V VHD requires alignment for best performance
If the data block boundaries of a disk partition do not align with the block boundaries of the underlying LUN, the storage system often has to complete two block reads or writes for every operating system block read or write. The additional block reads and writes caused by the misalignment might create serious performance problems.
Misalignment is caused by the location of the starting sector for each partition defined by the master boot record.
Partitions created by Windows Server 2016 should be aligned by default. |
Use the Get-NaVirtualDiskAlignment
cmdlet in the ONTAP PowerShell Toolkit to check whether partitions are aligned with underlying LUNs. If the partitions are incorrectly aligned, use the Repair-NaVirtualDiskAlignment
cmdlet to create a new VHD file with the correct alignment. This cmdlet copies all of the partitions to the new file. The original VHD file is not modified or deleted. The virtual machine must be shut down while the data is copied.
You can download the ONTAP PowerShell Toolkit at NetApp Communities. You must unzip the DataONTAP.zip
file into the location specified by the environment variable %PSModulePath%
(or use the Install.ps1
script to do it for you). Once you have completed the installation, use the Show-NaHelp
cmdlet to get help for the cmdlets.
The PowerShell Toolkit supports only fixed-size VHD files with MBR-type partitions. VHDs using Windows dynamic disks or GPT partitions are not supported. In addition, the PowerShell Toolkit requires a minimum partition size of 4 GB. Smaller partitions cannot be correctly aligned.
For Linux virtual machines using the GRUB boot loader on a VHD, you need to update the boot configuration after running the PowerShell Toolkit. |
Reinstall GRUB for Linux guests after correcting MBR alignment with PowerShell Toolkit
After running mbralign
on disks for correcting MBR alignment with PowerShell Toolkit on Linux guest operating systems using the GRUB boot loader, you must reinstall GRUB to ensure that the guest operating system boots correctly.
The PowerShell Toolkit cmdlet has completed on the VHD file for the virtual machine. This topic applies only to Linux guest operating systems using the GRUB boot loader and SystemRescueCd
.
-
Mount the ISO image of Disk 1 of the installation CDs for the correct version of Linux for the virtual machine.
-
Open the console for the virtual machine in Hyper-V Manager.
-
If the VM is running and hung at the GRUB screen, click in the display area to make sure it is active, then click the Ctrl-Alt-Delete toolbar icon to reboot the VM. If the VM is not running, start it, and then immediately click in the display area to make sure it is active.
-
As soon as you see the VMware BIOS splash screen, press the Esc key once. The boot menu displays.
-
At the boot menu, select CD-ROM.
-
At the Linux boot screen, enter:
linux rescue
-
Take the defaults for Anaconda (the blue/red configuration screens). Networking is optional.
-
Launch GRUB by entering:
grub
-
If there is only one virtual disk in this VM, or if there are multiple disks, but the first is the boot disk, run the following GRUB commands:
root (hd0,0) setup (hd0) quit
If you have multiple virtual disks in the VM, and the boot disk is not the first disk, or you are fixing GRUB by booting from the misaligned backup VHD, enter the following command to identify the boot disk:
find /boot/grub/stage1
Then run the following commands:
root (boot_disk,0) setup (boot_disk) quit
Note that boot_disk , above, is a placeholder for the actual disk identifier of the boot disk.
|
-
Press Ctrl-D to log out.
Linux rescue shuts down and then reboots.
Recommended settings
On systems using FC, the following timeout values for Emulex and QLogic FC HBAs are required when MPIO is selected.
For Emulex Fibre Channel HBAs:
Property type | Property value |
---|---|
LinkTimeOut |
1 |
NodeTimeOut |
10 |
For QLogic Fibre Channel HBAs:
Property type | Property value |
---|---|
LinkDownTimeOut |
1 |
PortDownRetryCount |
10 |
Windows Unified Host Utility will set these values. For detailed recommended settings, refer to the Windows Host Utilities documentation and select the installation procedure for your Windows Unified Host Utilities version. |
Known issues
There are no known issues for the Windows Server 2012 R2 with ONTAP release.