Microsoft KB Archive/310072

= Adding support for more than eight LUNs in Windows Server 2003 and in Windows 2000 =

Article ID: 310072

Article Last Modified on 3/1/2007

-

APPLIES TO


 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Datacenter Server
 * Microsoft Windows NT Server 4.0 Standard Edition

-



This article was previously published under Q310072



Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SUMMARY
This article describes the support for a large number of logical unit numbers (LUNs) in Windows Server products. When you configure a server with more than eight LUNs, the hardware vendor must be involved in the planning and configuration. There may be several different ways to achieve the configuration you want; the hardware vendor is best equipped to supply the necessary information. This article is not meant to be all-inclusive because of the various implementations that a hardware vendor can use. Contact your hardware manufacturer to determine if and how your hardware can support more than eight LUNs. Windows Server products support up to:
 * 8 buses per adapter
 * 128 target IDs per bus
 * 255 LUNs per target ID



MORE INFORMATION
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

Terminology used in this article

 * Host Bus Adapter (HBA): This is the controller that is connected to the storage device. It may be a SCSI or Fibre controller because both topologies can support more than eight LUNs.
 * Storage device: This is the controller in the array to which the HBA attaches. This is the device that controls the drives.
 * Large LUN: This is a commonly used term for the practice of supporting more than eight LUNs.

Windows NT 4.0
Large LUN support was added to Windows NT 4.0 Server in Service Pack 4 (SP4) and later service packs. This feature works only if the associated storage devices support the SCSI REPORT LUNS command. After you install SP4 or later, you may need to add the following registry value manually:

HKLM\SYSTEM\CurrentControlSet\Services\ \Parameters\LargeLuns

The value should be a REG_DWORD value with a data value of 0x1.

Note that  is the name of the driver for which you want to enable Large LUN support. This causes all HBAs that are controlled by the specified driver to have Large LUNs enabled. Also note that &quot;LargeLUNs&quot; is plural. Microsoft recommends Windows NT 4.0 Service Pack 6a (SP6a) for Windows NT 4.0-based servers that use LargeLuns. For more information on issues with Windows NT 4.0 and LargeLun support, click the following article number to view the article in the Microsoft Knowledge Base:

245637 Some LARGE LUN numbers are not available to the computer

Windows 2000 and later
Windows 2000 supports Large LUNs, but the method for enabling it depends on the hardware implementation and drivers. If the storage device reports the HiSupport bit in its standard inquiry data, Windows automatically enables Large LUNs without requiring any manual registry entries. Contact the hardware vendor to determine if the storage device reports the HiSupport bit. The hardware drivers may also enable large LUN support during their installation routines.

If the hardware does not report the HiSupport bit or the drivers do not enable Large LUN support, a manual registry entry is required. This feature works only if the storage devices support the SCSI REPORT LUNS command. Note that editing the registry to enable Large LUNs requires detailed knowledge of the devices' hardware IDs and registry entries; this is the least-preferred method. Please contact the hardware vendor for additional information. Follow these steps to configure the required registry entry:  Find the hardware ID of the storage device. To find the hardware ID:  Start Regedit.exe, and then locate and click the following location:

HKLM\SYSTEM\CurrentControlSet\Enum\SCSI

 Disk and storage devices that are enumerated by the system are listed. The storage device on which you want to enable LargeLUNs should appear in the list starting with Disk&Ven_. The name of the storage device should be recognizable after the Disk&Ven_ text. To find the hardware ID for the proper storage device, open the different Disk&Ven_ keys to display the different instances of the storage devices. A value labeled FriendlyName with a description to the right appears under each of the instances. After you locate the storage device, double-click hardwareID for one of the instance names. This is typically listed under the FriendlyName value. The value data lists the hardware ID of the storage device. Often, several hardware IDs are listed. Copy only one of these hardware IDs. Make sure to copy only the portion of the value after &quot;SCSI\&quot; to the Clipboard.

NOTE: There may be several hardware IDs for the same device. This occurs because the device may be detected in different ways for different firmware revisions of the same device. You may have to try each of the different hardware IDs in the following steps. If you have any problems with this, contact your storage device hardware manufacturer.</li></ol> </li> With the hardware ID from the previous steps, follow the next steps to enable Large LUN support for the appropriate storage device: <ol style="list-style-type: lower-alpha;"> Locate and click the following key in the registry:

HKLM\SYSTEM\CurrentControlSet\Control\ScsiPort\SpecialTargetList

</li> On the Edit menu, point to New, and then click Key.</li> A new key named New Key #1 is created. Right-click New Key #1, and then click Paste to paste the hardware ID that you copied earlier.

NOTE: Right-clicking New Key #1 also displays a Rename command that you can use to attempt to paste the data again if New Key #1 is not in the proper state.</li> After you create the new key, create a new DWORD value named LargeLuns with a value of 1.

NOTE: &quot;LargeLuns&quot; is plural.</li></ol> </li> Reboot the computer.</li></ol>

Issues involved in manually enabling Large LUN support
Duplicate disks may appear after you enable Large LUN support. This can occur if the HBA driver enables Large LUN support in a proprietary fashion coupled with the manual registry entry. The issue occurs if both the Windows LargeLuns feature and the HBA's LargeLuns feature are enabled.

If logical unit 0 is not present, the REPORT LUNS command cannot be sent to the target device. Windows enumerates only eight logical units, even if more units are present in the disk array. To support large configurations, the time that is necessary to determine the size configuration needed to be minimized. Because the number of logical units can be as high as 255 on some systems, a lot of time can be spent in sending inquiry commands to non-existent logical units. Consult your hardware manufacturer about the different parameters that should be used with your particular hardware.

Even though Windows can access Large LUNs, there may be other environment variables that need to be taken into consideration. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

277222 System may not start when creating a large number of logical units and volumes

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

208173 Duplicate LUN 0 when LargeLuns registry key enabled

Additional parameters for the SpecialTargetList key
For Windows 2000 and later, there are several additional parameters that you can use under the SpecialTargetList key. They are:
 * SparseLun - Allow for discontinuous LUN list.
 * OneLun - Only scan LUN zero.
 * LargeLuns - The device supports more than seven LUNs.
 * SetLunInCdb - The device requires the LUN in CDBs sent to it.
 * NonStandardVPD - The device supports VPD 0x83 but not 0x80.
 * BinarySN - The device returns a binary serial number.

These keys are checked in the order in which they are listed; the information at each level is logically &quot;OR'ed&quot; with that from the previous level.

Additional query words: mscs qlogic 2100 2200 emulex 6000 7000 8000 9000 storage area network san hisup

Keywords: kbenv kbinfo KB310072

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.