From owner-freebsd-fs@FreeBSD.ORG Sat May 4 21:23:44 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 7E7CEFCA for ; Sat, 4 May 2013 21:23:44 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 49135FE4 for ; Sat, 4 May 2013 21:23:43 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqIEANp7hVGDaFvO/2dsb2JhbABQgz6DPLwHgRN0gh8BAQEEAQEBICsgCxsOCgICDRkCKQEJJgYIBwQBGAQEh2sMsB6QJ4EkjFt+NAeCQIETA5RsgkKBJpAOgykgMoEENQ X-IronPort-AV: E=Sophos;i="4.87,613,1363147200"; d="scan'208";a="26729089" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu.net.uoguelph.ca with ESMTP; 04 May 2013 17:23:37 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 2C076B4081; Sat, 4 May 2013 17:23:37 -0400 (EDT) Date: Sat, 4 May 2013 17:23:37 -0400 (EDT) From: Rick Macklem To: Jeremy Chadwick Message-ID: <942531517.122341.1367702617117.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <20130504191323.GA71065@icarus.home.lan> Subject: Re: Restarting exports disturbs NFS clients MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.203] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692) Cc: freebsd-fs@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 May 2013 21:23:44 -0000 Jeremy Chadwick wrote: > On Sat, May 04, 2013 at 03:08:43PM -0400, Daniel Feenberg wrote: > > > > When we change the exportfs file on our FreeBSD 9.1 fileserver and > > signal > > mountd to reread the file: > > > > kill -HUP `cat /var/run/mountd.pid` > > > > it kills the jobs on clients that have files open on the fileserver. > > They > > terminate with an I/O error. The same thing happens if NFS is > > restarted. > > > > This is pretty inconvenient for users (and us). Is there a way > > around this? We have noticed that a Linux fileserver can restart nfs > > without distrubing clients (other than a short pause). The Linux > > restart doesn't restart the locking mechanism - is that the > > difference? We could do without locks, even without NFSv4, for that > > matter, if it would let us change exports without disturbing users. > > Perhaps there is an NFS shutdown procedure that we should be using? > > http://svnweb.freebsd.org/base/stable/9/usr.sbin/mountd/mountd.c?view=log > > See commit r243739. > > TL;DR -- Try running stable/9 instead of 9.1-RELEASE. > If the above doesn't work for you, the other alternative is to switch from using mountd to nfse, which can be found on sourceforge. rick > -- > | Jeremy Chadwick jdc@koitsu.org | > | UNIX Systems Administrator http://jdc.koitsu.org/ | > | Mountain View, CA, US | > | Making life hard for others since 1977. PGP 4BD6C0CB | > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"