Hello,
I am evaluating a move from Solaris 11.4 to FreeBSD 13 and would like to know how you distribute ZFS datasets of hundreds of users (home directories) via NFS. Each user has a dataset under
for the two subnets 172.29.2.0/24 and 172.29.4.0/24. Each dataset under
gives
and
Searching for a solution I found that one should put the datasets one wants to export in /etc/exports. But this is very tedious and error-prone for hundreds of users, isn't it?
Thank you
Willi
I am evaluating a move from Solaris 11.4 to FreeBSD 13 and would like to know how you distribute ZFS datasets of hundreds of users (home directories) via NFS. Each user has a dataset under
tank/home
and there are four to six subnets for which the datasets should be made available. Under Solaris this can be done with
Code:
zfs set share.nfs.sec.sys.rw=@172.29.2.0/24:@172.29.4.0/24 tank/home
for the two subnets 172.29.2.0/24 and 172.29.4.0/24. Each dataset under
tank/home
inherits the share configuration. No files have to be edited for this to work. What would be the equivalent under FreeBSD? What is documented in man zfs
does not work. The example
Code:
zfs set sharenfs='rw=@172.29.2.0/24' tank/home
gives
Code:
Apr 21 10:02:24 bsdfs01 mountd[2547]: can't get address info for host rw=@172.29.2.0/24
Apr 21 10:02:24 bsdfs01 mountd[2547]: bad host rw=@172.29.2.0/24, skipping
and
showmount -e
is empty.Searching for a solution I found that one should put the datasets one wants to export in /etc/exports. But this is very tedious and error-prone for hundreds of users, isn't it?
Thank you
Willi