From owner-freebsd-questions@FreeBSD.ORG Tue Feb 17 11:38:11 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 1A8F9106564A for ; Tue, 17 Feb 2009 11:38:11 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id CC0E68FC18 for ; Tue, 17 Feb 2009 11:38:10 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-196-52-176.dynamic.qsc.de [92.196.52.176]) by mx01.qsc.de (Postfix) with ESMTP id 2CB463CFFD; Tue, 17 Feb 2009 12:38:03 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n1HBbvIq001639; Tue, 17 Feb 2009 12:37:57 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 17 Feb 2009 12:37:57 +0100 From: Polytropon To: Mel Message-Id: <20090217123757.4685b67b.freebsd@edvax.de> In-Reply-To: <200902161044.02542.fbsd.questions@rachie.is-a-geek.net> References: <20090212062505.ca66b93e.freebsd@edvax.de> <4993CB0A.7090809@gmail.com> <20090212083411.bbde5802.freebsd@edvax.de> <200902161044.02542.fbsd.questions@rachie.is-a-geek.net> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Tim Judd , freebsd-questions@freebsd.org Subject: Re: Determining process preventing umount of busy partition X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Feb 2009 11:38:11 -0000 On Mon, 16 Feb 2009 10:44:02 -0900, Mel wrote: > Is this a one-time event or 100% reproducable? I've tried it several times, it can always be reproduced. > A likely scenario is: > - You have squid running > - You have rc_shutdowntimeout at default (30 seconds) I'm not sure if this setting (?) will have an effect after trying the umount operation in SUM. Even if umount is retried after a several time, /usr is still "busy". > - rc hits the watchdog while squid is being shutdown No, nothing running. All applications have terminated. > - you unmount > - get busy > - call fstat at which point squid has been shutdown. I've used fstat and lsof to check for open files on /usr, nix, nada, nitshewo. > 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. I can't imagine which application should still be running when nothing on /usr is accessed (lsof, fstat); I'll check on running applications using ps. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...