From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 26 22:37:38 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 705C972; Thu, 26 Feb 2015 22:37:38 +0000 (UTC) Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 0D3DD21C; Thu, 26 Feb 2015 22:37:37 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2ChBQAAn+9U/95baINYA4MkMFUFBIMFvnUKhSdJAoF0AQEBAQEBfIQQAQEEAQEBICsgCxsOCgICDRkCKQEJJgYIBwQBHASIDggFvSSZegEBAQEGAQEBAQEBAQEBGYEhiXKEHQEBGwEjEAcRghwMLxKBMQWKWIh3ghaBMIM6OYtvgkiDPiOCAR2BbiAxBwQBAX45fwEBAQ X-IronPort-AV: E=Sophos;i="5.09,655,1418101200"; d="scan'208";a="195105965" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-annu.net.uoguelph.ca with ESMTP; 26 Feb 2015 17:37:35 -0500 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id F0978B4068; Thu, 26 Feb 2015 17:37:35 -0500 (EST) Date: Thu, 26 Feb 2015 17:37:35 -0500 (EST) From: Rick Macklem To: Jason Hellenthal Message-ID: <1325541115.1293246.1424990255972.JavaMail.root@uoguelph.ca> In-Reply-To: <2976DA93-DD6E-4139-A0C8-3C2587A65362@dataix.net> Subject: Re: only the first two enteries in /etc/exports show up MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [172.17.95.11] X-Mailer: Zimbra 7.2.6_GA_2926 (ZimbraWebClient - FF3.0 (Win)/7.2.6_GA_2926) Cc: freebsd-hackers@freebsd.org, Allan Jude X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2015 22:37:38 -0000 Jason Hellenthal wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > On Feb 26, 2015, at 11:06, Allan Jude wrote: >=20 > On 2015-02-26 11:58, Aryeh Friedman wrote: > On Thu, Feb 26, 2015 at 11:49 AM, Allan Jude > wrote: > On 2015-02-26 11:37, Aryeh Friedman wrote: > having this in /etc/exports: >=20 >=20 > /data/home -maproot=3Droot -network 10.0.10.0/24 > /usr/src -maproot=3Droot -network 10.0.10.0/24 > /usr/ports -maproot=3Droot -network 10.0.10.0/24 >=20 > produces the following results: >=20 >=20 > root@server:/usr/ports # showmount -e > Exports list on localhost: > /data/home 10.0.10.0 > /usr/src 10.0.10.0 >=20 >=20 > It doesn't matter what order I list them in only the first two show > up > in showmount >=20 >=20 > Are you using NFSv3 or NFSv4? >=20 > what ever the base system has 10.1 >=20 >=20 > What does your partitioning layout look like? >=20 > Running as a VM in bhyve >=20 >=20 > Filesystem 1024-blocks Used Avail Capacity Mounted on > /dev/vtbd0p2 9637788 8583820 282948 97% / > devfs 1 1 0 100% /dev > /dev/vtbd1 152334812 68 140147960 0% /data >=20 >=20 >=20 > When you reload mountd, does it emit any errors? (check syslog as > well) >=20 > No errors on the command line.... in syslog: >=20 > Feb 26 06:57:27 server mountd[1299]: can't change attributes for > /usr/ports: Invalid radix node head, rn: 0 0xfffff80003993100 > Feb 26 06:57:27 server mountd[1299]: bad exports list line /usr/ports > -maproot >=20 >=20 > - -- > Allan Jude >=20 >=20 >=20 >=20 >=20 > You can only have 1 export per mount point in NFSv3 (in V4, you can > only > export the root of a mount point) >=20 > So what you want in your config file is: >=20 > /data/home -maproot=3Droot -network 10.0.10.0/24 > /usr/src /usr/ports -maproot=3Droot -network 10.0.10.0/24 >=20 Actually, this will be fine for NFSv4 as well as NFSv3 (assuming a V4: line was added to /etc/exports. Although exporting the root will be less confusing, any export within a ser= ver file system (such as "/" in this case) will export the entire file system f= or NFSv4. (ie. The /usr/src and /usr/ports are referred to as administrative c= ontrols and are only applied by mountd, which NFSv4 doesn't talk to.) W.r.t. NFSv3 Jason has it completely correct afaik, rick >=20 > - -- > Allan Jude >=20 > As can be seen from ( man 5 exports ) examples section=E2=80=A6 > http://j.mp/1AwAup6 >=20 > That would lead me to believe I need to use =E2=80=9C/usr=E2=80=9D at the= beginning > of the export line since it is the root of the NFS share. >=20 > Also looking at the grouping of examples might lead someone to > believe that more than one =E2=80=9C/usr/*=E2=80=9D can be specified more= than once > on separate lines. >=20 >=20 > Just a perspective that might need some clarification since at a > quick glance could be interpreted multiple ways. >=20 >=20 > - -- > Jason Hellenthal > Mobile: +1 (616) 953-0176 > jhellenthal@DataIX.net > JJH48-ARIN >=20 > -----BEGIN PGP SIGNATURE----- >=20 > iQEcBAEBAgAGBQJU72OAAAoJEDLu+wRc4KcIjVIIAKW6U5z7MDK65zCqwcB1n+Zj > WxyukhsSlk49weIIj8Ied/VE8CRThgHvHdWqQ6TxOAgwfi5lz/WksPbFUpOLg5WK > rjNW+vr9j/2PTSWVDJaDDo/P/R2/8e47cuLRuc/YUhEL7q0FgKzl0vip0WE/zUWf > Ws/XyPi8RWnMdpfoQlW/vddZwjzooCJfQZ+X1kYSba/LidzmvD6/axP1C4V8xD+v > daMCBG0894IW1toJo/bBmt9p4EeDIISPVSfVFBK/ReJjMwe8Izq0cJtpUzRwWYDx > f6mfXxTXwp7TdtH8aw/dx7d0BY0kFoZrbGYecV083nxEAMVfHGkxuhiho/KMvZo=3D > =3D+Sx5 > -----END PGP SIGNATURE----- > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org"