FreeNAS 9.2.1 cannot start CIFS after deleting jails

Status
Not open for further replies.

RiBeneke

Dabbler
Joined
Nov 18, 2013
Messages
37
Has someone got a suggestion to fix this :
I installed 9.2.1 on a new HP server. The 3 hard drives came from another FreeNAS server, the import into a UFS volume worked well and all the data and folders seemed to be ok. Set up shares and started CIFS. I started setting up permissions, users and groups to control access by the various users. Then deleted some unused jails. At this stage CIFS stopped running, it was not possible to switch it on again. I then reinstalled FreeNAS on the server, this wrote a new configuration file. I imported volumes again, and set up shares, but still CIFS will not start. Below is a portion of the console log that may be relevant :

Feb 16 12:38:54 freenas notifier: Starting nginx.
Feb 16 02:38:54 freenas mDNSResponder: mDNS_Register_internal: ERROR!! Tried to register AuthRecord
0000000800C2FD60 freenas.local. (Addr) that's already in the list
Feb 16 02:38:54 freenas mDNSResponder: mDNS_Register_internal: ERROR!! Tried to register AuthRecord
0000000800C30180 16.0.12.10.in-addr.arpa. (PTR) that's already in the list
Feb 16 12:39:34 freenas notifier: Setting hostname: beneke16.rbd.co.za.
Feb 16 12:40:54 freenas notifier: Updating motd:.
Feb 16 12:40:54 freenas notifier: powerd not running?
Feb 16 12:40:54 freenas notifier: powerd not running?
Feb 16 12:40:54 freenas notifier: Starting powerd.
Feb 16 12:46:10 freenas notifier: You need to create a volume to proceed!
Feb 16 12:46:10 freenas notifier: Performing sanity check on Samba configuration: FAILED
Feb 16 12:53:34 freenas notifier: Mounting late file systems:.
Feb 16 12:53:34 freenas notifier: Stopping collectd.
Feb 16 12:53:39 freenas notifier: Waiting for PIDS: 3366.
Feb 16 12:53:39 freenas notifier: Starting collectd.
Feb 16 13:05:55 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: /usr/local/bin/pdbedit -d 0
-i smbpasswd:/tmp/tmpWFF_9m -e tdbsam:/var/etc/private/passdb.tdb -s /usr/local/etc/smb4.conf
Feb 16 13:05:56 freenas notifier: winbindd not running? (check /var/run/samba/winbindd.pid).
Feb 16 13:05:56 freenas notifier: smbd not running? (check /var/run/samba/smbd.pid).
Feb 16 13:05:56 freenas notifier: nmbd not running? (check /var/run/samba/nmbd.pid).

It seems that the problem may be with pid for winbindd smbd and nmbd. The problem seems to be stored in the volume/directory structure that contains our data (that used to also contain the jails). Any suggestions please. I am not fluent in Unix/FreeBSD.

Thanks. Richard
 

RiBeneke

Dabbler
Joined
Nov 18, 2013
Messages
37
Nobody answered, maybe I should have posted this under Sharing forum.

After further searching , the method given in https://bugs.freenas.org/issues/4194 has worked for me.

I deleted all the *warden* files from mnt/store1/
then deleted all the .samba4 directories and sub-dir and files from mnt/store1/
then deleted /var/db/samba4 and rebooted.

Now CIFS can be switched on. Thanks Forum. Regards, Richard.
 

rahul

Dabbler
Joined
Jul 9, 2013
Messages
25
Hi, I am also facing the similar problem. I found the 4194 ...but I am unable to destroy the .samba..It says device busy..Can you please kindly guide me the exact commands in the shell to type and execute.

Thanks..
 

esamett

Patron
Joined
May 28, 2011
Messages
345
unable to remove samba4 directory: device busy
rm -r samba4
 
Status
Not open for further replies.
Top