Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Sep 2011 18:47:59 GMT
From:      Garrett Cooper <gcooper@ixsystems.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/161016: umount doesn't fully sync UFS filesystems on 9.x
Message-ID:  <201109251847.p8PIlxCZ051417@red.freebsd.org>
Resent-Message-ID: <201109251850.p8PIo8RV048811@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109251847.p8PIlxCZ051417>