Geeks With Blogs
Cajun MCSE MS technology down on the bayou

Today I’m adding some redundancy to the storage paths in our Hyper-V environment.  We have 2 Windows 2008 R2 Server Core host servers running the Hyper-V role attached to an Equal Logic  iSCSI SAN.  Each host has 3 network cards attached the iSCSI VLAN but only 2 are used for host connections.  The third NIC is being used as a Microsoft Virtual Switch Adapter on the iSCSI VLAN for the VM guest operating systems to make direct connections to the SAN and use host invisible storage. 

 

NOTE: Host invisible storage is when a VM uses its own initiator with a virtual NIC and directly attaches to a SAN LUN.  This removes the hypervisor layer I/O requirement and greatly increases performance. Also since the virtual NIC is part of the VM, there is no reason to add the LUN to the cluster storage as it will follow the VM as it moves between hosts.

 

First we need to install the MPIO feature.

 

To install MPIO on server core:

ocsetup MultipathIo /norestart

 

Now we need to claim all the iSCSI attached storage for MPIO (see warning before proceeding)

mpclaim -r -i -d "MSFT2005iSCSIBusType_0x9"

 

Warning:  the –r will force the host to automatically reboot with no warning so make sure you’re ready for a reboot before running this command. For a complete reference of MPIO commands as well as the available load balancing policies:

http://technet.microsoft.com/en-us/library/ee619743(WS.10).aspx

 

Now since my hosts already have attached storage, I’m simply going to add a second path to each LUN and leave the default Round Robin Load Balancing Policy in place.

 

First let’s verify I’ve claimed all my attached storage. Running mpclaim –s –d shows that I have claimed all previously attached storage for MPIO. It also shows my Load Balance Policy is Round Robin by default.

image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Now let’s go ahead and start adding additional paths for each LUN.

We can still use the iSCSI control panel inside windows server core.  To launch type ISCSICPL from the command prompt.

image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

You can see all the previously attached storage.  Currently each LUN is connected on a single path to the Target Portal.  We’ll add an additional connection to each. By selecting a LUN and hitting devices, we can see the pre-existing path:

image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

To add our new path, back out of the devices, select the LUN and hit connect.

image

 

 

 

 

 

 

 

 

 

 

 

Make sure to check enable multi-path and hit advanced.  Here choose your Initiator, the 2nd NIC IP address and the target portal IP.  Configure any IPSEC or CHAP authentication if you have your SAN configured for it, then hit ok.

image

 

 

 

 

 

 

 

 

Now when I select the same LUN and hit devices again, I show both active paths:

image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

And when I hit MPIO, it shows both paths as well as the LB policy:

image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

You can also verify at the command prompt by using MPCLAIM –S –D <device#>image

 

And that’s it.  We’ve added multiple paths to our host for this specific LUN, now to repeat the process for every LUN as well as the other host.

Posted on Saturday, January 9, 2010 6:17 PM Windows 2008 Server , MS Hyper-V , Windows Networking | Back to top


Comments on this post: MPIO with Windows 2008 R2 Server Core and iSCSI

# re: MPIO with Windows 2008 R2 Server Core and iSCSI
Requesting Gravatar...
If your using MPIO with the an EqualLogic SAn you should install the EqualLogic Host Integration Toolkit (HIT). This add another tab to the iSCSIcpl and creates all the multiple paths automatically.
Left by Daniel on Mar 07, 2010 7:51 AM

# re: MPIO with Windows 2008 R2 Server Core and iSCSI
Requesting Gravatar...
Can the HIT be installed on 2008 R2 CORE?
Left by Phil on Jul 14, 2010 6:32 PM

# re: MPIO with Windows 2008 R2 Server Core and iSCSI
Requesting Gravatar...
I have yet to get the HIT installed successfully on Core. Hence the reason for the manual process. If I figure that one out, I'll put another post up.
Left by Ryan Roussel on Aug 10, 2010 4:38 PM

# re: MPIO with Windows 2008 R2 Server Core and iSCSI
Requesting Gravatar...
I am very grateful for the detailed instructions. I could not connect properly. And then all so simple and easy. Thanks to you, we become smarter. Thank you.
Left by luxury hotel on Sep 09, 2010 3:00 PM

# re: MPIO with Windows 2008 R2 Server Core and iSCSI
Requesting Gravatar...
I don’t agree with most people here; since I found this blog post I couldn't stop until I finished, while it wasn't just what I had been trying to find, was still a very good read though. I will instantly take your RSS feed to stay in touch of coming updates.
Left by ajax tutorials on Oct 21, 2010 2:21 AM

Your comment:
 (will show your gravatar)


Copyright © Ryan Roussel | Powered by: GeeksWithBlogs.net