On Sun, 19 Jul 2020 at 17:24, Judah Richardson <judahrichard...@gmail.com> wrote: > On Sun, Jul 19, 2020 at 7:18 PM Joshua M. Clulow <j...@sysmgr.org> wrote: > > On Sun, 19 Jul 2020 at 16:52, Judah Richardson > > <judahrichard...@gmail.com> wrote: > > > # zfs set sharenfs='rw=@ClientIPAddress/32,root=@ClientIPAddress/32' > > rpool1 > > > # zfs share rpool1 > > > > You should be able to skip the "zfs share ..." command, > > Thanks, I just realized I misread the various docs I'd been looking at, > thinking I always needed zfs share after setting sharenfs. In reality it > appears the only time zfs share is needed is if the dataset it targets was > previously unshared. Is this correct?
The paragraph in the manual is a little hard to understand but I think that's about right. If the property was previously set to "off" (the default) then I believe setting it to something other than "off" would also trigger an automatic sharing operation at that time. But, if the property was not previously "off", BUT the dataset was also not previously shared (e.g., perhaps the NFS server was not active when you set the property the first time, or you imported the pool with -N) then yes it seems like it might not be shared until you run "zfs share". Cheers. -- Joshua M. Clulow http://blog.sysmgr.org _______________________________________________ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss