SOLVED CIFS wont start 9.2.1.7

Status
Not open for further replies.

Adam Bise

Dabbler
Joined
May 12, 2014
Messages
10
I setup the server and everything was working great.
We had a power outage and when the system came back up the CIFS shares werent working.
When I try to start the CIFS service it says the service cannot be started.

I have searched how to troubleshoot and ran testparm. Here is the output:

Load smb config files from /usr/local/etc/smb4.conf
max_open_files: increasing sysctl_max (11095) to minimum Windows limit (16384)
rlimit_max: increasing rlimit_max (11095) to minimum Windows limit (16384)
Processing section "[Data]"
Loaded services file OK.
WARNING: lock directory /var/db/samba4 should have permissions 0755 for browsing
to work
WARNING: state directory /var/db/samba4 should have permissions 0755 for browsin
g to work
WARNING: cache directory /var/db/samba4 should have permissions 0755 for browsin
g to work
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

I dont know what these things mean or where to go from here. Can anyone help?

Here is /usr/local/etc/smb4.conf

[global]
server max protocol = SMB2
encrypt passwords = yes
dns proxy = no
strict locking = no
oplocks = yes
deadtime = 15
max log size = 51200
max open files = 11070
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
getwd cache = yes
guest account = nobody
map to guest = Bad User
obey pam restrictions = Yes
directory name cache size = 0
kernel change notify = no
panic action = /usr/local/libexec/samba/samba-backtrace
server string = FreeNAS Server
ea support = yes
store dos attributes = yes
hostname lookups = yes
time server = yes
acl allow execute always = true
local master = yes
idmap config *:backend = tdb
idmap config *:range = 90000000-100000000
server role = standalone
netbios name = HIVE
workgroup = WORKGROUP
security = user
pid directory = /var/run/samba
smb passwd file = /var/etc/private/smbpasswd
private dir = /var/etc/private
create mask = 0666
directory mask = 0777
client ntlmv2 auth = yes
dos charset = CP437
unix charset = UTF-8
log level = 1
[Data]
path = /mnt/vol0
printable = no
veto files = /.snap/.windows/.zfs/
writeable = yes
browseable = yes
recycle:repository = .recycle/%U
recycle:keeptree = yes
recycle:versions = yes
recycle:touch = yes
recycle:directory_mode = 0777
recycle:subdir_mode = 0700
vfs objects = zfsacl streams_xattr aio_pthread
hide dot files = yes
guest ok = no
nfs4:mode = special
nfs4:acedup = merge
nfs4:chown = yes
zfsacl:acesort = dontcare

Can anyone assist? I cannot access my files!
 

Adam Bise

Dabbler
Joined
May 12, 2014
Messages
10
Nevermind. Followed https://bugs.freenas.org/issues/4194

[root@hive ~]# zfs list | grep samba4
vol0/.system/samba4 1.43M 579G 1.43M /mnt/vol0/.system/samba4
[root@hive ~]# zfs destroy vol0/.system/samba4
[root@hive ~]# rm /var/db/samba4

The service now starts.

Unfortunately part of my troubleshooting I reset permissions recursively which borked one of my backups. Not a huge deal, just a PITA. I will have to re-backup, and fix the rest of the permissions.

Don't know why this has happened.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
It happened because you are sharing your entire zpool, which caused you to nuke the permissions of your .system dataset. Create a dataset and share it instead of your zpool.
 
Status
Not open for further replies.
Top