[geeks] zfs share hates root

Phil Stracchino alaric at metrocast.net
Sat Apr 18 14:55:09 CDT 2009


Mike Meredith wrote:
> On Sat, 18 Apr 2009 15:28:11 -0400, Phil Stracchino wrote:
>> Anyone know how to make zfs share honor root=... in dfstab?  Or is the
>> answer just 'Don't use zfs share'?
> 
> Or don't use dfstab ?
> 
> Set the nfs options you need using 'zfs sharenfs="whatever"'.
> 
> The options I use myself on one filesystem :-
> 
> # zfs get sharenfs rpool/nethome
> NAME           PROPERTY
> VALUE                                                    SOURCE
> rpool/nethome  sharenfs
> rw=dengue.inside.zonky.org,root=dengue.inside.zonky.org  local
> 
> No problems with root fiddling with that filesystem mounted elsewhere.

Aaah.  I hadn't realized that sharenfs= could be used that way.  The
documentation appeared to imply it could only be 'on' or 'off'.


-- 
  Phil Stracchino, CDK#2     DoD#299792458     ICBM: 43.5607, -71.355
  alaric at caerllewys.net   alaric at metrocast.net   phil at co.ordinate.org
         Renaissance Man, Unix ronin, Perl hacker, Free Stater
                 It's not the years, it's the mileage.



More information about the geeks mailing list