Re: [SLUG] Reboot or not to reboot...

From: Brian Coyle (brian@linuxwidows.com)
Date: Thu Jul 24 2003 - 22:41:11 EDT


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 24 July 2003 21:20, Logan wrote:

> I wish to preserve my magnificent uptime; but, I just acquired an old
> SCSI Plextor 12/20 CDRW and I want to install it in my home box.

I keep this one in my bag-o-tricks for just this kind of thing. ;)
It's really handy for my SCSI Zip drive that may not be powered on
(or even plugged into the SCSI card) when a system boots.

Be sure to *understand* the caveats before attempting.

$ cat ~/tricks/rescan-scsi

As an alternative, you may manually add/remove SBP-2 devices via the procfs
with add-single-device <h> <b> <t> <l>: or remove-single-device <h> <b> <t>
<l>, where:
      <h> = host (starting at zero for first SCSI adapter)
      <b> = bus (normally zero)
      <t> = target (starting at zero for first SBP-2 device)
      <l> - lun (normally zero)

 e.g. To manually add/detect a new SBP-2 device
      echo "scsi add-single-device 0 0 0 0" > /proc/scsi/scsi

 e.g. To manually remove a SBP-2 device after it's been unplugged
      echo "scsi remove-single-device 0 0 0 0" > /proc/scsi/scsi

 e.g. To check to see which SBP-2/SCSI devices are currently registered
      cat /proc/scsi/scsi

http://www.linuxdoc.org/HOWTO/SCSI-Programming-HOWTO-4.html

HTH!

- --
'If everyone climbs Mt. Everest because it's hard to do, why do they
go up the easy side?' -- George Carlin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Brian Coyle, GCIA http://www.giac.org/GCIA.php

iD8DBQE/IJjIER3MuHUncBsRAsmSAJ9KtCQc2F3jJ+IZwynz98yx1wsf4gCfQqG6
6ybfeYTEE19ZB6Uq2X7aX8c=
=qLCi
-----END PGP SIGNATURE-----



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:55:41 EDT