SMB won't start

Wizzkidy

Cadet
Joined
May 12, 2017
Messages
5
Hi,

I upgraded from 11.1 to 11.2 last week and everything has been fine. I had to remove a pool today from the server and removed the disks but ever since I can't start the SMB service.

smbd -i

smbd version 4.9.13 started.
Copyright Andrew Tridgell and the Samba Team 1992-2018
Global parameter ntlm auth found in service section!
INFO: Profiling support unavailable in this build.
create_local_token failed: NT_STATUS_NO_MEMORY
ERROR: failed to setup guest info.

zfs list

Paul_Store 145G 286G 23K /mnt/Paul_Store
Paul_Store/.system 3.72M 286G 25K legacy
Paul_Store/.system/configs-0dc2ca1e7fa9464d8c4d7c4fd81f6855 23K 286G 23K legacy
Paul_Store/.system/cores 23K 286G 23K legacy
Paul_Store/.system/rrd-0dc2ca1e7fa9464d8c4d7c4fd81f6855 23K 286G 23K legacy
Paul_Store/.system/samba4 2.08M 286G 2.08M legacy
Paul_Store/.system/syslog-0dc2ca1e7fa9464d8c4d7c4fd81f6855 1.53M 286G 1.53M legacy
Paul_Store/.system/webui 23K 286G 23K legacy
Paul_Store/Paul_Store 145G 286G 145G /mnt/Paul_Store/Paul_Store
Paul_Store/iocage 3.23M 286G 3.10M /mnt/iocage
Paul_Store/iocage/download 23K 286G 23K /mnt/iocage/download
Paul_Store/iocage/images 23K 286G 23K /mnt/iocage/images
Paul_Store/iocage/jails 23K 286G 23K /mnt/iocage/jails
Paul_Store/iocage/log 23K 286G 23K /mnt/iocage/log
Paul_Store/iocage/releases 23K 286G 23K /mnt/iocage/releases
Paul_Store/iocage/templates 23K 286G 23K /mnt/iocage/templates

root@flukenas:~ # stat Paul_Store/.system/samba4
stat: Paul_Store/.system/samba4: stat: No such file or directory

Any help with this, never had this before on 11.1 I ran that for ages and removed raids no problem.

Any help would be appreciated
 

Wizzkidy

Cadet
Joined
May 12, 2017
Messages
5
Hi,

I fixed this by adding my freenas box back to the domain? SMB was working prior and was already added to my domain I removed a pool and its disks and then all of a sudden stopped working. I had to go back into Active Directory and save the config again and then SMB started working again? No idea why that happened
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Depending on the process involved in removal, you may have inadvertently removed samba's passdb.tdb (which is located in the system dataset). In this situation samba will auto-generate a new one that lacks your local users.
 

Wizzkidy

Cadet
Joined
May 12, 2017
Messages
5
My system dataset wasn't removed though as above it was still present, it was a completely different set of drives? I don't suppose it matters as its working now but its a strange one.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
The issue is where the system dataset was located prior to pool removal and the process of removal. 11.3 is much more careful about synchronizing samba's state directory with the freenas configuration database.
 
Top