CIFS and smb4.conf - need somehelp

Status
Not open for further replies.

dvandoren

Cadet
Joined
Mar 22, 2015
Messages
3
Hello,

Ok, I'm very much a beginner with FreeNAS so I will need a bit of 'Step-by-Step' with this one. FreeNAS 9.2.1.7 was working fine for a month or so, then I lost connection on all mapped drives to the NAS. I went in to try to fix it, and thought "While im in here, I'll remove PLEX and it's jail b/c it never really worked anyhow". Well now CIFS refuse to enable. I tried many online fixes and ran into 'cannot find smb4.conf'. I am very lost, and not sure how to continue. Any advice would be appreciated!

P.S. - I was thinking about just installing a fresh FreeNAS onto the boot usb drive, but was afraid of loosing my data on the HDDs...
 

dvandoren

Cadet
Joined
Mar 22, 2015
Messages
3
Post following information:
  • Hardware specs
  • Output of "zpool status"
  • Output of "zfs list"
  • Output of "testparm"
Hopefully I did this right. Let me know if there is anything else that can help.


System Specs
Code:
Hostnamefreenas.local
BuildFreeNAS-9.2.1.7-RELEASE-x64 (fdbe9a0)
PlatformIntel(R) Core(TM)2 Duo CPU E7400 @ 2.80GHz
Memory4064MB
System TimeMon Mar 23 08:51:27 EDT 2015
Uptime8:51AM up 1 min, 0 users
Load Average1.59, 0.76, 0.31


zpool status
Code:
pool: NasVolume
state: ONLINE
scan: scrub repaired 0 in 0h22m with 0 errors on Sun Mar 22 00:22:27 2015
config:

NAME STATE READ WRITE CKS
UM
NasVolume ONLINE 0 0
0
raidz1-0 ONLINE 0 0
0
gptid/5870d421-3bc6-11e4-9eea-0024e8156070 ONLINE 0 0 0
gptid/590f6897-3bc6-11e4-9eea-0024e8156070 ONLINE 0 0 0
gptid/596aaa58-3bc6-11e4-9eea-0024e8156070 ONLINE 0 0 0

errors: No known data errors


zfs list
Code:
NAME USED AVAIL REFER MOUNTPOINT
NasVolume 115G 1.67T 2.05G /mnt/NasVolume
NasVolume/.system 3.94M 1.67T 234K /mnt/NasVolume/.system
NasVolume/.system/cores 1.24M 1.67T 1.24M /mnt/NasVolume/.system/cores
NasVolume/.system/rrd 192K 1.67T 192K /mnt/NasVolume/.system/rrd
NasVolume/.system/samba4 1.37M 1.67T 1.37M /mnt/NasVolume/.system/samba4
NasVolume/.system/syslog 938K 1.67T 938K /mnt/NasVolume/.system/syslog
NasVolume/Movies 2.14G 1.67T 2.14G /mnt/NasVolume/Movies
NasVolume/UserFolders 110G 1.67T 11.3M /mnt/NasVolume/UserFolders
NasVolume/UserFolders/David 11.0G 1.67T 11.0G /mnt/NasVolume/UserFolders/David
NasVolume/UserFolders/Erin 99.4G 1.67T 13.2G /mnt/NasVolume/UserFolders/Erin
NasVolume/UserFolders/Erin/Time-Machine 86.2G 1.67T 86.2G /mnt/NasVolume/UserFolders/Erin/Time-Machine


Testparm
Code:
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)
params.c:OpenConfFile() - Unable to open configuration file "/usr/local/etc/smb4.conf":
No such file or directory
Error loading services.


Thanks!
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Okay a few things to note off the bat -
1) You are not using ECC RAM. This is not recommended.
2) You are using less than the recommended amount of RAM. This is advised against.

That being said, I don't think that (1) or (2) are related to the problem you are experiencing.
  • I don't have a 9.2.x system to look at, but there is a chance that permissions on /usr/local/etc may be wrong and that your smb4.conf file cannot be written to it.
  • Post output of "ls -l /usr/local" and "ls -l /usr/local/etc"
  • Post relevant log entries from /var/log/messages and /var/log/samba4/log.smbd

There may be a problem with permissions on your .system dataset.
  • Post output of "getfacl /mnt/NasVolume/.system"

It is also possible that your FreeNAS install is corrupted. If there is no clear indication of where the problem lies from the above output, then
  • backup/download your FreeNAS config
  • get a fresh USB flash drive
  • install FreeNAS 9.2.1.x on the fresh USB flash drive
  • turn off server
  • remove current USB flash drive and replace with new one
  • boot and apply config
 

