Michael Stalnaker
2008-Sep-18 16:57 UTC
[zfs-discuss] A couple basic questions re: zfs sharenfs
All; I?m sure I?m missing something basic here. I need to do the following things, and can?t for the life of me figure out how: 1. Export a zfs filesystem over NFS, but restrict access to a limited set of hosts and/or subnets: ie: 10.9.8.0/24 and 10.9.9.5 in. 2. give root access to a zfs file system over nfs. I?m sure this is doable with the right options, but I can?t figure out how. Any suggestions? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20080918/ab6bb7ba/attachment.html>
Try something like this: zsfs set sharenfs=options mypool/mydata where options is: sharenfs="rw=@10.9.8.0/24:@10.9.9.5/32,root=@10.9.8.0/24:@10.9.9.5/32" -- Dave Michael Stalnaker wrote:> All; > > I?m sure I?m missing something basic here. I need to do the following > things, and can?t for the life of me figure out how: > > 1. Export a zfs filesystem over NFS, but restrict access to a limited > set of hosts and/or subnets: ie: 10.9.8.0/24 and 10.9.9.5 in. > 2. give root access to a zfs file system over nfs. > > > I?m sure this is doable with the right options, but I can?t figure out how. > > Any suggestions? > > > ------------------------------------------------------------------------ > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Johnson Earls
2008-Sep-18 17:07 UTC
[zfs-discuss] A couple basic questions re: zfs sharenfs
I believe this is just: zfs set sharenfs=''root=host1:host2,rw=@10.9.8.0/24:@10.9.9.5'' filesystem See the man pages for zfs(1M) (especially the last example) and share_nfs(1M). - Johnson Michael Stalnaker wrote:> All; > > I?m sure I?m missing something basic here. I need to do the following > things, and can?t for the life of me figure out how: > > 1. Export a zfs filesystem over NFS, but restrict access to a limited set of > hosts and/or subnets: ie: 10.9.8.0/24 and 10.9.9.5 in. > 2. give root access to a zfs file system over nfs. > > I?m sure this is doable with the right options, but I can?t figure out how. > > Any suggestions? > > > > ------------------------------------------------------------------------ > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss-- - Johnson Earls System Support Lead for Sun Labs West MPK16-1205 x88965 650/786-8965 johnson.earls at sun.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~