From owner-freebsd-current@FreeBSD.ORG Wed Jun 17 15:21:00 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B24B01065670; Wed, 17 Jun 2009 15:21:00 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 22F348FC12; Wed, 17 Jun 2009 15:20:59 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAEimOEqDaFvI/2dsb2JhbADVY4QIBQ X-IronPort-AV: E=Sophos;i="4.42,236,1243828800"; d="scan'208";a="36650170" Received: from darling.cs.uoguelph.ca ([131.104.91.200]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 17 Jun 2009 11:20:59 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by darling.cs.uoguelph.ca (Postfix) with ESMTP id 2F823940065; Wed, 17 Jun 2009 11:20:59 -0400 (EDT) X-Virus-Scanned: amavisd-new at darling.cs.uoguelph.ca Received: from darling.cs.uoguelph.ca ([127.0.0.1]) by localhost (darling.cs.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fX6mRx212yYe; Wed, 17 Jun 2009 11:20:58 -0400 (EDT) Received: from muncher.cs.uoguelph.ca (muncher.cs.uoguelph.ca [131.104.91.102]) by darling.cs.uoguelph.ca (Postfix) with ESMTP id 2E247940063; Wed, 17 Jun 2009 11:20:58 -0400 (EDT) Received: from localhost (rmacklem@localhost) by muncher.cs.uoguelph.ca (8.11.7p3+Sun/8.11.6) with ESMTP id n5HFMkp11991; Wed, 17 Jun 2009 11:22:46 -0400 (EDT) X-Authentication-Warning: muncher.cs.uoguelph.ca: rmacklem owned process doing -bs Date: Wed, 17 Jun 2009 11:22:46 -0400 (EDT) From: Rick Macklem X-X-Sender: rmacklem@muncher.cs.uoguelph.ca To: Kris Kennaway In-Reply-To: <4A38C92F.7050809@FreeBSD.org> Message-ID: References: <4A38C92F.7050809@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Current , Pawel Jakub Dawidek , Kip Macy Subject: Re: destroyed NFS exported filesystems not removed from /etc/zfs/exports X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jun 2009 15:21:01 -0000 On Wed, 17 Jun 2009, Kris Kennaway wrote: > mountd was failing to start after an upgrade, with lots of log entries like: > > Jun 17 10:19:22 pointyhat mountd[855]: bad exports list line > /a/portbuild/i386/20090421213917 > Jun 17 10:19:22 pointyhat mountd[855]: bad exports list line > /a/portbuild/i386/7-exp/builds/20090422073914/src > Jun 17 10:19:22 pointyhat mountd[855]: bad exports list line > /a/portbuild/i386/8-exp/builds/20080814181849/ports > > These came from /etc/zfs/exports, and refer to filesystems that used to exist > & were exported, but which have been destroyed. These were not cleaned up at > destroy time. > > zfs unshare -a didn't clean this file up either, I had to remove it and > recreate. > > Also, mountd was treating these as fatal errors at runtime and failing to > start. I think this is a recent change in mountd, since this used to work > even with the stale entries (the 200808 filesystem was destroyed in 2008, and > mountd has started correctly after numerous reboots until the upgrade I just > did from a May 9 world+kernel). > Well, the most recent change pre-May 9 done to mountd.c was on Nov. 3. It involved adding security flavors to the exports. (http://svn.freebsd.org/viewc/base/ is your friend:-) I can't think of how that might have broken things, but I don't know diddly about zfs. rick