Skip to contentSkip to conversation

Rescan SCSI Bus without /proc/scsi?

DISCUSSION Nico Schottelius 4 participants 6 messages Oct 31, 2005 – Jan 31, 2006

lore
Share & tools
lore
#0 lore raw

Hello!

As noticed in 2.6 kernels, on should not use /proc/scsi anymore.

This breaks the popular rescan-scsi-bus.sh from Kurt Garloff. Is there a possibility to do that through /sys somehow or do I have to reanable /proc/scsi?

Greetings,

Nico

Signature · 2 lines
Latest project: cconfig (http://nico.schotteli.us/papers/linux/cconfig/)
Open Source nutures open minds and free, creative developers.
#1 lore raw

Googling better before makes sense:

On
http://bash.cyberciti.biz/diskadmin/rescan-scsi-bus.sh.html
is a script using /sys. Though it does not work on linux-2.6.13 here, I'll search what's broken.

Nico

Nico Schottelius [Mon, Oct 31, 2005 at 12:03:44PM +0100]:

Quoted 15 lines

Hello!

As noticed in 2.6 kernels, on should not use /proc/scsi anymore.

This breaks the popular rescan-scsi-bus.sh from Kurt Garloff. Is there a possibility to do that through /sys somehow or do I have to reanable /proc/scsi?

Greetings,

Nico

Signature · 2 lines
Latest project: cconfig (http://nico.schotteli.us/papers/linux/cconfig/)
Open Source nutures open minds and free, creative developers.
Signature · 2 lines
Latest project: cconfig (http://nico.schotteli.us/papers/linux/cconfig/)
Open Source nutures open minds and free, creative developers.
#2 lore raw
In reply to Nico Schottelius
Quoted 3 lines · Nico Schottelius

This breaks the popular rescan-scsi-bus.sh from Kurt Garloff. Is there a possibility to do that through /sys somehow or do I have to reanable /proc/scsi?

Your version of rescan-scsi-bus.sh is quite old. Current versions of rescan-scsi-bus.sh already use /sys when available.

Andreas.

Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
#3 lore raw

Hi,

Quoted 8 lines · Andreas Schwab
Quoted 3 lines · Nico Schottelius

This breaks the popular rescan-scsi-bus.sh from Kurt Garloff. Is there a possibility to do that through /sys somehow or do I have to reanable /proc/scsi?

Your version of rescan-scsi-bus.sh is quite old. Current versions of rescan-scsi-bus.sh already use /sys when available.

Attached for reference.

Signature · 1 line
Kurt Garloff
#4 lore raw
Quoted 8 lines · Kurt Garloff

Hi,

Quoted 5 lines · Andreas Schwab
Quoted 3 lines · Nico Schottelius

This breaks the popular rescan-scsi-bus.sh from Kurt Garloff. Is there a possibility to do that through /sys somehow or do I have to reanable /proc/scsi?

Quoted 6 lines
Quoted 2 lines

Your version of rescan-scsi-bus.sh is quite old. Current versions of rescan-scsi-bus.sh already use /sys when available.

Attached for reference.

From the attachment;

if test ! -d /proc/scsi/; then
echo "Error: SCSI subsystem not active"
exit 1
fi

:-)

Signature · 6 lines
Cheers,
Alistair.

'No sense being pessimistic, it probably wouldn't work anyway.'
Third year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.
#5 lore raw

Hi,

Quoted 9 lines · Alistair John Strachan
Quoted 1 line · Kurt Garloff

Attached for reference.

From the attachment;

if test ! -d /proc/scsi/; then
echo "Error: SCSI subsystem not active"
exit 1
fi

SOme work remains to be done :-)

Best,

Signature · 1 line
Kurt Garloff, Head Architect, Director SUSE Labs (act.), Novell Inc.