From owner-freebsd-questions Thu Sep 12 0: 1:45 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD4CE37B400 for ; Thu, 12 Sep 2002 00:01:42 -0700 (PDT) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id B072843E42 for ; Thu, 12 Sep 2002 00:01:36 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id EDAC7812F7; Thu, 12 Sep 2002 16:31:15 +0930 (CST) Date: Thu, 12 Sep 2002 16:31:15 +0930 From: Greg 'groggy' Lehey To: Anthony Atkielski Cc: FreeBSD Questions Subject: Re: Stuck "mt status" command -- how do I kill it? Message-ID: <20020912070115.GF3181@wantadilla.lemis.com> References: <014d01c259c2$41992c00$0a00000a@atkielski.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <014d01c259c2$41992c00$0a00000a@atkielski.com> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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