From owner-freebsd-stable@FreeBSD.ORG Sun Jul 1 12:05:37 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58BCA106568E for ; Sun, 1 Jul 2012 12:05:37 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-scalar.mail.uoguelph.ca (esa-scalar.mail.uoguelph.ca [66.199.40.18]) by mx1.freebsd.org (Postfix) with ESMTP id E89AD8FC18 for ; Sun, 1 Jul 2012 12:05:36 +0000 (UTC) Received: from zcs3.mail.uoguelph.ca (new.mail.uoguelph.ca [131.104.93.37]) by esa-scalar.mail.uoguelph.ca (8.14.1/8.14.1) with ESMTP id q61C5T9P010049; Sun, 1 Jul 2012 08:05:30 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id E9992B4022; Sun, 1 Jul 2012 08:05:29 -0400 (EDT) Date: Sun, 1 Jul 2012 08:05:29 -0400 (EDT) From: Rick Macklem To: Jason Hellenthal Message-ID: <459242706.2441844.1341144329917.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <20120701030220.GA11912@DataIX.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.202] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692) Cc: Marcin Wisnicki , freebsd-stable@freebsd.org Subject: Re: mountd suddenly stopped working 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: Sun, 01 Jul 2012 12:05:37 -0000 Jason Hellenthal wrote: > On Sat, Jun 30, 2012 at 09:07:17PM +0000, Marcin Wisnicki wrote: > > On Sat, 30 Jun 2012 16:21:18 +0200, Ronald Klop wrote: > > > > > On Sat, 30 Jun 2012 15:53:53 +0200, Marcin Wisnicki > > > wrote: > > > > > >> I have just rebooted an old system after 100 days of uptime and > > >> this > > >> came up: > > >> > > >> Jun 30 15:39:00 ghost mountd[1592]: can't change attributes for > > >> /tftpboot Jun 30 15:39:00 ghost mountd[1592]: bad exports list > > >> line > > >> /tftpboot -ro -mapall > > >> > > > > > > Than probably somebody changed something else. Can you provide the > > > content of your exports file? > > > > > > > OK, I've found the reason. > > > > There were two paths exported with same attributes: > > > > /tftpboot -ro -mapall=nobody > > /vol/tank1 -ro -mapall=nobody > > > > As long as there is a filesystem mounted on /vol/tank1, above > > exports > > will work. Since I've disconnected that drive, there was nothing > > mounted > > this time. > > > > Apparently mountd does not allow exporting multiple paths from a > > single > > filesystem on separate lines if they happen to have identical > > attributes. > > > > Its been like that for a long time. I remember running into this way > back on 6.X and 5.X. > > The solution is to: > > /tftpboot /vol/tank1 -ro -mapall=nobody > Yea, since it doesn't specify any host/network, it is the "default" entry that covers "the rest of the world". As such, there can only be one/server file system. So, if /tftpboot and /vol/tank are the same server file system, the above makes mountd happy. (I tend to use -alldirs instead of listing the mount directories, because I find it less confusing, but that's personal taste.) rick > -- > > - (2^(N-1)) > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to > "freebsd-stable-unsubscribe@freebsd.org"