ZFS sharenfs problem

Radek Krejča radek.krejca at starnet.cz
Wed Aug 15 14:27:03 UTC 2012


Hello,

after upgrade to fbsd 9.0 I dont know how to set sharenfs on zfs filesystem correctly.

On the older version of freebsd I used:

zfs set sharenfs=-alldirs -maproot=0 pokus.starnet.cz storage/pokus

on the same version of freebsd, but after uprade zfs
zfs set sharenfs=rw=@pokus.starnet.cz,root=0 storage/pokus
command ended fine, but on freebsd 9.0 I got with this command 
Aug 14 12:26:48 storage mountd[1181]: bad exports list line /usr/local/storage/pokus  rw=@pokus.starnet.cz root=0

So i found this page http://docs.oracle.com/cd/E23824_01/html/821-1448/gayne.html and change command to
zfs set share=name=storage_pokus,path=/usr/local/storage/pokus,prot=nfs,anon=0,sec=sys,rw=@pokus.starnet.cz storage/pokus
and command crashes with
cannot set property for 'storage/pokus': invalid property 'share'

How is correct command for setting sharenfs (i gave sharenfs=on, but I need to restrict access)?

Thank you very much.

Radek



More information about the freebsd-questions mailing list