Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Best Practices
Page 2
Document revision
Date 10/11/2010 10/21/2011 11/29/2011 Revision A B C Comments Initial Draft Corrected Errors Additional content on Server Core
THIS BEST PRACTICES GUIDE IS FOR INFORMATIONAL PURPOSES ONLY, AND MAY CONTAIN TYPOGRAPHICAL ERRORS AND TECHNICAL INACCURACIES. THE CONTENT IS PROVIDED AS IS, WITHOUT EXPRESS OR IMPLIED WARRANTIES OF ANY KIND. 2011 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, the DELL badge, and Compellent are trademarks of Dell Inc. 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 Inc. disclaims any proprietary interest in trademarks and trade names other than its own.
Page 3
Contents
Document revision ................................................................................................. 3 Contents .................................................................................................................. 4 General syntax ..................................................................................................... 6 Conventions ......................................................................................................... 6 Preface ................................................................................................................... 7 Audience ............................................................................................................ 7 Purpose .............................................................................................................. 7 Customer support .................................................................................................. 7 Introduction ............................................................................................................. 8 Introduction to Microsoft Multipath IO (MPIO) ................................................................ 8 Dell Compellent Storage Center connections ................................................................. 9 Legacy ports ................................................................................................... 9 Virtual ports ................................................................................................. 10 Conclusion.................................................................................................... 10 Configuring servers ................................................................................................... 11 Fibre Channel ............................................................................................... 11 iSCSI ........................................................................................................... 11 Automatic configuration ........................................................................................ 12 Manual configuration ............................................................................................ 13 Verifying connectivity ........................................................................................... 14 Choosing the IO transport ...................................................................................... 16 Using MPIO on Windows Server 2003 .............................................................................. 17 Dell Compellent Multipath Manager .......................................................................... 17 Configuration ..................................................................................................... 18 Which policy should you choose? .............................................................................. 19 iSCSI multipath options ......................................................................................... 20 Installing the Microsoft iSCSI DSM ....................................................................... 20 Configuring the iSCSI Initiator ................................................................................. 21 Configuring Microsoft iSCSI DSM ............................................................................... 24 Using MPIO on Windows Server 2008 and 2008 R2 .............................................................. 26 Installing the Microsoft MPIO DSM ............................................................................ 27 Server Manager GUI ........................................................................................ 27 Server Manager CLI ......................................................................................... 27 Page 4
Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices To install MPIO on server core: .......................................................................... 27 Associating Dell Compellent volumes with the DSM ....................................................... 28 Setting the default load balance policy ..................................................................... 29 Windows Server 2008 default load balance policy ................................................... 29 Windows Server 2008 R2 default load balance policy................................................ 29 Per-volume load balance settings ............................................................................. 30 Using MPCLAIM in 2008 R2 ................................................................................ 31 Conclusion ............................................................................................................. 32
Tables
Table 1. Table 2. Document syntax ............................................................................................. 6 Windows 2008 R2 Load Balance Policy ................................................................. 29
Figures
Figure 1. Figure 2. Figure 3. Figure 4. Figure 5. Figure 6. Figure 7. Figure 8. Figure 9. Figure 10. Figure 11. Figure 12. Figure 13. Figure 14. Figure 15. Figure 16. Figure 17. Figure 18. Figure 19. Figure 20. Legacy Primary/Reserve Configuration ............................................................... 9 Virtual Ports Configuration ............................................................................ 10 Create Server ............................................................................................ 12 Manually defined HBA .................................................................................. 13 Connectivity Tab ........................................................................................ 14 Advanced Mapping Wizard ............................................................................. 15 Volume Mapping Tab ................................................................................... 16 Multipath Manager Configuration..................................................................... 18 Set Default Policy ....................................................................................... 18 Dell Compellent DSM with both FC and iSCSI ....................................................... 20 Installing MS iSCSI DSM .................................................................................. 20 Configure Discovery Targets ........................................................................... 21 Configure Multiple Logons for Each Target Portal ................................................. 22 System Manager iSCSI Connectivity................................................................... 23 iSCSI Initiator Connectivity Verification ............................................................. 23 Default Load Balance Policy ........................................................................... 24 Change policy for existing volumes .................................................................. 25 Disk Management ........................................................................................ 30 MPIO Settings Tab ....................................................................................... 31 List disks with MPCLAIM ................................................................................ 31
Page 5
General syntax
Table 1.
Item Menu items, dialog box titles, field names, keys Mouse click required User Input User typing required Website addresses Email addresses
Document syntax
Convention Bold Click: Monospace Font Type: http://www.compellent.com info@compellent.com
Conventions
Notes are used to convey special information or instructions.
Timesavers are tips specifically designed to save time or reduce the number of steps.
Caution indicates the potential for risk including system or data damage.
Warning indicates that failure to follow directions could result in bodily harm.
Page 6
Preface
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 SAN.
Purpose
This document provides an overview of MPIO and introduces best practice guidelines for configuring MPIO on Windows servers 2003, 2008, and 2008 R2 when using the Dell Compellent Storage Center. For installation procedures, download the MPIO Users Guide from http://knowledgecenter.compellent.com.
Customer support
Dell Compellent provides live support 1-866-EZSTORE (866.397.8673), 24 hours a day, 7 days a week, 365 days a year. For additional support, email Dell Compellent at support@compellent.com. Dell Compellent responds to emails during normal business hours.
Page 7
Introduction
Introduction to Microsoft Multipath IO (MPIO)
Microsoft Multipath IO (MPIO) is a framework that allows administrators to configure load balancing and failover processes for Fibre Channel and iSCSI connected storage devices. You can configure load balancing 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.
Page 8
Legacy ports
In legacy mode, front-end IO ports are broken into primary and reserve ports based on a fault domain. Primary/reserved ports allow IO to use the primary path; the reserve port is in a standby mode until a primary port fails over to the reserve port. In terms of MPIO, this requires twice the IO ports to enable multiple paths. Even more ports are required for a dual fabric. Figure 1 illustrates dual-fabric failover ports in legacy mode.
Figure 1.
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.
Page 9
Virtual ports
Dell Compellent introduced Virtual Ports in 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.
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 you need to assign only the Control Port in the iSCSI Initiator software. These differences are covered later in the OS-specific sections.
Conclusion
There are two methods to enable multiple paths from the Dell Compellent Storage Center, legacy ports and Virtual Ports. 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: you can enable Virtual Ports on Fibre Channel only, iSCSI only, or both.
Page 10
Configuring servers
Before configuring MPIO at the operating system level, configure servers in 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 controller 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 controller.
Fibre Channel
To create the server, properly zone the switches so that the server and controller ports are in the same zone. The easiest way to do this is to boot the server into the card's BIOS and scan the SCSI devices on each port. An alternate method is to preconfigure the WWN's of the HBAs in the Storage Center System Manager.
iSCSI
As with Fibre Channel, you can create an iSCSI server automatically or manually. For automatic configuration, enter the IP address of the 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 mode, enter the IP address of the primary port. This is covered in more detail in the OS sections. However, creating a server in the Storage Center is the same on all operating systems.
Page 11
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 Manual Configuration. Note: If the WWN or IQN is not listed, make sure that the Only Show Up Connections box is unchecked.
Figure 3.
Create Server
Page 12
Manual configuration
To manually configure an HBA: 1. In the Create Serve 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 red X. Once the server is connected the red X is removed.
Figure 4.
Page 13
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.
Figure 5.
Connectivity Tab
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.
Page 14
Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices In Storage Center, a volume is mapped to all available paths unless you use the advanced mapping button 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.
Figure 6.
Page 15
Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 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 7. In the tree view, select a volume. 8. Click on the Mapping tab.
Figure 7.
Figure 7 shows that MPIO Volume 1 was mapped to the server with four FC ports and two iSCSI ports.
It is assumed that there are multiple Front-End paths to the servers and that the servers have multiple connections to the controller.
Page 16
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.
Page 17
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.
Figure 8.
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.
Figure 9.
Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices To change the policy for a given device: 9. Click on the device. 10. 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.
Page 19
Page 21
Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices The advanced options window is where you select each NIC card 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. The following steps will 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 1-6 for each Source IP. 16. Select each additional Target and repeat steps 1-7.
Page 22
Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices To verify: 1. Open the Dell Compellent System Manager. Create a server (if it hasn't already been done). 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.
Page 23
Page 24
Dell Compellent Storage Center Microsoft Multipath IO (MPIO) Best Practices 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.
Page 26
Page 27
Page 28
Table 2.
For example, to change all Dell Compellent volumes to a Failover Only policy, use the following command: mpclaim.exe -L -M 1 -d "COMPELNTCompellent Vol"
Page 29
Page 30
Page 31
Conclusion
Although there are some slight differences from one operating system to the other, the basic concepts of MPIO are straightforward and easy to implement. We hope this document has provided a good base of knowledge for getting started with Windows MPIO and the Dell Compellent Storage Center. By using the operating system level MPIO features and building a highly robust and highly available Dell Compellent architecture you can provide users with years of reliable and fast service.
Page 32