[6726] in linux-scsi channel archive
Re: cmd to reinitialize SCSI bus ?
daemon@ATHENA.MIT.EDU (Kurt Garloff)
Tue Jun 22 05:37:42 1999
Date: Tue, 22 Jun 1999 07:11:05 +0200
From: Kurt Garloff <garloff@suse.de>
To: heather casler <heather=casler%eng%emchop1@fishbowl02.lss.emc.com>
Cc: "Jose M. Sanchez" <opjose@ex-pressnet.com>, redhat-list@redhat.com,
linux-scsi@vger.rutgers.edu
Mail-Followup-To: heather casler <heather=casler%eng%emchop1@fishbowl02.lss.emc.com>,
"Jose M. Sanchez" <opjose@ex-pressnet.com>, redhat-list@redhat.com,
linux-scsi@vger.rutgers.edu
In-Reply-To: <vines.,oz7+2xdPrA@fishbowl02.emc.com>; from heather casler on Mon, Jun 21, 1999 at 04:23:31PM -0400
--IS0zKkzwUGydFO0o
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
On Mon, Jun 21, 1999 at 04:23:31PM -0400, heather casler wrote:
> I know it's not a good idea to pull the cable when you're doing I/O, but=
=20
> I'm doing a test and part of it is to see how the host will react to a=20
> cable pull and to determine what needs to be done to get the host back up=
=20
> and running with the least amount of downtime. For instance, what would=
=20
> the Linux host do if someone tripped over the SCSI cable? =20
> I was looking for a command that could be used to go out and search the b=
us=20
> without having to reboot or power down the system. Something like=20
> drvconfig in Solaris or vgscan in HP or scsiha in SGI....anything in Linu=
x=20
> that will allow me to recover/renegotiate the SCSI connection without=20
> having to reboot?
You may want to reset the SCSI bus. The devices abort all commands sent to
them and renegotiate the connections. Unfortunately, there's no possibility
to tell the ML SCSI code to do that. But you can go ingle user mode, umount
all partitions (if your root fs is not on that SCSI bus) and echo "scsi
remove-single-device" for all targets. Later you readd them using "scsi
add-single-device".=20
The DC390/AM53C974/tmscsim driver which I maintain does support a bus reset
by just echoing a RESET to /proc/scsi/tmscsim/?.
Have a look at http://www.garloff.de/kurt/linux/dc390/
--=20
Kurt Garloff <garloff@suse.de> SuSE GmbH, N=FCrnberg, FRG
Linux kernel development; SCSI driver: DC390 (tmscsim/AM53C974)
--IS0zKkzwUGydFO0o
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3in
iQCVAwUBN28a6BaQN/7O/JIVAQFfcwP/eJxh0fql970rhAA4Qii7U35BDvf4OHI2
LO71ojPBcurf4lhZrdX1MSbRRhyeOvMNMKcOWy6s6LEbEm0uDmhO9PNktqMMd0cQ
q5emjM5dQrRFxO23sfVH7ADhNNAxRG9pnYkpq9VtMCcE/GQR+tLPeXBArydbRKyH
hK5TB7yjYF0=
=bQ33
-----END PGP SIGNATURE-----
--IS0zKkzwUGydFO0o--
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu