home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.hardware
- Path: sparky!uunet!gatech!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sunic!aun.uninett.no!news.uit.no!itek.norut.no!gudmund
- From: gudmund@itek.norut.no (Gudmundur Joekulsson)
- Subject: how to rezero SCSI-bus unit (sun-os 4.1.1)
- Sender: news@news.uit.no (USENET News System)
- Organization: FORUT Information Technology
- Date: Wed, 18 Nov 1992 11:33:48 GMT
- Message-ID: <1992Nov18.113348.14639@news.uit.no>
- Reply-To: gudmund@itek.norut.no (Gudmundur Joekulsson)
- Lines: 45
-
- --
- Hi,
- A little explanation of the scenario first ...
- I am using a converter box attached to the scsi interface,
- converting to a serial V.11 interface to a network.
- Every now and then (when restarting a daemon operating with the
- converter box after a previous daemon was killed in while in an
- active state) I get a read error on the device, and the system
- writes out error messages, telling it is retrying the command. Finaly it
- performes a 'rezero' and then the device is OK again. But the
- daemon causing the reset hangs, and must be taken away, and a new
- one started. This also takes time (too loooooong !).
-
- I would like to be able to do something to force this
- 'rezero'-thing before starting the new daemon, avoiding
- the daemon hanging. I have the feeling that it is the device
- driver that performs this retry/rezero ? How do I comand it
- to rezero a certain unit on the bus ?
-
- The system is SUN-OS 4.1.1, using the standard device driver 'esp'
- for the 'sd' devices.
-
-
- I have tried the ioctl requests listed in /usr/include/sun/dkio.h (or
- at least most of them) but they just get theyr info from the systems
- conf. and do not do anything with the physical device it self.
- I can of course write something to the device and thus make it fail
- and then reset by the system/driver, but the best thing would be
- to just reset it directly. Hilfe Hilfe ...
-
- OR if there is no such shell command or system call ...
-
- Is there a way do 'probe' a specific target on the SCSI-bus, i.e.
- something analogous to the boot ROM-mode: ROM> probe_SCSI, only from
- a UNIX shell and to just one of the targets/units on the bus ?
-
-
- How do I do this, any ideas are welcome
-
- gudmundur
- ************************************************************************
- Gudmundur Joekulsson
- gudmund@itek.norut.no
- FORUT IT AS Forhaapningen 21-b, po.box 2806 Elverhoy
- Norut gruppen N-9001, TROMSO, NORWAY
-