From owner-freebsd-fs@FreeBSD.ORG Tue May 22 13:07:55 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 905E816A421 for ; Tue, 22 May 2007 13:07:55 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from mh2.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id 6573713C465 for ; Tue, 22 May 2007 13:07:55 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from neutrino.centtech.com (neutrino.centtech.com [10.177.171.220]) by mh2.centtech.com (8.13.8/8.13.8) with ESMTP id l4MD7qJ5021298; Tue, 22 May 2007 08:07:53 -0500 (CDT) (envelope-from anderson@freebsd.org) Message-ID: <4652EB24.20000@freebsd.org> Date: Tue, 22 May 2007 08:07:48 -0500 From: Eric Anderson User-Agent: Thunderbird 2.0.0.0 (X11/20070521) MIME-Version: 1.0 To: Attila Nagy References: <4651D2E1.6090100@fsn.hu> In-Reply-To: <4651D2E1.6090100@fsn.hu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/3281/Tue May 22 03:50:43 2007 on mh2.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=8.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on mh2.centtech.com Cc: freebsd-fs@freebsd.org Subject: Re: softdep_waitidle: Failed to flush worklist X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2007 13:07:55 -0000 On 05/21/07 12:12, Attila Nagy wrote: > Hello, > > I have some read only NFS servers, which share a virtual IP (with CARP) > to provide fault resilience. One of them is the > master server, on which I occasionally modify the NFS share's content. > To make this possible, I have a real UFS file system, on which I have a > smaller file. This holds the file system image, which I rsync to the > other servers, if needed. > > The setup: > # mdconfig -lu 0 > md0 vnode 19G /data/nfsimg > # mount | grep nfs > /dev/md0 on /nfs (ufs, NFS exported, local, soft-updates) > > The modify process is like this: > #mount -o rw -u /nfs > [modify content] > #mount -o ro -u /nfs > [rsync /data/nfsimg to the other machines] > > This has worked like a charm until now. Since I've upgraded the OS to > RELENG_6 as of today, I get the following > line into the syslog everytime I modify something on /nfs and want to do > a read only remount: > softdep_waitidle: Failed to flush worklist for 0xffffff0054e00630 > and the remount command (mount -o ro -u /nfs) fails with: > mount: /dev/md0: Device busy > > Before the upgrade (RELENG_6 from Sep 29 2006), I couldn't notice this > behaviour, so something must have changed in the last 3/4 year. :) > > Of course I can turn softupdates off, but it would be interesting to > know what causes this difference... > I used to see that on some filesystems (2TB) when I would do a large number of writes, then immediately mount -u -ro like you are doing. I dodged it by putting a sleep and sync between the finish of my writes, and the mount update (I think it was 30 seconds). I never tracked it down to anything, and honestly forgot until now that I did that. Eric