dvandoren

Cadet
Joined
Mar 22, 2015
Messages
3
  • Post output of "ls -l /usr/local" and "ls -l /usr/local/etc"
Code:
root@freenas ~]# ls -1 /usr/local
bin
etc
include
lib
libdata
libexec
modules
sbin
share
www
x86_64-portbld-freebsd9.2

root@freenas ~]# ls -1 /usr/local/etc
CORBA
X11
afp.conf
afp.conf.dist
avahi
bash_completion.d
collectd.conf
collectd.conf.sample
dbus-1
dbus-session.conf.netatalk
dconf
devd
extmap.conf
extmap.conf.dist
fonts
gconf
gnome
gnome-vfs-2.0
gnome.subr
inadyn-mt
inadyn-mt.conf
istgt
ldap.conf.dist
CORBA
X11
afp.conf
afp.conf.dist
avahi
bash_completion.d
collectd.conf
collectd.conf.sample
dbus-1
dbus-session.conf.netatalk
dconf
devd
extmap.conf
extmap.conf.dist
fonts
gconf
gnome
gnome-vfs-2.0
gnome.subr
inadyn-mt
inadyn-mt.conf
istgt
ldap.conf.dist
CORBA
X11
afp.conf
afp.conf.dist
avahi
bash_completion.d
collectd.conf
collectd.conf.sample
dbus-1
dbus-session.conf.netatalk
dconf
devd
extmap.conf
extmap.conf.dist
fonts
gconf
gnome
gnome-vfs-2.0
gnome.subr
inadyn-mt
inadyn-mt.conf
istgt
ldap.conf.dist


  • Post relevant log entries from /var/log/messages and /var/log/samba4/log.smbd
This folder appears to be empty. Did 'ls -a' and no files shown.

  • Post output of "getfacl /mnt/NasVolume/.system"
Code:
# file: /mnt/NasVolume/.system
# owner: root
# group: wheel
owner@:rwxpDdaARWcCos:fd----:allow
group@:rwxpDdaARWcCos:fd----:allow
everyone@:r-x---a-R-c---:fd----:allow



I have no problem doing a fresh install of FreeNAS. Resetting up permissions and users is no big deal (since I only have 3 users). I just dont want to lose my data on the drives. Is there a way (possibly a tutorial) to reestablish my pool(?) to the new install?

Thanks for taking your time to help me!
 
Last edited:

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Code:
root@freenas ~]# ls -1 /usr/local
bin
etc
include
lib
libdata
libexec
modules
sbin
share
www
x86_64-portbld-freebsd9.2

root@freenas ~]# ls -1 /usr/local/etc
CORBA
X11
afp.conf
afp.conf.dist
avahi
bash_completion.d
collectd.conf
collectd.conf.sample
dbus-1
dbus-session.conf.netatalk
dconf
devd
extmap.conf
extmap.conf.dist
fonts
gconf
gnome
gnome-vfs-2.0
gnome.subr
inadyn-mt
inadyn-mt.conf
istgt
ldap.conf.dist
CORBA
X11
afp.conf
afp.conf.dist
avahi
bash_completion.d
collectd.conf
collectd.conf.sample
dbus-1
dbus-session.conf.netatalk
dconf
devd
extmap.conf
extmap.conf.dist
fonts
gconf
gnome
gnome-vfs-2.0
gnome.subr
inadyn-mt
inadyn-mt.conf
istgt
ldap.conf.dist
CORBA
X11
afp.conf
afp.conf.dist
avahi
bash_completion.d
collectd.conf
collectd.conf.sample
dbus-1
dbus-session.conf.netatalk
dconf
devd
extmap.conf
extmap.conf.dist
fonts
gconf
gnome
gnome-vfs-2.0
gnome.subr
inadyn-mt
inadyn-mt.conf
istgt
ldap.conf.dist



This folder appears to be empty. Did 'ls -a' and no files shown.


Code:
# file: /mnt/NasVolume/.system
# owner: root
# group: wheel
owner@:rwxpDdaARWcCos:fd----:allow
group@:rwxpDdaARWcCos:fd----:allow
everyone@:r-x---a-R-c---:fd----:allow



I have no problem doing a fresh install of FreeNAS. Resetting up permissions and users is no big deal (since I only have 3 users). I just dont want to lose my data on the drives. Is there a way (possibly a tutorial) to reestablish my pool(?) to the new install?

Thanks for taking your time to help me!
  • Back up your config: System → Settings → General → Save Config
  • Swap USB sticks with new one
  • Restore your config
This procedure will not touch your data.
 
Status
Not open for further replies.
Top