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
--
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]:
> 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
>
> --
> Latest project: cconfig (http://nico.schotteli.us/papers/linux/cconfig/)
> Open Source nutures open minds and free, creative developers.
--
Latest project: cconfig (http://nico.schotteli.us/papers/linux/cconfig/)
Open Source nutures open minds and free, creative developers.
Nico Schottelius <[email protected]> writes:
> 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.
--
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,
On Mon, Oct 31, 2005 at 12:13:54PM +0100, Andreas Schwab wrote:
> Nico Schottelius <[email protected]> writes:
>
> > 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.
--
Kurt Garloff
On Tuesday 31 January 2006 13:51, Kurt Garloff wrote:
> Hi,
>
> On Mon, Oct 31, 2005 at 12:13:54PM +0100, Andreas Schwab wrote:
> > Nico Schottelius <[email protected]> writes:
> > > 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.
>From the attachment;
if test ! -d /proc/scsi/; then
echo "Error: SCSI subsystem not active"
exit 1
fi
:-)
--
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,
On Tue, Jan 31, 2006 at 02:44:05PM +0000, Alistair John Strachan wrote:
> On Tuesday 31 January 2006 13:51, Kurt Garloff wrote:
> > 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,
--
Kurt Garloff, Head Architect, Director SUSE Labs (act.), Novell Inc.