Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jul 2015 14:18:01 +0100
From:      krad <kraduk@gmail.com>
To:        Freddie Cash <fjwcash@gmail.com>
Cc:        Quartz <quartz@sneakertech.com>, FreeBSD Filesystems <freebsd-fs@freebsd.org>
Subject:   Re: A question about ZFS built-in SMB
Message-ID:  <CALfReyevspd=EMT2MheRO1kJ3k-ZBuy4L6W4kri3Rpf=u%2B9JQQ@mail.gmail.com>
In-Reply-To: <CAOjFWZ5FLGEVatzE5AMQnz8ocFYMBKUzDEV4qUKj-HE6G0xWsw@mail.gmail.com>
References:  <5599496C.6010702@sneakertech.com> <20150705210306.GA1048@in-addr.com> <559A08AF.9050809@sneakertech.com> <CAOjFWZ4ktnPGeqKgv-SLtpfEajnYnOQ7rHZr6JYD6jYw6r835A@mail.gmail.com> <559A14DB.3080905@sneakertech.com> <CAOjFWZ5FLGEVatzE5AMQnz8ocFYMBKUzDEV4qUKj-HE6G0xWsw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"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@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@gmail.com> wrote:

> On Jul 5, 2015 10:40 PM, "Quartz" <quartz@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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALfReyevspd=EMT2MheRO1kJ3k-ZBuy4L6W4kri3Rpf=u%2B9JQQ>