I tried: On the server: I removed the client name from the hosts file.
On the client: Unmounted the drive. On the server: # pfexec zfs set sharesmb=on landover/test # pfexec svcadm enable nfs/server Both of which I have tried before. On the client: $ sudo mount -t nfs foundation:/landover/data /data mount.nfs: access denied by server while mounting foundation:/landover/data This is what I have been getting since I started. I posted this question before, worded differently, and someone told me to add the client to the hosts file which works. What am I doing wrong? --- Dru Devore > -------- Original Message -------- > Subject: Re: [nfs-discuss] ZFS share without using hosts file > From: Neil Putnam <Neil.Putnam at Sun.COM> > Date: Fri, May 01, 2009 6:40 pm > To: Dru Devore <ddevore at duckhouse.us> > Cc: nfs-discuss at opensolaris.org > > > Dru Devore wrote: > > How can I share a zfs pool with nfs without putting the clients in the > > hosts file? > > > > I am sharing a pool for backup at home and am using dns if my router is > > reset my ip addresses can change so I would have to modify the hosts file. > > I want to simply allow anyone on the network be able to mount the nfs > > drive. > > > > How can I do this? > > Hi Dru, > > This should be all that is necessary: > > # zfs set sharenfs=on <filesystem> > # svcadm enable nfs/server > > Just do that once. You might have to enable the other NFS services > (svcs -a | grep nfs), but the above should allow clients to mount. > > HTH, > - Neil