Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Aug 2010 10:24:16 +0200
From:      Heinrich Rebehn <rebehn@ant.uni-bremen.de>
To:        Marco van Tol <marco@tols.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: zfs sharenfs with multiple hosts/networks and options
Message-ID:  <CF477513-9E8F-4926-B838-3BFF84FD86A2@ant.uni-bremen.de>
In-Reply-To: <20100825080334.GA24997@tolstoy.tols.org>
References:  <3D57D985-4B4D-4657-86E0-C93EFB3549CC@ant.uni-bremen.de> <20100825080334.GA24997@tolstoy.tols.org>

next in thread | previous in thread | raw e-mail | index | archive | help


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,
>> 
>> with traditional /etc/exports i can do
>> 
>> /export/linux/root	-ro		xxx.xxx.xxx.0/24
>> /export/linux/root	-maproot=0	xxx.xxx.xxx.1
>> 
>> How can i do this using zfs's sharenfs option?
>> 
>> When i try 
>> 
>> zfs set sharenfs="-ro -network xxx.xxx.xxx.0/24,-maproot=0 xxx.xxx.xxx.1" data/linux/root
>> 
>> /var/log/messages shows "network/host conflict" and "bad exports list line.
>> 
>> The general problem seems to be that with each "zfs set sharenfs" command, the corresponding in /etc/zfs/exports gets overwritten.
>> 
>> Is there a workaround for this besides ignoring sharenfs and using hand edited /etc/exports?
>> 
>> Thanks for any help,
> 
> In december '09 I started a thread about it in freebsd-fs@. 
> Subject: zfs sharenfs to multiple subnets - found a dirty looking hack
> 
> 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.
> 
> 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
> 
> -- 
> 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"
> 


Heinrich Rebehn

University of Bremen
Physics / Electrical and Electronics Engineering
- Department of Telecommunications -

Phone : +49/421/218-62394
Fax   :            -3341








Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CF477513-9E8F-4926-B838-3BFF84FD86A2>