Re: Emulex HBA Issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Everything is working, as it should, on a 2.6 kernel. see comments below...

Chris Knipe wrote:
Hi,

I have a RedHat 9 system running kernel 2.6.16... The system is attached to 3 x EMC FC4700 DOE's operating as simple JBODs....

Looking at /proc/scsi/scsi, I can clearly see all the devices are visable (see below)

Ok - but with 2.6.x - you should start looking in /sys/class/scsi_device
and /sys/class/scsi_host for scsi things now. /proc stuff is mainly
for compatibility.


However, each time RedHat boots it assigns a different device to a different hard drive... For example, one of my CLAR18 disks in Eclosure 3 Bay 3, ends up at /dev/sde. When I reboot, that same drive, will all of a sudden become /dev/sdm. Needless to say with the devices flying arround like this, it is impossibly to create any array or use any of the devices...

Well - The lpfc driver performs discovery in parallel to all the FC
devices on the fabric, so that it completes faster, and doesn't allow
good devices to get hung up behind slow responders. The order in which
discovery complete to each device decides what SCSI Target ID gets
assigned by the FC transport - it's a first-seen-first-assigned basis.
If you want to serialize things, which reduces but does not eliminate
what you are seeing (consider one of the 4700's being powered off at
the time you boot), set the lpfc module parameter lpfc_discovery_threads=1.
Here's a pointer to some additional lpfc linux documentation:
http://www.emulex.com/ts/downloads/shared_docs/linux/81/manual.pdf

However, you should realize, the 2.6 kernel fully expects hot plug
and dynamic discovery, and that users, if they want persistent names,
are to use udev to supply them.  There is no guarantee the /dev/sdX names
are persistent (and in truth, there never was under the 2.4 kernel either).
Udev matches unique device identifiers and creates a consistent symlink
to the underlying device name.
See:
http://www.emulex.com/white/hba/wp_linux26udev.pdf
http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html


I have no way to know that any device will have the same name after a reboot... Is there any way to fix this??

Follow udev and you will be all set.

-- james s



Thanks,
Chris.


Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
 Vendor: SEAGATE  Model: ST318203 CLAR18  Rev: 3844
 Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 01 Lun: 00
 Vendor: SEAGATE  Model: ST318203 CLAR18  Rev: 3844
 Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 02 Lun: 00
 Vendor: SEAGATE  Model: ST318203 CLAR18  Rev: 3844
 Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 00
 Vendor: SEAGATE  Model: ST318203 CLAR18  Rev: 3844
 Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 04 Lun: 00
 Vendor: SEAGATE  Model: ST318203 CLAR18  Rev: 3844
 Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 05 Lun: 00
 Vendor: SEAGATE  Model: ST318203 CLAR18  Rev: 3844
 Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 06 Lun: 00
 Vendor: SEAGATE  Model: ST318203 CLAR18  Rev: 3844
 Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 07 Lun: 00
 Vendor: SEAGATE  Model: ST318203 CLAR18  Rev: 3844
 Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 08 Lun: 00
 Vendor: SEAGATE  Model: ST173404 CLAR72  Rev: 3A90
 Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 09 Lun: 00
 Vendor: SEAGATE  Model: ST173404 CLAR72  Rev: 3A90
 Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 10 Lun: 00
 Vendor: SEAGATE  Model: ST336704 CLAR36  Rev: 3A84
 Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 11 Lun: 00
 Vendor: SEAGATE  Model: ST173404 CLAR72  Rev: 3A90
 Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 12 Lun: 00
 Vendor: SEAGATE  Model: ST336704 CLAR36  Rev: 3A90
 Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 13 Lun: 00
 Vendor: SEAGATE  Model: ST318304 CLAR18  Rev: 3A90
 Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 14 Lun: 00
 Vendor: SEAGATE  Model: ST336704 CLAR36  Rev: 3A90
 Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 15 Lun: 00
 Vendor: SEAGATE  Model: ST336704 CLAR36  Rev: 3A84
 Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 16 Lun: 00
 Vendor: SEAGATE  Model: ST336704 CLAR36  Rev: 3A90
 Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 17 Lun: 00
 Vendor: SEAGATE  Model: ST173404 CLAR72  Rev: 3A90
 Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 18 Lun: 00
 Vendor: SEAGATE  Model: ST173404 CLAR72  Rev: 3A90
 Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 19 Lun: 00
 Vendor: SEAGATE  Model: ST173404 CLAR72  Rev: 3A90
 Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 20 Lun: 00
 Vendor: SEAGATE  Model: ST173404 CLAR72  Rev: 3A90
 Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 21 Lun: 00
 Vendor: SEAGATE  Model: ST336605 CLAR36  Rev: 4A20
 Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 22 Lun: 00
 Vendor: SEAGATE  Model: ST336605 CLAR36  Rev: 4A20
 Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 23 Lun: 00
 Vendor: SEAGATE  Model: ST118202 CLAR18  Rev: 3528
 Type:   Direct-Access                    ANSI SCSI revision: 02
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux