Rescan SCSI Bus without /proc/scsi?
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.
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/scsianymore.This breaks the popular
rescan-scsi-bus.shfrom 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.
Quoted 3 lines · Nico Schottelius
This breaks the popular
rescan-scsi-bus.shfrom 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."
Hi,
Quoted 8 lines · Andreas Schwab
Quoted 3 lines · Nico Schottelius
This breaks the popular
rescan-scsi-bus.shfrom 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.shis quite old. Current versions ofrescan-scsi-bus.shalready use /sys when available.
Attached for reference.
Signature · 1 line
Kurt Garloff
Quoted 8 lines · Kurt Garloff
Hi,
Quoted 5 lines · Andreas Schwab
Quoted 3 lines · Nico Schottelius
This breaks the popular
rescan-scsi-bus.shfrom 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.shis quite old. Current versions ofrescan-scsi-bus.shalready 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.
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.