Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Nov 2006 08:41:19 -0800
From:      "Kevin Oberman" <oberman@es.net>
To:        freebsd-stable@FreeBSD.ORG, ohartman@mail.zedat.fu-berlin.de
Subject:   Re: Problems unmounting/fssyncking extern UFS filesystem 
Message-ID:  <20061127164119.E63DB45054@ptavv.es.net>
In-Reply-To: Your message of "Mon, 27 Nov 2006 14:53:06 %2B0100." <200611271353.kARDr6tN034491@lurza.secnetix.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
--==_Exmh_1164645679_22634P
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

> Date: Mon, 27 Nov 2006 14:53:06 +0100 (CET)
> From: Oliver Fromme <olli@lurza.secnetix.de>
> Sender: owner-freebsd-stable@freebsd.org
> 
> O. Hartmann wrote:
>  > Maybe amd() dismounts to early ... Don't know. Maybe the magic
>  > 'sync;sync;sync' before dismounting will help, I'll try it.
> 
> As far as I know, that's not different from calling "sync"
> just once.  It might make more sense to put a little sleep
> between the sync calls, though.

The traditional mantra was
sync
sync
sync
and not sync;sync;sync. The reason was timing. By entering the sync
command three times as fast as anyone could type, the sync could
reliably complete.

That mantra is about 25 years old, so its validity on modern hardware is
questionable, but the need for a delay is very real. I would suggest
something like: sync && sleep 5
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net			Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751

--==_Exmh_1164645679_22634P
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)
Comment: Exmh version 2.5 06/03/2002

iD8DBQFFaxUvkn3rs5h7N1ERAuUiAJ9RN07LgJwxwyF0uocunaVZfVr9JgCglpAs
DcYpPJGChvZKLg0yZkT/HGw=
=BuVR
-----END PGP SIGNATURE-----

--==_Exmh_1164645679_22634P--



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