Re: no utility / method to show association between host bus adapter and non-sg BLOCK devices

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

 



Thayne Harmon wrote:
> Gentlemen,
> 
> hwinfo, lshal, sysfs do not show the relationship for non-sg BLOCK devices with there 
> associated Host Bus Adapter.

All devices (i.e. logical units) have a 4 element tuple
associated with them and the first element is the host
number. A HBA contains one or more hosts. Then you can
datamine in /sys/class/scsi_host/host<n> for whatever
information you want.

> Do you know of a utility or method that can show this?

May I suggest lsscsi. That won't help you in the lk 2.4
series and earlier though There are other methods by
which the sg device corresponding to a "non-sg" block
device (e.g. /dev/sdc) can be found.

> Example is the HP/Compaq CCISS block driver.
> 
> The HBA and devices are listed, but no association is given or can be determine, 
> only by the user knowing which is which.
> 
> The kernel certainly knows, surely the above apps could be made to 
> determine this or some utility exits that will show this?

See http://www.torque.net/scsi/lsscsi.html

Doug Gilbert
-
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