BUG: Duplicate LUN 0 When LargeLuns Registry Key EnabledID: Q208173
|
When the LargeLuns registry value is enabled for a SCSI adapter and the device supports the SCSI Report LUNs command, LUN 0 may incorrectly be reported multiple times.
For example, if Bus 0, Target ID (TID) 3, LUN 0 supports Report LUNs, IOCTL_SCSI_GET_INQUIRY_DATA might display information similar to this:
Bus | TID | LUN | Claimed | Inquiry String | Unique or Duplicate |
---|---|---|---|---|---|
0 | 3 | 0 | Y | SEAGATE ST12550N | Unique |
0 | 3 | 0 | Y | SEAGATE ST12550N | Duplicate |
0 | 3 | 3 | Y | SEAGATE ST12550N | Unique |
The problem is caused by the way ScsiPort.sys parses the returned Report LUNs data. The driver incorrectly saves multiple structures representing LUN 0 internally, and this information is passed to the SCSI class drivers or applications via IOCTL_SCSI_GET_INQUIRY_DATA.
SCSI class drivers can be coded so they do not try to claim a device with a specific bus, target ID (TID), and logical unit number (LUN) more than one time. Duplicate entries returned by IOCTL_SCSI_GET_INQUIRY_DATA can be ignored.
To resolve this problem, obtain the latest service pack for Windows NT 4.0 or
the individual fix. For information on obtaining the
latest service pack, please go to:
http://www.microsoft.com/support/supportnet/overview/overview.asp
Q154871 Determining If You Are Eligible for No-Charge Technical Support
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was first corrected in Windows NT version 4.0 Service Pack 5.
WARNING: Using Registry Editor incorrectly can cause serious problems that
may require you to reinstall your operating system. Microsoft cannot
guarantee that problems resulting from the incorrect use of Registry Editor
can be solved. Use Registry Editor at your own risk.
For information about how to edit the registry, view the "Changing Keys and
Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete
Information in the Registry" and "Edit Registry Data" Help topics in
Regedt32.exe. Note that you should back up the registry before you edit it.
If you are running Windows NT, you should also update your Emergency
Repair Disk (ERD).
With Windows NT 4.0 Service Pack 4, a new registry entry was added to support more than 8 logical unit numbers (LUNs). With this registry setting, up to 255 LUNs are supported. To enable this feature, the following registry value must be added to the system:
HKEY_LOCAL_MACHINE\
SYSTEM\
CurrentControlSet\
Services\
Driver_Service_Key\
Parameters\
Device[Number]\
Additional query words:
Keywords : kbDDK kbNTOS400bug kbStorageDev nt4sp5fix
Version : winnt:4.0
Platform : winnt
Issue type : kbbug
Last Reviewed: July 2, 1999