From owner-freebsd-questions@FreeBSD.ORG Tue Jun 12 01:24:30 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DDD0D16A41F for ; Tue, 12 Jun 2007 01:24:30 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id CA51013C447 for ; Tue, 12 Jun 2007 01:24:30 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id BF3051A3C19; Mon, 11 Jun 2007 18:24:13 -0700 (PDT) Received: from rot13.obsecurity.org (rot13.obsecurity.org [192.168.1.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 2F1E1513DD; Mon, 11 Jun 2007 21:24:30 -0400 (EDT) Received: by rot13.obsecurity.org (Postfix, from userid 1001) id 22A40BE79; Mon, 11 Jun 2007 21:24:30 -0400 (EDT) Date: Mon, 11 Jun 2007 21:24:30 -0400 From: Kris Kennaway To: Bill Moran Message-ID: <20070612012430.GA6276@rot13.obsecurity.org> References: <64c038660706111652p311c6d84i1ec295edcfc16994@mail.gmail.com> <20070611201714.35153d92.wmoran@potentialtech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070611201714.35153d92.wmoran@potentialtech.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-questions@freebsd.org, Modulok Subject: Re: umount -f 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: Tue, 12 Jun 2007 01:24:30 -0000 On Mon, Jun 11, 2007 at 08:17:14PM -0400, Bill Moran wrote: > Modulok wrote: > > > > Couple questions for anyone on the list who has a moment (and the answer to > > any of these): > > > > Objective: I need to kick people off of a storage drive (we'll say > > /dev/ad4), without corrupting the file system and without bringing the > > entire system down. I need to safely umount the file systems, even if my > > users have processes which have files open. > > > > 1. If I use "umount -f /dev/ad4s1a" to forcefully umount a file system, does > > this jeopardize the integrity of said file system? Like...will it jerk the > > run out from under a process in the middle of a disk write, thus leaving a > > half written file, or will it wait until the write is complete? (I guess > > this would largely depend on the disk controller?) > > I don't believe there are any guarantees if your -f it. The filesystem > will probably be OK, but I would expect files to get corrupt. Shouldn't happen, if it does it's a bug. Kris