From owner-freebsd-questions@FreeBSD.ORG Sat Dec 1 19:09:00 2007 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 30BE316A419 for ; Sat, 1 Dec 2007 19:09:00 +0000 (UTC) (envelope-from rloefgren@forethought.net) Received: from mzpi4.forethought.net (mzpi4.forethought.net [216.241.36.13]) by mx1.freebsd.org (Postfix) with ESMTP id 0F44E13C4CE for ; Sat, 1 Dec 2007 19:08:59 +0000 (UTC) (envelope-from rloefgren@forethought.net) Received: from 206-124-7-66.denver.dsl.forethought.net ([206.124.7.66] helo=auden.jmla.com) by mz2.forethought.net with esmtps (TLSv1:DES-CBC3-SHA:168) (Exim 4.51) id 1IyGQw-0004hO-QU for freebsd-questions@freebsd.org; Fri, 30 Nov 2007 17:42:14 -0700 Date: Fri, 30 Nov 2007 17:42:13 -0700 (MST) From: rloefgren@forethought.net X-X-Sender: rloef@auden.jmla.com To: freebsd-questions@freebsd.org Message-ID: <20071130173222.O1517@auden.jmla.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: gmirror array not unmounting at shutdown 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: Sat, 01 Dec 2007 19:09:00 -0000 I have a mirror with two 500GB SATA drives for storage. The system is on a gmirror of two 18GB SCSIs. the SATA mirror mounts under /u2 and is in fstab. If I reboot, when the machine comes back up I get a notice that /u2 was not unmounted properly. I go into single user, unmount /u2 and do a fsck on /dev/mirror/datas1d. It usually finds some issues and corrects them. Sooner or later it's going to fail at the repair. I thought that by having the array in fstab that the system would take it down properly upon a reboot, but that doesn't appear to be the case. Where can I put a "sync ; umount /u2" where it will take place late enough that /u2 actually will unmount? I've looked at rc.shutdown but can't find a place where such a line actually seems to be executed. thx, r