From owner-freebsd-questions@FreeBSD.ORG Mon Jun 11 23:52:04 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 CA0A916A400 for ; Mon, 11 Jun 2007 23:52:04 +0000 (UTC) (envelope-from modulok@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by mx1.freebsd.org (Postfix) with ESMTP id A69A513C44B for ; Mon, 11 Jun 2007 23:52:04 +0000 (UTC) (envelope-from modulok@gmail.com) Received: by wa-out-1112.google.com with SMTP id j37so2535410waf for ; Mon, 11 Jun 2007 16:52:04 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=TKuCpjfsU8VTXRAlIVneN1Y3GkZRb8QQZtUNg4e6F2CpaxoFB/o2sXEqVX1irDxe6t65P95mS777SFkyttmRKmt/N0CwFB+0VSzxtDycBRA3k0AkqUUefrSN8MX3YkIjb8GxOIaN22+zBiRKfFLdEms2dVeqLkp9KGA4TMHq3Zo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=CM+RtQ74F56PGzqzuceDYFMWyAgtF4Eua5MpIR2mn/DboYlfs4yVV9aMd7xMy9UZayf2mzh7rm7HrQU9kNx28GJifGJfyZUrQT+qATU7HD54fUdAIeYpNGZ+Pbt656vFS+ozZdOKrHngLRCFgXIwRqaegdUUuO18Mmy2qZ032dg= Received: by 10.115.95.1 with SMTP id x1mr6031805wal.1181605923696; Mon, 11 Jun 2007 16:52:03 -0700 (PDT) Received: by 10.141.85.2 with HTTP; Mon, 11 Jun 2007 16:52:03 -0700 (PDT) Message-ID: <64c038660706111652p311c6d84i1ec295edcfc16994@mail.gmail.com> Date: Mon, 11 Jun 2007 16:52:03 -0700 From: Modulok To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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: Mon, 11 Jun 2007 23:52:04 -0000 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?) 2. How do I get a list of processes that are accessing a specific file system, e.g. /dev/ad4s1a? 3. Is there any safe way to unconditionally umount a file system, even if a run-away process is writing to it (as bad of an idea as this is)? Thanks. -Modulok-