NFS on zfs question

  • Follow


I get the zfs set sharenfs=on mypool/myzfs
to share /mypool/myzfs

what about if I want to do
share -F nfs -o rw root=12.146.89.78 /mypool/myzfs

how do I do this in the zfs set sharenfs=on mypool/myzfs command

I'd rather share using the zfs sharenfs and not share -F nfs
0
Reply Rick 1/9/2011 3:10:10 AM

On Jan 8, 9:10=A0pm, Rick Smith <ricksmith.use...@gmail.com> wrote:
> I get the zfs set sharenfs=3Don mypool/myzfs
> to share /mypool/myzfs
>
> what about if I want to do
> share -F nfs -o rw root=3D12.146.89.78 /mypool/myzfs
>
> how do I do this in the zfs set sharenfs=3Don mypool/myzfs command
>
> I'd rather share using the zfs sharenfs and not share -F nfs

From the zfs man page:
The following commands show how to set sharenfs property options to
enable rw access for a set of IP addresses and to enable root access
for system neo on the tank/home file system.

# zfs set sharenfs=3D'rw=3D@123.123.0.0/16,root=3Dneo' tank/home
0
Reply kartikvashishta108 1/9/2011 3:17:28 AM


On 01/ 9/11 04:10 PM, Rick Smith wrote:
> I get the zfs set sharenfs=on mypool/myzfs
> to share /mypool/myzfs
>
> what about if I want to do
> share -F nfs -o rw root=12.146.89.78 /mypool/myzfs
>
> how do I do this in the zfs set sharenfs=on mypool/myzfs command

This is well documented in the zfs man page, you should read it (twice).

      sharenfs=on | off | opts

          Controls whether the file system is shared via NFS,  and
          what  options  are  used.  A file system with a sharenfs
          property of off is  managed  through  traditional  tools
          such  as  share(1M),  unshare(1M), and dfstab(4). Other-
          wise,  the  file  system  is  automatically  shared  and
          unshared with the zfs share and zfs unshare commands. If
          the property is set to  on,  the  share(1M)  command  is
          invoked  with  no options. Otherwise, the share(1M) com-
          mand is invoked with options equivalent to the  contents
          of this property.

-- 
Ian Collins
0
Reply Ian 1/9/2011 4:09:19 AM

2 Replies
478 Views

(page loaded in 0.06 seconds)

Similiar Articles:













7/21/2012 5:16:18 PM


Reply: