misc/161016: umount doesn't fully sync UFS filesystems on 9.x
gcooper at ixsystems.com
Sun Sep 25 18:50:09 UTC 2011
>Synopsis: umount doesn't fully sync UFS filesystems on 9.x
>Arrival-Date: Sun Sep 25 18:50:08 UTC 2011
>Originator: Garrett Cooper
FreeBSD fallout.local 9.0-BETA2 FreeBSD 9.0-BETA2 #10 r225587M: Thu Sep 15 09:07:08 PDT 2011 root at fallout.local:/usr/obj/usr/src/sys/FALLOUT amd64
As discussed here  and here , 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.
More information about the freebsd-bugs