What is the state of ZFS on FreeBSD?
Freddie Cash
fjwcash at gmail.com
Thu Nov 5 23:33:26 UTC 2009
On Thu, Nov 5, 2009 at 3:17 PM, krad <kraduk at googlemail.com> wrote:
> 2009/11/5 Freddie Cash <fjwcash at gmail.com>
>> The syntax is the same. Anything you can put into /etc/exports you
>> can put into the sharenfs property. In fact, behind the scenes, the
>> sharenfs property is just copied into a private exports file, and the
>> nfs daemon uses that in addition to /etc/exports.
>>
>> The man pages for ZFS are just dumps of the Solaris ones, so a lot of
>> the info is not quite right for a FreeBSD system.
>
> unless im missing something you have to do it the legacy way
>
> (root at carrera)-(23:13:05)-(~) 0
> $ zfs set sharenfs=yes zdump/web
> (root at carrera)-(23:13:23)-(~) 0
> $ showmount -e 127.0.0.1
> Exports list on 127.0.0.1:
> /videos Everyone
> (root at carrera)-(23:13:26)-(~) 0
> $
Put the settings you would normally put into /etc/exports into the
sharenfs property:
[fcash at megadrive ~]$ zfs get sharenfs storage/backup
NAME PROPERTY VALUE SOURCE
storage/backup sharenfs -maproot=root 192.168.0.12 local
[fcash at megadrive ~]$ showmount -e
Exports list on localhost:
/storage/backup 192.168.0.12
--
Freddie Cash
fjwcash at gmail.com
More information about the freebsd-current
mailing list