Help - "/proc/scsi/scsi" vs. "fdisk -l"

  • Follow


Hi,

We found an issue with Linux SCSI sub-system and the low-level SCSI driver
we created.

Most time, everything works okay.  We can use "cat /proc/scsi/scsi" or "cat
/proc/partitions" to see all SCSI devices attached to our low-level driver,
and "fdisk -l" also shows such deveices.  However, after running some tests,
we found that "cat /proc/scsi/scsi" still shows all devices, but "fdisk -l"
only shows the internal disk (/dev/sda).  It doesn't show any SCSI devices
attached to our low-level driver any more.  If using "fdisk /dev/sdb", we
see "Unable to open /dev/sdb" message.

My question is can we say for sure all attached devices are still available
and healthy as long as "cat /proc/scsi/scsi" or "cat /proc/partitions" shows
they are there.  Or maybe the information is just cached information and the
devices are gone if "fdisk -l" can not show them?  How can I make sure this?

Your information would be apreciated.


T.
--


0
Reply l_x2828 (152) 10/14/2004 6:30:57 PM

No. /proc/scsi/scsi is only modified when you add or remove a device
(scsi add-singledevice.) When a device fails it stays in the list.
Ralf-Peter

0
Reply RPR 10/27/2004 10:26:46 PM


1 Replies
124 Views

(page loaded in 0.157 seconds)

5/25/2013 2:36:57 AM


Reply: