From owner-freebsd-questions@FreeBSD.ORG Wed Aug 15 14:27:03 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4BC701065674 for ; Wed, 15 Aug 2012 14:27:03 +0000 (UTC) (envelope-from radek.krejca@starnet.cz) Received: from EXCHANGE.mail.starnet.cz (exchange.mail.starnet.cz [92.62.224.72]) by mx1.freebsd.org (Postfix) with ESMTP id D28BB8FC12 for ; Wed, 15 Aug 2012 14:27:02 +0000 (UTC) Received: from EXCHANGE.mail.starnet.cz ([fe80::7534:a1f0:da0:e34d]) by EXCHANGE.mail.starnet.cz ([fe80::7534:a1f0:da0:e34d%15]) with mapi; Wed, 15 Aug 2012 16:21:09 +0200 From: =?iso-8859-2?Q?Radek_Krej=E8a?= To: "'freebsd-questions@freebsd.org'" Date: Wed, 15 Aug 2012 16:21:09 +0200 Thread-Topic: ZFS sharenfs problem Thread-Index: Ac168d581XApSvanTW+s1Hg4qpBokw== Message-ID: Accept-Language: cs-CZ Content-Language: cs-CZ X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: cs-CZ Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: ZFS sharenfs problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Aug 2012 14:27:03 -0000 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=3D-alldirs -maproot=3D0 pokus.starnet.cz storage/pokus on the same version of freebsd, but after uprade zfs zfs set sharenfs=3Drw=3D@pokus.starnet.cz,root=3D0 storage/pokus command ended fine, but on freebsd 9.0 I got with this command=20 Aug 14 12:26:48 storage mountd[1181]: bad exports list line /usr/local/stor= age/pokus rw=3D@pokus.starnet.cz root=3D0 So i found this page http://docs.oracle.com/cd/E23824_01/html/821-1448/gayn= e.html and change command to zfs set share=3Dname=3Dstorage_pokus,path=3D/usr/local/storage/pokus,prot= =3Dnfs,anon=3D0,sec=3Dsys,rw=3D@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=3Don, but I ne= ed to restrict access)? Thank you very much. Radek