Microsoft MPIO Best Practices
Microsoft MPIO Best Practices
© 2013 Dell Inc. All rights reserved. Reproduction of this material in any manner whatsoever
without the express written permission of Dell Inc. is strictly forbidden. For more information,
contact Dell.
Dell, the DELL logo, and the DELL badge are trademarks of Dell Inc. Microsoft® and Windows® are
either trademarks or registered trademarks of Microsoft Corporation in the United States and/or
other countries. Other trademarks and trade names may be used in this document to refer to either
the entities claiming the marks and names or their products. Dell disclaims any proprietary interest in
the marks and names of others.
ii
Table of Contents
1 Preface ................................................................................................................................................. 2
1.1 Audience ..................................................................................................................................... 2
1.2 Purpose........................................................................................................................................ 2
1.3 Customer Support ..................................................................................................................... 2
2 Introduction......................................................................................................................................... 3
2.1 Introduction to Microsoft Multipath IO (MPIO) ................................................................... 3
2.2 Dell Compellent Storage Center Connections ....................................................................4
2.2.1 Legacy Ports ...........................................................................................................................4
2.2.2 Virtual Ports............................................................................................................................. 5
2.2.3 Conclusion .............................................................................................................................. 5
3 Configuring Servers ...........................................................................................................................6
3.1.1 Fibre Channel .........................................................................................................................6
3.1.2 iSCSI .........................................................................................................................................6
3.2 Automatic Configuration ......................................................................................................... 7
3.3 Manual Configuration ...............................................................................................................8
3.4 Verifying Connectivity............................................................................................................... 9
3.5 Choose the IO Transport ....................................................................................................... 11
4 MPIO for Windows Server 2003 .................................................................................................... 12
4.1 Dell Compellent Multipath Manager .................................................................................... 12
4.2 Configuration ........................................................................................................................... 13
4.3 Choosing a Failover Policy..................................................................................................... 14
4.4 iSCSI Multipath Options.......................................................................................................... 15
4.4.1 Installing the Microsoft iSCSI DSM ................................................................................... 15
4.5 Configuring the iSCSI Initiator............................................................................................... 16
4.6 Configuring Microsoft iSCSI DSM ......................................................................................... 19
5 Using MPIO on Windows Server 2008 and 2008 R2 ................................................................ 21
5.1 Installing the Microsoft MPIO DSM ..................................................................................... 22
5.1.1 Server Manager GUI ........................................................................................................... 22
5.1.2 Server Manager CLI (2008 and 2008 R2 only) .............................................................. 22
5.1.3 To install MPIO on Server Core: ...................................................................................... 22
iii
5.2 Associating Dell Compellent Volumes with the DSM .......................................................23
5.3 Setting the Default Load Balance Policy ............................................................................ 24
5.3.1 Windows Server 2008 default load balance policy ...................................................... 24
5.3.2 Windows Server 2008 R2 Default Load Balance Policy .............................................. 24
5.4 Per-volume Load Balance Settings ......................................................................................25
5.4.1 Using MPCLAIM in 2008 R2 and Server 2012 ............................................................... 26
6 MPIO for Windows Server 2012..................................................................................................... 27
6.1 Install the Microsoft MPIO Feature....................................................................................... 27
6.1.1 Server Manager GUI ............................................................................................................ 27
6.1.2 Enable MPIO with PowerShell .......................................................................................... 29
6.2 Associate Dell Compellent Volumes with the In-box DSM ............................................ 30
6.2.1 Using the MPIO Control Panel ......................................................................................... 30
6.2.2 Using PowerShell .................................................................................................................32
6.3 Set the Default Load-balancing Policy ................................................................................33
6.4 Per-volume Load Balance Settings ..................................................................................... 34
6.4.1 Using the Disk Management GUI: ................................................................................... 34
6.4.2 Using PowerShell .................................................................................................................35
7 Configure a Windows 2008 R2/2012 Server for iSCSI MPIO ................................................... 37
7.1 iSCSI Overview ......................................................................................................................... 37
7.2 Configuring a Windows 2008 R2/2012 Server for iSCSI MPIO ...................................... 38
8 Additional Resources ...................................................................................................................... 42
9 Appendix A: Windows Server MPIO Configuration Recommendations for Dell Compellent
Storage Center ........................................................................................................................................ 44
iv
Document Revisions
Date Revision Author Comments
10/15/2012 1.3 Kris Piepho Updated to include Windows Server 2012 content
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 1
1 Preface
1.1 Audience
The audience for this document is system administrators who are responsible for the setup
and maintenance of Windows servers and associated storage. Readers should have a working
knowledge of Windows and the Dell Compellent Storage Center.
1.2 Purpose
This document provides an overview of MPIO and introduces best practice guidelines for
configuring MPIO on Windows server 2003, 2008, 2008 R2, and 2012 when using the Dell
Compellent Storage Center. For installation procedures, download the MPIO Users Guide
from http://knowledgecenter.compellent.com.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 2
2 Introduction
2.1 Introduction to Microsoft Multipath IO (MPIO)
Microsoft Multipath I/O (MPIO) is a framework that allows administrators to configure load
balancing and failover processes for Fibre Channel and iSCSI connected storage devices.
Load Balancing can be configured to use up to 32 independent paths from the connected
storage devices
Although Dell Compellent Storage Centers provide redundancy and failover with multiple
controllers and RAID, servers still need a way to spread the IO load and handle internal
failover from one path to the next. This is where MPIO plays an important role. Without
MPIO, servers see multiple instances of the same disk device in Disk Management.
The MPIO framework uses Device Specific Modules (DSM) to allow path configuration.
Currently there are two options available
Microsoft provides a built-in generic Microsoft DSM (MSDSM) for Windows
Server 2008 and above. For Windows Server 2008 and above, use the MSDSM;
it provides adequate functionality for Dell Compellent customers.
Dell Compellent provides a DSM for Windows Server 2003 only.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 3
2.2 Dell Compellent Storage Center Connections
Before reviewing server-specific MPIO functions, understand various connection options are
available with the Dell Compellent Storage Center that allow multiple paths to be presented
to the servers. The following section provides a quick overview and explains the differences
between legacy port mode and virtual port mode. This overview does not take the place of
the Storage Center Connectivity Guide available on http://kc.compellent.com
Figure 1 shows four fault domains to the CT-SC040. Each fault domain has a primary and
reserved port. For redundancy, a primary port connects to one controller; the reserved port
in that fault domain connects to the other controller. While this is a highly robust failover
solution, it requires a large number of ports. For this reason, Dell Compellent implemented
virtual ports.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 4
2.2.2 Virtual Ports
Dell Compellent introduced virtual port mode with Storage Center 5.0. Virtual ports allow all
front-end IO ports to be virtualized. All front-end IO ports can be used at the same time for
load balancing as well as failover to another port. Virtual ports are available for Fibre Channel
connections only, iSCSI connections only, or both Fibre Channel and iSCSI.
Fibre Channel
To use virtual ports for Fibre Channel, all Fibre Channel switches and HBAs must support
NPIV (N_Port ID Virtualization).
Figure 2 shows a virtual port configuration. All ports of one transport type (Fibre Channel or
iSCSI) are in the same fault domain. All ports are active. If one port fails, the load is distributed
between the remaining ports. Failover is just as robust as shown in Figure 1, with half the
ports.
iSCSI
iSCSI follows the same wiring and port setup as Fibre Channel with the exception of the
control port. iSCSI uses a control port configured for each of the fault domains. Servers
connect to the control port, which then redirects traffic to the appropriate virtual port. When
configuring MPIO, this looks slightly different than with the legacy mode configuration
because only the control port in the iSCSI Initiator software needs to be assigned. These
differences are covered below in the OS-specific sections of this document.
2.2.3 Conclusion
There are two methods to enable multiple paths from the Dell Compellent Storage Center:
legacy port mode and virtual port mode. Virtual ports are preferred because they reduce the
number of HBAs required and thus reduce cost and overhead. Note that virtual ports are
enabled based on protocol: virtual ports can be enabled on Fibre Channel only, iSCSI only, or
both.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 5
3 Configuring Servers
Before configuring MPIO at the operating system level, first configure servers using the Dell
Compellent System Manager. The following example assumes a server has two or more Fibre
Channel or iSCSI IO ports that are zoned/VLAN to see the Storage Center HBAs. With Fibre
Channel, the process is the same for virtual ports as for legacy ports. However, with legacy
ports, the server cannot see reserve ports. iSCSI virtual ports connect only to a control port
on the Storage Center.
3.1.2 iSCSI
As with Fibre Channel, an iSCSI server can be created automatically or manually. For
automatic configuration, enter the IP address of the Storage Center controller HBA ports in
the server iSCSI HBA or Initiator Software. Use either the HBA BIOS or the Software Initiator
configuration wizard. In virtual port mode, enter the IP address of the control port. In legacy
port mode, enter the IP address of the primary port. This is covered in more detail in the OS
specific sections below. However, creating a server in the Storage Center is the same on all
operating systems.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 6
3.2 Automatic Configuration
Once a server has scanned for devices or logged into the target, Storage Center
automatically recognizes the WWN/IQN. To configure a server:
1. Login to the Dell Compellent System Manager.
2. In the tree view, right-click on Servers.
3. From the shortcut menu, select Create Server.
4. Select the appropriate HBAs and continue the wizard. If the HBA does not
appear, refer to Section 3.3 Manual Configuration.
Note: If the WWN or IQN is not listed, make sure that the Only Show Up Connections box is
unchecked.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 7
3.3 Manual Configuration
To manually configure an HBA:
1. In the Create Server wizard shown in Figure 3, click Manually Define HBA.
2. In the Select Transport Type window, choose Fibre Channel or iSCSI.
3. Enter the WWN or iSCSI name. Click Continue. Repeat for every WWN or iSCSI
HBA to be associated with the server.
4. Once HBAs are added, check the appropriate HBA and continue the wizard.
Note: The new HBA appears with a white X in a red circle. Once the server is connected the
warning state is removed.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 8
3.4 Verifying Connectivity
To verify that the connectivity is correct:
1. In the tree view, select a server.
2. Click on Connectivity. This window shows all paths available to the server
based on the HBA and controller ports.
The connectivity tab displays HBAs and controller ports the server can see.
For Fibre Channel there are four possible paths: two HBAs see two Storage
Center ports.
However for iSCSI there are a total of six connections: two separate IP
addresses going to three Storage Center ports. If MPIO is not installed and the
volume is mapped using the default mapping method, the server has visibility
to a total of 10 paths to a volume.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 9
In Storage Center, a volume is mapped to all available paths unless the advanced mapping
button is used to restrict mapping paths to FC only, iSCSI only, or specified HBA ports and
controller ports. To restrict mapping paths:
1. In the tree view, right-click on a volume.
2. From the shortcut menu, select Map Volume to Server. The Map Volume to
Server window appears.
3. Select a server and click Continue. The Map Volume window appears.
4. Click Advanced.
5. Check Only map using specified server ports.
6. Select one of the following:
a. Limit ports by transport type. Select a transport from the drop-down
menu.
-or-
b. Map using specific server ports. Check the specific server ports.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 10
Assuming the default mapping wizard is used and paths are not restricted, a volume is
mapped to all available paths, creating multiple IO paths from the server to the volume. To
view the mapped paths:
1. In the tree view, select a volume.
2. Click on the Mapping tab.
Figure 7 shows that MPIO Volume 1 was mapped to the server with four FC ports and two
iSCSI ports.
The remainder of this document focuses on specific MPIO configuration options available
from:
Windows Server 2003 Dell Compellent provided DSM
Windows Server 2008 and above MSDSM
Microsoft iSCSI DSM.
It is assumed that there are multiple front-end controller paths to the servers and that the
servers have multiple connections to the controller.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 11
4 MPIO for Windows Server 2003
Windows Server 2003 offers two methods for handling MPIO:
Storage Center ISV-provided DSM
Microsoft iSCSI DSM
These two methods cannot be used concurrently in the Windows 2003 platform. This
chapter describes each of these options and provides guidance on how to configure MPIO
with both the Storage Center DSM and the Microsoft DSM.
Once the Dell Compellent DSM has been installed, configure the load balance policies for
the volumes attached to the server. The default load balance policy for the Dell Compellent
DSM is failover-only. However, this can be changed to round robin or round robin subset.
Failover only: Only one path is active. IO fails over to the next available
standby path only when the active path fails. The new active path remains
active until another failover occurs. By default, the first discovered path is the
active path. You can configure the failover only policy to behave as failback by
setting the active path and enabling the preferred path option. For failback, the
system fails back to the original active path when it becomes available after a
failover.
Round robin: All paths are active and IO is distributed across all paths.
Round robin subset. Allows multiple active and standby paths and IO is
distributed across all active paths. Standby paths are used only when all active
paths fail. You can configure the round robin subset policy to behave as
failback by explicitly setting one or more active paths. For failback, the system
fails back to the original active path when it becomes available after a failover.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 12
4.2 Configuration
To configure the default load balance policy or to change the active configuration of the
DSM, open the Dell Compellent Multipath Manager Configuration wizard from the Program
Files menu. Below is a brief overview of how to change the policies.
To change the default load balance policy for all future volumes attached to the system:
1. Click Set Default Policy at the top of the screen.
2. In the Policy field, select a policy for the environment.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 13
To change the policy for a given device:
1. Click on the device.
2. From the drop down menu, set the load balance policy.
Note: If moving to a round robin policy, notice that the device paths do not change from
standby to active until the settings are applied and the wizard is restarted or refreshed.
As mentioned previously in failover only mode, the server uses only one path at a time. While
this ensures redundancy, it may not provide adequate bandwidth for certain workloads. Also,
any IO ports in standby mode are sitting idle until a failover occurs, resulting in underutilized
resources in a data center.
Round robin, on the other hand, provides a means for IO to traverse all available paths while
still providing a level of redundancy. If one path fails, the system uses the remaining paths to
complete the request.
Round robin subset is a mix of both of the above policies and provides greater granularity for
managing when and where IO travels. With round robin subset, a set of ports can be grouped
to provide the benefits of round robin performance and provide a means for failover and
failback with an alternate path or group of paths. Round robin subset is most commonly
used when utilizing both FC and iSCSI transports for the same volume.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 14
4.4 iSCSI Multipath Options
As mentioned previously, the Dell Compellent Multipath Manager handles both FC and iSCSI
connections. In the Dell Compellent Configuration window, the transport for each
connection can be viewed and configured for each volume.
However, if the built-in Microsoft iSCSI DSM is installed, the Dell Compellent Multipath
Manager software must be uninstalled. Typically this is done for a server with volumes
connected only via the iSCSI transport. Otherwise there is no way to control the Fibre
Channel MPIO functionality. If the server has both transports in Windows Server 2003, the
best practice is to use the Dell Compellent DSM and not install the Microsoft iSCSI DSM.
Once installed, all iSCSI volume MPIO characteristics are controlled by the MS iSCSI DSM.
Before jumping into MPIO configuration with iSCSI it is important to understand how to
connect and configure the iSCSI initiator.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 15
4.5 Configuring the iSCSI Initiator
When using the MS DSM or the Dell Compellent DSM for iSCSI, the server must first be
configured to communicate with the Dell Compellent iSCSI front-end ports. This section
describes how to configure the iSCSI Initiator and make this connection. It assumes that the
initiator software is installed, the server has been rebooted, and the Dell Compellent Storage
Center has two or more iSCSI front-end ports. In the following examples, the server is
configured with two NIC cards, each used to communicate with the iSCSI network. To
configure the connection to the Dell Compellent Storage Center:
1. Open the iSCSI Initiator.
2. Click on the Discovery tab. The Discovery tab contains two sections: Target
Portals and iSNS Servers. Dell Compellent front-end ports are added as Target
Portals.
3. Click on Add. If you are using virtual port mode, enter the IP address of the
control port. If you are using legacy port mode, enter the first primary port IP
address. Do not enter reserve ports. Continue until all front-end ports have
been added.
4. Click on the Targets tab. In this example there are two targets. For MPIO to
function correctly, each of the NIC cards must be logged in to each target,
thus providing multiple connections to that specific target.
5. Select the first target and click Log On.
6. Check Automatically Restore to reconnect after a reboot.
7. Check Enable multi-path.
8. Click on Advanced.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 16
The advanced options window is where each NIC card is selected to connect to the target.
This log-on sequence must be done for each IP address that communicates with the front-
end port. In this example, it entered two times for each target. Follow the steps below to
make a connection for each.
9. Select Microsoft iSCSI Initiator from the Local adapter drop-down box.
10. Select the first IP address from the Source IP.
11. Select the Target Portal.
12. Select the necessary checkboxes for Data Digest and Header Digest.
13. Enter any Chap login information and click OK.
14. Select the same target and click Log On again.
15. Repeat steps 3-11 for each Source IP and each additional target.
In this example, there are two targets and two source IP addresses. Each IP address is logged
in to each target, creating four separate connections to the controller.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 17
To verify:
1. Open the Dell Compellent System Manager. Create a server (if it hasn't already
been created).
2. Click on the server in the tree view.
3. Click on the Connectivity tab. The connectivity window shows the IQN of the
server and associated controller ports (target IP addresses) that the server can
see.
As can be seen in Figure 14, the two Dell Compellent ports see each of the server IP
addresses as being connected (10.5.25.33 and 10.5.25.40).
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 18
4.6 Configuring Microsoft iSCSI DSM
At this point the server and the Dell Compellent Storage Center are connected and the
connectivity has been verified. The next step is to use the Microsoft iSCSI DSM to configure
the default load balance policy for any new volumes that are mapped to the server.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 19
To configure the MPIO policy for pre-existing volumes:
1. Open the iSCSI Initiator. Click on Targets.
2. Select each of the targets.
3. Click Details.
4. Click Devices.
5. For each device, click Advanced. The Advanced window appears.
6. Click MPIO.
7. Select the appropriate policy for each volume.
8. Click Apply.
The Microsoft iSCSI DSM offers three additional policies that are not provided by the Dell
Compellent DSM.
Least Queue Depth: The DSM routes IO to the path with the least number of
outstanding requests.
Weighted Paths: A weight is assigned to each path. The weight indicates the
relative priority of a given path. The larger the number, the lower the priority.
The DSM chooses the path with the least weight.
Least Blocks: The DSM routes requests to the processing path with the least
number of pending IO blocks.
In conclusion, there are two methods for handling MPIO in the Windows Server 2003
operating system. If multiple protocols are in use on the server, the Dell Compellent
Multipath Manager Software must be used. However if iSCSI is the only transport, the
Microsoft iSCSI DSM is a valid choice.
Note: Remember that both DSMs cannot be used on the same server as this will cause issues
with the MPIO stack.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 20
5 Using MPIO on Windows Server 2008 and
2008 R2
Windows Server 2008 and 2008 R2 have a built-in Microsoft DSM out of the box that
manages all aspects of failover and load balancing. Dell Compellent uses this DSM because it
provides all required functionality for our customers. This also simplifies implementation, as it
eliminates the need to install and maintain another piece of software in the environment. The
built-in DSM for Windows Server 2008 and above can manage both iSCSI and FC volumes.
The process for mapping volumes and creating servers is identical to the 2003 section
described above under Configuring Servers so it will not be covered here. The remaining
sections cover Windows Server 2008 and 2008 R2 configuration options.
Note: Please refer to Appendix A in this document for important Windows Server 2008 / R2
MPIO configuration recommendations.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 21
5.1 Installing the Microsoft MPIO DSM
For Windows 2008 and above, the process of installing and configuring the Microsoft MPIO
DSM has been streamlined. A new configuration tool, the Server Manager, provides a single
interface for installing server features and roles. To access Server Manager click on Start
Administrative Tools Server Manager or click on the icon in the toolbar. There are
currently two available options for installing the DSM: the Server Manager GUI or the
servermanagercmd command line interface (CLI).
For a Window Server 2008 R2 Core installation, at the command prompt, type:
Note: For server core installations, the above commands are case sensitive and must be run
before the MPCLAIM command can be used.
At this point, the Microsoft MPIO DSM has been installed but not configured. Dell
Compellent volumes must be associated with the DSM so that it can manage MPIO
characteristics. The Microsoft DSM manages all Fibre Channel and iSCSI volumes presented
by the Dell Compellent Storage Center. You can choose either or both of these transports.
The built-in iSCSI initiator or an iSCSI HBA can also be used: management of the iSCSI
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 22
Multipath IO is the same.
The iSCSI initiator provides all necessary performance and stability. However, if using an HBA,
it is still supported and available from Dell Compellent.
Note: If COMPELNTCompellent Vol does not appear, rescan disk devices in Disk
Management. Click on COMPELNTCompellent Vol and then click on Add. This can take a
minute. When Disk Management prompts to reboot the server, accept the prompt and allow
the server to reboot. This reboot is required to set up the association between the volumes
and the DSM.
Another option for providing associations is the MPCLAIM CLI command. Open a command
prompt with elevated (administrator) privilages and type the following:
This command provides the same result as the Control Panel option. It associates a Dell
Compellent volume and then restarts the server. To bypass the reboot option (if rebooting
later is desired), use the -n option rather than the -r option.
Once the server reboots, use Disk Management to verify that the configuration is correct.
There should only be one instance of each SAN volume listed in Disk Management.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 23
5.3 Setting the Default Load Balance Policy
Once volumes are associated, specify the default load balance policy and change any
existing volumes to use the new policy. There are some slight differences between Windows
2008 and Windows 2008 R2.
The same procedure is used to change the policy on a per-volume basis with both Windows
2008 and Windows 2008 R2.
To change the default load balance policy in Server 2008 R2 and 2012, use the MPCLAIM CLI
command as follows:
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 24
For example, to change all Dell Compellent volumes to a failover only policy, use the
following command:
3. Right-click on the disk number in the disk column for the disk. Select
Properties.
4. Select the MPIO tab.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 25
Figure 19: MPIO Settings Tab
5. From the drop-down box, select the appropriate MPIO policy for the volume.
Refer to page 24 for a listing of the available policies and their intended functions.
List of all MPIO volumes on the system with the following mpclaim command:
mpclaim.exe -s –d
Figure 20 shows that the current policy for Disk 0 is RR (round robin). Use the mpclaim.exe
command to change the policy for this disk.
mpclaim.exe -L -M 1 -d 0
Refer to the Microsoft TechNet site for the full MPCLAIM reference guide.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 26
6 MPIO for Windows Server 2012
MPIO for Windows Server 2012 functions the same way as for 2008 R2. However, Server
2012 introduces the MPIO module in PowerShell. The MPIO module is a powerful alternative
to using the MPCLAIM command. Although the MPCLAIM command is included in Server
2012, Microsoft recommends using the MPIO module in PowerShell. This chapter will focus
on using the GUI and PowerShell to install and configure MPIO.
Note: On Server Core installations, please follow the instructions for PowerShell. PowerShell
can be accessed on a Server Core installation by typing powershell <enter> at the command
prompt.
Also new to Server 2012 is the ability to use heterogeneous HBA types with MPIO. In
previous versions of Windows Server, it was a requirement to use HBAs of the same model.
Like Windows Server 2008 and 2008 R2, Windows Server 2012 contains a built-in Microsoft
DSM out of the box that manages all aspects of failover and load balancing.
Note: Please refer to Appendix A in this document for important Windows Server 2012 MPIO
configuration recommendations.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 27
2. From the Dashboard, click on Add roles and features.
3. When the Add Roles and Features Wizard window opens, click Next on the Before
you Begin screen.
4. Select Role-based or feature-based installation and click Next.
5. Choose the local server from the Select destination server screen and click Next.
6. Click Next on the Select server roles screen (do not select any roles to install).
7. Check Multipath I/O.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 28
Figure 24: Select Multipath I/O
8. Click Next.
9. Check the box to Restart the destination server automatically if required.
10. Click Install.
11. Click Close when finished.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 29
6.2 Associate Dell Compellent Volumes with the In-box DSM
Now that the DSM has been installed, Dell Compellent volumes must be associated with the
DSM so that the DSM can manage MPIO characteristics. On Windows Server 2012, Dell
Compellent volumes can be associated with the DSM through the use of either the MPIO
Control Panel, or through PowerShell.
Note: Once the DSM is associated with Dell Compellent volumes, Windows will
automatically claim all Fibre Channel and iSCSI volumes presented from Storage Center and
apply default MPIO settings to those volumes.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 30
Figure 27: Discover Multi-Paths
6. Once the server has rebooted, open up the MPIO Control Panel and verify that
COMPELNTCompellent Vol is listed under Devices on the MPIO Devices tab.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 31
Figure 29: MPIO Device Listing
3. Now that Dell Compellent is supported through the Microsoft DSM, the next step is to
claim all available Dell Compellent volumes to be used by MPIO. To do so, type in the
following:
Update-MPIOClaimedHW –Confirm:$false
To change the default load balancing policy to failover only, open a PowerShell window with
elevated (administrator) privileges,and type in the following command:
To change the default load balancing back to round robin, type in the following command:
To verify the default load balance policy, type in the following command:
Get-MSDSMGlobalDefaultLoad BalancePolicy
If the default policy is set to round robin, the result will return “RR”:
If the default policy is set to the Failover Only, the result will return “FOO”:
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 33
6.4 Per-volume Load Balance Settings
Changing load balance settings on specific volumes can be done through the Disk
Management GUI, or from PowerShell.
Note: The load balancing policy cannot be changed from round robin to failover only using
the MPCLAIM command. MPCLAIM only supports switching from Failover Only to Round
Robin.
To change the default load balancing policy on a single volume, open a command prompt or
PowerShell window with elevated (administrator) privileges (commands will work in both):
To list all MPIO volumes on the system, type in the following command:
mpclaim –s -d
Figure 38 shows that the load balancing policy (LB Policy) is set to RR (round robin) for all 3
volumes.
The syntax to change the load balancing policy on a specific volume is as follows:
Please refer to the table on page 24 for load balancing policies and the associated numbers
for the mpclaim command.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 35
Table 2: Windows Server 2012 Load Balance Policy
For example, to change the load balancing policy of MPIO disk 2 to round robin, type in the
following command:
Mpclaim –l –d 2 2 <enter>
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 36
7 Configure a Windows 2008 R2/2012 Server
for iSCSI MPIO
7.1 iSCSI Overview
Windows 2008 R2 and 2012 servers support MPIO with the iSCSI software initiator. iSCSI
initiator software is provided natively by the Windows Server OS.
The iSCSI “quick connect” feature works well for single iSCSI path connectivity. Configuring
iSCSI to use MPIO requires a few more steps, but is still easy to configure.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 37
7.2 Configuring a Windows 2008 R2/2012 Server for iSCSI
MPIO
Environment overview (refer to Figure 41):
Windows 2008 R2 or 2012 server.
Two dedicated NIC ports (one for each fault domain) on the server for iSCSI
communications.
A Dell Compellent Storage Center with dual controllers configured with virtual front-
end iSCSI ports and two virtual fault domains.
The MPIO feature is installed on the server.
Note: If receiving a prompt to start the iSCSI service (for either Server 2008 R2 or Server
2012), click on Yes.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 38
3) Select the Discovery tab then click the Discovery Portal button.
4) Enter the IP address of the first iSCSI target IP, in this example, the virtual iSCSI IP
addressed associated with the first virtual fault domain on the Dell Compellent
Storage Center (see Figure 41), and then click on the Advanced Button.
5) From the Local adapter drop-down list, select Microsoft iSCSI Initiator.
6) From the Initiator IP drop-down list, select the local IP address of the server’s NIC
that is to be associated with the first fault domain (fault domain 100) which in this
example is 10.10.95.101.
Figure 46. Both Sets of Target and Initiator IPs Are Now Listed
10) When completed, both pairs of iSCSI initiators and targets should be listed as shown
in Figure 46.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 40
Figure 47. Activate Targets and Enable Multipath
11) Select the Targets Tab. This should be populated with the discovered iSCSI target
ports on the Dell Compellent Storage Center.
12) Highlight the first target by clicking on it, and then click on the Connect button.
13) On the Connect To Target screen, verify that both Add this connection to the list of
Favorite Targets and Enable multi-path are checked.
14) Click on the Advanced button.
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 41
16) Select the Target portal IP from the dropdown list.
17) Select the Initiator IP from the dropdown list.
18) Then click OK, and then OK again to return to the iSCSI Initiator properties window.
19) Repeat steps 12 - 18 above for each additional target listed.
20) When finished, all the targets should show as Connected as shown in Figure 49.
21) Click on OK to exit the iSCSI Initiator Properties window.
8 Additional Resources
Dell Compellent Documentation
Windows Server 2012 Best Practices
http://kc.compellent.com
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 42
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 43
9 Appendix A: Windows Server MPIO
Configuration Recommendations for Dell
Compellent Storage Center
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 44
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 45
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 46
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 47
May 2013 (version 1.4) Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 48