Thursday, October 9, 2014

ZFS NFS Share

New Sharing

zfs set sharenfs=rw=host1:host2:host3,ro=host4 pool1
unless you really do need to be exporting the filesystems with root permissions to all those hosts, in which case it's safest to be explicit:
zfs set sharenfs=rw=host1:host2:host3,root=host1:host2:host3,ro=host4 pool1
 

Modify Existing NFS sharing on ZFS

 
# zfs get share goweek/ishare
NAME         PROPERTY  VALUE  SOURCE
goweek/ishare  share     name=ishare,path=/ishare,prot=smb,csc=auto  local
goweek/ishare  share     name=goweek_ishare,path=/ishare,prot=nfs,sec=sys,root=effectivea.goweekend.ca:effectiveb.goweekend.ca:mtata3.goweekend.ca:blue2.goweekend.ca:biserver.goweekend.ca:blue.goweekend.ca:purple.goweekend.ca,prot=smb  local

# zfs set share=name=goweek,path=/ishare,prot=nfs,anon=65534,sec=sys,root=effectivea.goweekend.ca:effectiveb.goweekend.ca:mtata3.goweekend.ca:blue2.goweekend.ca:vmtata01.goweekend.ca:blue.goweekend.ca:purple.goweekend.ca:wsdev.goweekend.ca,prot=smb goweek/ishare
name=goweek_ishare,path=/ishare,prot=nfs,anon=65534,sec=sys,root=effectivea.goweekend.ca:effectiveb.goweekend.ca:mtata3.goweekend.ca:blue2.goweekend.ca:vmtata01.goweekend.ca:blue.goweekend.ca:purple.goweekend.ca:wsdev.goweekend.ca,prot=smb 

No comments:

Post a Comment