From owner-freebsd-bugs@FreeBSD.ORG Sun Sep 25 18:50:09 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48C071065672 for ; Sun, 25 Sep 2011 18:50:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C949B8FC13 for ; Sun, 25 Sep 2011 18:50:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8PIo8ca048812 for ; Sun, 25 Sep 2011 18:50:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8PIo8RV048811; Sun, 25 Sep 2011 18:50:08 GMT (envelope-from gnats) Resent-Date: Sun, 25 Sep 2011 18:50:08 GMT Resent-Message-Id: <201109251850.p8PIo8RV048811@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Garrett Cooper Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 213731065674 for ; Sun, 25 Sep 2011 18:48:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 11C6C8FC0C for ; Sun, 25 Sep 2011 18:48:00 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p8PIlx1H051418 for ; Sun, 25 Sep 2011 18:47:59 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p8PIlxCZ051417; Sun, 25 Sep 2011 18:47:59 GMT (envelope-from nobody) Message-Id: <201109251847.p8PIlxCZ051417@red.freebsd.org> Date: Sun, 25 Sep 2011 18:47:59 GMT From: Garrett Cooper To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/161016: umount doesn't fully sync UFS filesystems on 9.x X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Sep 2011 18:50:09 -0000 >Number: 161016 >Category: misc >Synopsis: umount doesn't fully sync UFS filesystems on 9.x >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Sep 25 18:50:08 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Garrett Cooper >Release: 9.0-BETA2 >Organization: iXsystems, Inc. >Environment: FreeBSD fallout.local 9.0-BETA2 FreeBSD 9.0-BETA2 #10 r225587M: Thu Sep 15 09:07:08 PDT 2011 root@fallout.local:/usr/obj/usr/src/sys/FALLOUT amd64 >Description: As discussed here [1] and here [2], there appears to be a bug in how data is being synced out to memory disks in the base system which causes repeated builds in nanobsd to fail unless adds 2 explicit sync's before each umount operation is performed; this is odd because umount(8) explicitly sync's unless -f is specified (previously, it explicitly called sync whenever umount was called -- see http://svnweb.freebsd.org/base?view=revision&revision=222466 ). I've run into this bug where the underlying storage used for the vnode disk is either housed on UFS or ZFS, which suggests that the vnode backed disk is the problem child. FreeNAS uses UFS1 SU (we don't modify the arguments passed via the $NANO_NEWFS var), but lev@ also reported that he ran into issues with UFS2 SU, which suggests that it's a generic syncing problem with UFS + SU and/or how md(4)s sync outstanding writes out to disk. 1. http://www.mavetju.org/mail/view_message.php?list=freebsd-embedded&id=3382579&raw=yes 2. http://comments.gmane.org/gmane.os.freebsd.current/135617 >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: