How do I access NPIV-enabled Fibre Channel storage from within Red Hat Enterprise Linux 5.9 or 6.4 guests on Microsoft Windows Server 2012 ?
Environment
- Microsoft Windows Server 2012 host
- Red Hat Enterprise Linux 5.9 (or newer) guest
- Red Hat Enterprise Linux 6.4 (or newer) guest
- Hyper-V
Issue
- How do I access NPIV-enabled Fibre Channel storage from within Red Hat Enterprise Linux 5.9 or 6.4 guests on Microsoft Windows Server 2012 ?
Resolution
- Set up NPIV on your Fibre Channel card and assign LUN(s) to it in accordance with your storage hardware vendor's directions.
- Next, assign the requisite LUN to a virtual guest as follows:
- First, mark the LUN as offline using the Windows diskmgmt utility.
- Start up diskmgmt.exe from a powershell window.
- Select the requisite LUN, right-click it, and select the Offline option.
- Next, use the Windows Hyper-V manager to add the LUN as an IDE device to the virtual guest as follows:
- Start up Hyper-V manager.
- Select the virtual guest of interest, right-click it, and select Settings.
- Select an IDE controller and then select Hard Drive and click Add.
- Select the Physical hard disk radio button and then use the drop-down box to select the LUN which was offlined previously.
- Click Apply and then OK.
- First, mark the LUN as offline using the Windows diskmgmt utility.
- Boot up the virtual guest and access the LUN normally from within the guest. The device should show up under a regular device path such as /dev/sdb .
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments