A question about ZFS built-in SMB

krad kraduk at gmail.com
Tue Jul 7 13:18:05 UTC 2015


"but it's the 3rd party nfs server that actually does the sharing."

You are misrepresenting here a little as the nfs server in freebsd is a
core part of the OS, and not some third party addon. It has a few userland
daemons that can be used however its mostly in kernel. Linux is pretty much
the same as well. However the key difference between Freebsd and linux is
that because no mainstream linux distro ships with production grade
zfsonlinux there has been little work on the userland integration
in comparison to solaris, so stuff like the auto configuration of nfs isn't
always there yet. Samba is a 3rd part product for freebsd and linux though
explaining why there isn't any auto configuration.

freebsd
# kldstat -v | grep nfs
                208 nfslockd
                158 nfscommon
                207 nfssvc
                161 nfsd
                159 nfs
                179 acl_nfs4
                160 nfscl
                206 nfslock

Linux

[cscott at SL1VSIKS ~]$ lsmod | grep nfs
nfsd                  299008  13
auth_rpcgss            61440  1 nfsd
nfs_acl                16384  1 nfsd
lockd                  94208  1 nfsd
grace                  16384  2 nfsd,lockd
sunrpc                327680  19 nfsd,auth_rpcgss,lockd,nfs_acl


On 6 July 2015 at 15:19, Freddie Cash <fjwcash at gmail.com> wrote:

> On Jul 5, 2015 10:40 PM, "Quartz" <quartz at sneakertech.com> wrote:
> >>
> >> No, actually, it isn't. :) It works in a similar manner to sharenfs on
> >> FreeBSD. You still require a separate NFS server installed, and ask it
> >> does it copy the info to an exports file.
> >>
> >> Similar for sharesmb. You still require Samba being installed on Linux.
> >> All the property does is add the filesystem to a separate smb config
> >> file (or something like that; never actually used it on Linux).
> >>
> >> You still require the NFS and SMB packages installed for your distro.
> >> Same as you would for any other FS on Linux.
> >
> >
> >
> > So I'm a little confused here.
> >
> > On Linux, the property is active and usable but only creates the share,
> meaning you still need the sever software to host it. On FreeBSD, the
> property doesn't work at all, and you need the server software to do
> everything......
>
> Correct.
>
> On Solaris derivatives, you only need the OS installed and ZFS configured
> in order to share filesystems via the share{nfs|smb} properties. They have
> in-kernel NFS and CIFS servers. No 3rd party software required, the zfs
> system does everything.
>
> On Linux, you need the OS, ZFS, an NFS server, and Samba installed in order
> to share filesystems. You can use the share{nfs|smb} properties to
> configure the shares, but it's 3rd party software (external to zfs) that
> actually does the sharing.
>
> On FreeBSD, you need the OS, ZFS, an NFS server, and Samba installed in
> order to share filesystems. You can use the sharenfs property to configure
> an nfs share, but it's the 3rd party nfs server that actually does the
> sharing. And you need to do everything manually via samba to share
> filesystems as the sharesmb property isn't supported.
>
> Or, you can just ignore the share{nfs|smb} properties and do everything
> manually, the way you would for any filesystem.
> _______________________________________________
> freebsd-fs at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"
>


More information about the freebsd-fs mailing list