Bug #2988
closed
nfssrv: need ability to go to submounts for v3 and v2 protocols
Added by Vitaliy Gusev almost 10 years ago.
Updated over 2 years ago.
Category:
nfs - NFS server and client
Description
RFCs of NFSv3,v2 protocols don't have mentions for submounts, but for NFSv4 does.
illumos nfs server doesn't go to submounts automatically. Therefore nfs v2,v3-clients need
to be configured with automounter to use exported submounts.
It can be problematic for some nfs-clients. For instance, ESX-server (it uses nfs v3).
Solution: add option for exported NFS-share: "nohide". If share has this option, this exported sub-share will be seen by NFS v2,v3 clients.
By default "nohide" is off.
So admin should do:
share -F nfs -o nohide {SHARE}
Each resource must be shared.
Example:
zfs set -o sharenfs pool/dataset
zfs set -o sharenfs=nohide pool/dataset/subdataset
- Category set to nfs - NFS server and client
Yuri Pankov wrote:
Along with fixes for a lot of mem leaks this commit introduced.
What leaks?
The fix for this is comprised of four fixes from illumos-nexenta:
rb11254 - nfs nohide - "nfssrv: need ability to go to submounts for v3 and v2 protocols"
closes #12112 rb3823 - nfs-nohide: lookup("..") for submount should be correct
NEX-3095 Issues related to NFS nohide
NEX-5196 share_nfs(1M): "nohide" description missing
It has been in production in Nexenta since 2016 or 2017, it seems.
Yes, seems it could be upstreamed.
With linux client and its automount it works fine like for nfs4, i.e. no need to specify each exported path manually.
One of setup was a VMware ESX server and bsros NFS server. Testing cases included
1. Create dataset 'data/b', all was shared and 'data/b' shared with nohide
1. Setup NFS datastore and specify data as NFS share .
2. Create VMs in 'data/b' and start VMs, stop VMs, susped VMs, start "fio".
- Status changed from New to Closed
- % Done changed from 0 to 100
git commit f7db5903887928b2b43995473632ef63d130bbd4
commit f7db5903887928b2b43995473632ef63d130bbd4
Author: Vitaliy Gusev <gusev.vitaliy@nexenta.com>
Date: 2019-11-27T19:57:21.000Z
2988 nfssrv: need ability to go to submounts for v3 and v2 protocols
Portions contributed by: Marcel Telka <marcel.telka@nexenta.com>
Portions contributed by: Jean McCormack <jean.mccormack@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Alek Pinchuk <alek.pinchuk@nexenta.com>
Reviewed by: Dan Fields <dan.fields@nexenta.com>
Reviewed by: Dan McDonald <danmcd@joyent.com>
Approved by: Garrett D'Amore <garrett@damore.org>
Also available in: Atom
PDF