only the first two enteries in /etc/exports show up

Rick Macklem rmacklem at uoguelph.ca
Thu Feb 26 22:37:38 UTC 2015


Jason Hellenthal wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Feb 26, 2015, at 11:06, Allan Jude <allanjude at freebsd.org> wrote:
> 
> On 2015-02-26 11:58, Aryeh Friedman wrote:
> On Thu, Feb 26, 2015 at 11:49 AM, Allan Jude <allanjude at freebsd.org>
> wrote:
> On 2015-02-26 11:37, Aryeh Friedman wrote:
> having this in /etc/exports:
> 
> 
> /data/home -maproot=root -network 10.0.10.0/24
> /usr/src -maproot=root -network 10.0.10.0/24
> /usr/ports -maproot=root -network 10.0.10.0/24
> 
> produces the following results:
> 
> 
> root at server:/usr/ports # showmount -e
> Exports list on localhost:
> /data/home                         10.0.10.0
> /usr/src                           10.0.10.0
> 
> 
> It doesn't matter what order I list them in only the first two show
> up
> in showmount
> 
> 
> Are you using NFSv3 or NFSv4?
> 
> what ever the base system has 10.1
> 
> 
> What does your partitioning layout look like?
> 
> Running as a VM in bhyve
> 
> 
> 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
> 
> 
> 
> When you reload mountd, does it emit any errors? (check syslog as
> well)
> 
> No errors on the command line.... in syslog:
> 
> 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
> 
> 
> - --
> Allan Jude
> 
> 
> 
> 
> 
> You can only have 1 export per mount point in NFSv3 (in V4, you can
> only
> export the root of a mount point)
> 
> So what you want in your config file is:
> 
> /data/home -maproot=root -network 10.0.10.0/24
> /usr/src /usr/ports -maproot=root -network 10.0.10.0/24
> 
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 server
file system (such as "/" in this case) will export the entire file system for
NFSv4. (ie. The /usr/src and /usr/ports are referred to as administrative controls
and are only applied by mountd, which NFSv4 doesn't talk to.)

W.r.t. NFSv3 Jason has it completely correct afaik, rick

> 
> - --
> Allan Jude
> 
> As can be seen from ( man 5 exports ) examples section…
> http://j.mp/1AwAup6
> 
> That would lead me to believe I need to use “/usr” at the beginning
> of the export line since it is the root of the NFS share.
> 
> Also looking at the grouping of examples might lead someone to
> believe that more than one “/usr/*” can be specified more than once
> on separate lines.
> 
> 
> Just a perspective that might need some clarification since at a
> quick glance could be interpreted multiple ways.
> 
> 
> - --
>  Jason Hellenthal
>  Mobile: +1 (616) 953-0176
>  jhellenthal at DataIX.net
>  JJH48-ARIN
> 
> -----BEGIN PGP SIGNATURE-----
> 
> 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=
> =+Sx5
> -----END PGP SIGNATURE-----
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to
> "freebsd-hackers-unsubscribe at freebsd.org"


More information about the freebsd-hackers mailing list