match device files with LUN ID
Alan J. Gagne
alanjgagne at gmail.com
Fri Jun 13 16:57:27 UTC 2008
Tom Spec wrote:
> Does anyone know how I can correlate which device files (sda, sdb,
> sdc, etc) match up with which LUNs in /proc/scsi/scsi? I'm sure there
> is a command I can use to give output like:
>
> devicefile1, scsi, channel, id, lun
> devicefile2, scsi, channel, id, lun
> devicefile3, scsi, channel, id, lun
>
> But I can't remember what it is. Anyone?
Try lsscsi.
yum info lsscsi
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* livna: mirrors.tummy.com
* fedora: mirror.cogentco.com
* adobe-linux-i386: linuxdownload.adobe.com
* updates: mirror.cogentco.com
Available Packages
Name : lsscsi
Arch : i386
Version: 0.17
Release: 4
Size : 27 k
Repo : fedora
Summary: List SCSI devices (or hosts) and associated information
Description:
Uses information provided by the sysfs pseudo file system in Linux kernel
2.6 series to list SCSI devices or all SCSI hosts. Includes a "classic"
option to mimic the output of "cat /proc/scsi/scsi" that has been widely
used prior to the lk 2.6 series.
Alan
More information about the fedora-list
mailing list