I have a working NFS server in VNET jail, but when i replace shared folder with nullfs mount, then something breaks.
/etc/exports:
If /shared is directory inside jail, then NFS server works. When i nullfs mount to the same directory in jail, then NFS server does not work.
/usr/local/bastille/jails/nfs/fstab:
From /var/log/messages:
From /etc/rc.conf:
File system in jail host is ZFS.
Is it possible to NFS share nullfs mounted directory?
/etc/exports:
Code:
/shared -ro 10.0.30.27
/shared -ro 10.0.30.14
If /shared is directory inside jail, then NFS server works. When i nullfs mount to the same directory in jail, then NFS server does not work.
/usr/local/bastille/jails/nfs/fstab:
Code:
/usr/local/bastille/releases/14.0-RELEASE /usr/local/bastille/jails/nfs/root/.bastille nullfs ro 0 0
/ssdpool/test /usr/local/bastille/jails/nfs/root/shared nullfs rw 0 0
From /var/log/messages:
Code:
Aug 22 13:55:29 nfs mountd[48781]: can't delete exports for /: Invalid argument Invalid fstype
Aug 22 13:55:29 nfs mountd[48781]: can't export /shared Invalid fstype
Aug 22 13:55:29 nfs mountd[48781]: bad exports list line '/shared -ro 10.0.30.27'
Aug 22 13:55:29 nfs mountd[48781]: can't export /shared Invalid fstype
Aug 22 13:55:29 nfs mountd[48781]: bad exports list line '/shared -ro 10.0.30.14'
From /etc/rc.conf:
Code:
...
rpcbind_enable="YES"
nfs_server_enable="YES"
nfs_server_flags="-t"
mountd_enable="YES"
File system in jail host is ZFS.
Is it possible to NFS share nullfs mounted directory?