From owner-freebsd-stable@FreeBSD.ORG Wed Aug 25 08:24:18 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6045A1065695 for ; Wed, 25 Aug 2010 08:24:18 +0000 (UTC) (envelope-from rebehn@ant.uni-bremen.de) Received: from antsrv1.ant.uni-bremen.de (antsrv1.ant.uni-bremen.de [134.102.176.16]) by mx1.freebsd.org (Postfix) with ESMTP id 218278FC1F for ; Wed, 25 Aug 2010 08:24:17 +0000 (UTC) Received: from bremerhaven.ant.uni-bremen.de ([134.102.176.10]) by antsrv1.ant.uni-bremen.de with esmtp (Exim 4.68 (FreeBSD)) (envelope-from ) id 1OoBAB-0001tg-Cn; Wed, 25 Aug 2010 10:16:51 +0200 Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Heinrich Rebehn In-Reply-To: <20100825080334.GA24997@tolstoy.tols.org> Date: Wed, 25 Aug 2010 10:24:16 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <3D57D985-4B4D-4657-86E0-C93EFB3549CC@ant.uni-bremen.de> <20100825080334.GA24997@tolstoy.tols.org> To: Marco van Tol X-Mailer: Apple Mail (2.1081) Cc: freebsd-stable@freebsd.org Subject: Re: zfs sharenfs with multiple hosts/networks and options X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 08:24:18 -0000 On 25.08.2010, at 10:03, Marco van Tol wrote: > On Wed, Aug 25, 2010 at 09:47:13AM +0200, Heinrich Rebehn wrote: >> Hi list, >>=20 >> with traditional /etc/exports i can do >>=20 >> /export/linux/root -ro xxx.xxx.xxx.0/24 >> /export/linux/root -maproot=3D0 xxx.xxx.xxx.1 >>=20 >> How can i do this using zfs's sharenfs option? >>=20 >> When i try=20 >>=20 >> zfs set sharenfs=3D"-ro -network xxx.xxx.xxx.0/24,-maproot=3D0 = xxx.xxx.xxx.1" data/linux/root >>=20 >> /var/log/messages shows "network/host conflict" and "bad exports list = line. >>=20 >> The general problem seems to be that with each "zfs set sharenfs" = command, the corresponding in /etc/zfs/exports gets overwritten. >>=20 >> Is there a workaround for this besides ignoring sharenfs and using = hand edited /etc/exports? >>=20 >> Thanks for any help, >=20 > In december '09 I started a thread about it in freebsd-fs@.=20 > Subject: zfs sharenfs to multiple subnets - found a dirty looking hack >=20 > I found a dirty hack to do what you need there. Not sure there is a > more elegant way to do it already, would be nice. >=20 > Marco I already found your hack (after starting this thread) and it does work. = However, when i then use zfs to create a descendant filesystem, things = go wrong because when inheriting the sharenfs property from the parent, = zfs does not adjust the mountpoint that i used in the hack. Similar = problems will probably arise if one choses to change the mountpoint of = the filesystem afterwards. Thanks anyway for the hint! -Heinrich >=20 > --=20 > Now watch me snatch defeat from the jaws of victory > - "Rigoletto" during a game on www.dailygammon.com > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to = "freebsd-stable-unsubscribe@freebsd.org" >=20 Heinrich Rebehn University of Bremen Physics / Electrical and Electronics Engineering - Department of Telecommunications - Phone : +49/421/218-62394 Fax : -3341