Hello folks! With the integration of illumos#11083 (support NFS server in-zone), aka IPD 11, illumos users may now run NFS servers inside a non-global zone. The illumos issue 12278 covers man page changes for this project, and will eventually contain items mentioned here.
Distribution maintainers may need to update zone brand definitions to include sharefs as a device in the zone. There may be other merge issues. I'll be available to help with any of these. Two distros were used for testing this, and each has an nfs-zone branch of the project-in-process. Especially for ZFS, but in general, your zone MUST have the root of the filesystem containing a directory to be shared in-zone. This affects some zone brands differently. For example, SmartOS "joyent" zones do not receive their own delegated/zone-owned ZFS filesystems by default: joyent zones' roots are a subdirectory in the zone's ZFS filesystem. One can share a directory using share(1M) or a whole ZFS filesystem using `zfs set sharenfs=on` so long as the zone has the ZFS filesystem delegated to it. If you want a zone to share a subset of a larger ZFS filesystem, you can use lofs-mounted directories assigned to a zone as well. Because this project allowed sharefs to be instantiated per zone, beyond `zfs set sharenfs=on` working in-zone, `zfs set sharesmb=<parameters>` also now works. NOTE that share(1M) always worked for SMB/CIFS, so please don't think there is a lot of new SMB/CIFS magic here. (Thanks to SMB/CIFS developers for being ahead of NFS here.) Thanks to Nexenta for doing the heavy lifting, to all of the reviewers and testers, and to Joyent for finding an immediate use for, and giving me work-time to work on, this. Happy NFS-sharing! Dan ------------------------------------------ illumos: illumos-discuss Permalink: https://illumos.topicbox.com/groups/discuss/T1d5b682aba0c0998-M8ca8b1cbb165028ae6d8e7e9 Delivery options: https://illumos.topicbox.com/groups/discuss/subscription
