*

Status
Not open for further replies.

TinTIn

Contributor
Joined
Feb 9, 2015
Messages
142
Where does FreeNAS put its share config? The reason I ask is ZFS remembers quotas, permissions, etc but doesn't appear to remember what share protocol to use for any given dataset if I either replicate to another system or introduce another node. As ZFS stores a lot of meta data itself it would be nice if it knew this too as this would allow a seamless switch to a Replication System in the event of disaster.

I've trying turning smb on via command line so:

zfs set sharesmb=on pool/ds

and although this appears to work your cannot map your share unless you go to FreeNAS web interface and offer the share up as SMB.

Any thoughts?

Thanks
 

mjws00

Guru
Joined
Jul 25, 2014
Messages
798
FreeNAS uses Samba to share CIFS. The file is /usr/local/etc/smb4.conf. However it is generated from the config db. Haven't checked to see when it gets overwritten, but changes may not survive a reboot? So you need to use the GUI.

You can do a seamless migration by restoring your config file. Shares, users, services etc.. will move. No reason why you couldn't manually restore the smb4.conf if you needed a quick and dirty hack during a disaster. But your changes may be unexpectedly overwritten if you don't implement changes via the GUI.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
Nowhere in the documentation says you should set sharesmb, right? There's a reason.

That feature is not used in FreeBSD, at all.

RTFM bro... doc.freenas.org.

You are correct that if you are trying to do things the manual doesn't say to do, you're going to screw your server up.
 

TinTIn

Contributor
Joined
Feb 9, 2015
Messages
142
Its a shame that feature doesn't work on FreeNAS as it seems an inherently great part of ZFS. Its causes a bit of a stumbling block when trying to create an exact replica as the replica won't know how to offer up your dataset shares without you fiddling with it.
 
Status
Not open for further replies.
Top