Subject: Re: Kill unkillable process
To: iware <dkwok@iware.com.au>
From: Luke Mewburn <lukem@wasabisystems.com>
List: port-i386
Date: 01/25/2002 15:59:45
On Fri, Jan 25, 2002 at 10:57:24AM +1100, iware wrote:
  | I am running NetBSD 1.5.2 and mounted a tape drive using
  | 
  | mt -f /dev/nrst0 rewind
  | 
  | I was bit impatient and manual ejected the tape before the process being
  | finished.
  | 
  | Now I have a uncontrollable process
  | 
  | bash-2.05# ps uxw|grep mt
  | root  2844  0.0  0.0   64    48 p1- D     4:50PM  0:00.00 mt -f /dev/nrst0
  | rewind
  | 
  | I 've tried a no. of ways to kill it and it still exist (or not). When I
  | issued mt command, the device is busy.
  | 
  | bash-2.05# mt -f /dev/nrst0 rewind
  | mt: /dev/nrst0: Device busy
  | 
  | When I do "top" I cannot see the process but ps show that the process is
  | still there.
  | 
  | How can I kill this run-away process without rebooting the system??


You can sometimes recover from this by resetting the SCSI bus with
something like:
	scsictl scsibus0 reset


Luke.