Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Sep 2002 16:31:15 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        Anthony Atkielski <anthony@atkielski.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Stuck "mt status" command -- how do I kill it?
Message-ID:  <20020912070115.GF3181@wantadilla.lemis.com>
In-Reply-To: <014d01c259c2$41992c00$0a00000a@atkielski.com>
References:  <014d01c259c2$41992c00$0a00000a@atkielski.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, 11 September 2002 at 20:37:16 +0200, Anthony Atkielski wrote:
> I gave a "mt status" command on a DAT drive that was still loading the tape.
> For whatever reason--not sure if it was hardware or software--the command
> hung, with the light flashing on the tape drive.  Try as I might, I couldn't
> get past this command, which I issued on the console.  CTRL/C did no good.
> I tried logging in as root from another terminal and killing the process for
> the mt command with -9, but nothing happened.  A ps command reported the
> process as being in state D.  I tried issuing the same command from another
> terminal, and that hung too, but I was able to kill it just by disconnecting
> (not an option on the console).  I finally killed the calling shell on the
> console, which logged it off.  That didn't kill the process running mt, but
> it did free the console.  At that point I was out of ideas so I rebooted,
> which made the problem go away.
>
> Was there any other option besides a reboot in this case?

Possibly not.  I'd guess that you've found a bug in the tape driver.
A dump would have helped, but the output of 'ps la' for the mt process
might have been enough.

UNIX used to have a lot of these race conditions.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020912070115.GF3181>