From owner-freebsd-stable@FreeBSD.ORG Mon Nov 27 16:55:33 2006 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 37EBF16A47B for ; Mon, 27 Nov 2006 16:55:33 +0000 (UTC) (envelope-from SRS0=af3c337f1022407d5336cfb96f8b831c47524b99=167=es.net=oberman@es.net) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 296B643D53 for ; Mon, 27 Nov 2006 16:54:31 +0000 (GMT) (envelope-from SRS0=af3c337f1022407d5336cfb96f8b831c47524b99=167=es.net=oberman@es.net) Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP (SSL) id FBQ57820; Mon, 27 Nov 2006 08:41:20 -0800 Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id E63DB45054; Mon, 27 Nov 2006 08:41:19 -0800 (PST) To: freebsd-stable@FreeBSD.ORG, ohartman@mail.zedat.fu-berlin.de In-Reply-To: Your message of "Mon, 27 Nov 2006 14:53:06 +0100." <200611271353.kARDr6tN034491@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1164645679_22634P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Mon, 27 Nov 2006 08:41:19 -0800 From: "Kevin Oberman" Message-Id: <20061127164119.E63DB45054@ptavv.es.net> Cc: Subject: Re: Problems unmounting/fssyncking extern UFS filesystem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2006 16:55:33 -0000 --==_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 > 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--