From owner-freebsd-questions@FreeBSD.ORG Mon Feb 16 19:44:07 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B0CD1065673 for ; Mon, 16 Feb 2009 19:44:07 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id DE5F88FC15 for ; Mon, 16 Feb 2009 19:44:06 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.lan.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id AF101AFC208; Mon, 16 Feb 2009 10:44:02 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org, Polytropon Date: Mon, 16 Feb 2009 10:44:02 -0900 User-Agent: KMail/1.9.10 References: <20090212062505.ca66b93e.freebsd@edvax.de> <4993CB0A.7090809@gmail.com> <20090212083411.bbde5802.freebsd@edvax.de> In-Reply-To: <20090212083411.bbde5802.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902161044.02542.fbsd.questions@rachie.is-a-geek.net> Cc: Tim Judd Subject: Re: Determining process preventing umount of busy partition X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2009 19:44:07 -0000 On Wednesday 11 February 2009 22:34:11 Polytropon wrote: > First of all, I checked both lsof's and fstat's output: NOTHING seems to > have a file open in the /usr partition. Very strange. Of course, I've tried > the copies of both tools in /root/bin so they don't cause any access on > /usr theirselves. > > On Thu, 12 Feb 2009 00:08:58 -0700, Tim Judd wrote: > > Most commonly for me is because my $PWD (or CWD) is in the filesystem i > > intend to umount > > I've checked this: In SUM, $CWD was /, and root's $HOME is /root on > the / partition. Users' home directories are on /home which is separated > from /usr (and can be unmounted without problems). At no time, a $CWD > was on /usr partition. > > > so as a habit now, i move myself to the root partition (when logged in > > as root) via the following, and assuming I want to umount /usr > > > > > > # umount /usr > > umount: unmount of /usr failed: Device busy > > # cd > > # umount /usr > > > > > > cd, with no arguments, move you to ~ (aka $HOME) > > Which would be /root in case of SUM. > > > > As I said, very strange... Is this a one-time event or 100% reproducable? A likely scenario is: - You have squid running - You have rc_shutdowntimeout at default (30 seconds) - rc hits the watchdog while squid is being shutdown - you unmount - get busy - call fstat at which point squid has been shutdown. Replace squid with anything that takes 30+ seconds to shutdown. Allthough, they would probably already fail at umount /var. Squid with defaults is fully contained in /usr/local. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.