Upgraded 8.0.4 to 8.3 and foolishly upgraded ZFS pool to 28 from 15 before checking CIFS was working. Can't now go back to earlier version.
System is booted from a USB key and initially used the GUI upgrade which appeared to work and updated the database okay. ZPOOL upgrade went okay and it appears the other shares like AFP and NFS are working fine - I'm not going to touch them though at this point!
I have a couple of older XMBC boxes however which don't implement NFS so have to get CIFS back off the floor:
Trying to start CIFS gives "The service could not be started" in the GUI.
/var/log/messages shows:
Nov 13 07:35:40 NAS notifier: Stopping dbus.
Nov 13 07:35:40 NAS avahi-daemon[37528]: Disconnected from D-Bus, exiting.
Nov 13 07:35:40 NAS notifier: dbus not running? (check /var/run/dbus/dbus.pid).
Nov 13 07:35:40 NAS notifier: Starting dbus.
Nov 13 07:35:40 NAS notifier: Stopping avahi-daemon.
Nov 13 07:35:40 NAS notifier: Failed to kill daemon: No such file or directory
Nov 13 07:35:40 NAS notifier: Stopping avahi-daemon.
Nov 13 07:35:40 NAS notifier: Failed to kill daemon: No such file or directory
Nov 13 07:35:40 NAS notifier: Starting avahi-daemon.
Nov 13 07:35:40 NAS avahi-daemon[37851]: WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
Nov 13 07:35:40 NAS notifier: smbd not running? (check /var/run/samba/smbd.pid).
Nov 13 07:35:40 NAS notifier: Stopping nmbd.
Nov 13 07:35:40 NAS notifier: Waiting for PIDS: 37582.
Nov 13 07:35:41 NAS notifier: Performing sanity check on Samba configuration: OK
Nov 13 07:35:41 NAS notifier: smbd not running? (check /var/run/samba/smbd.pid).
Nov 13 07:35:41 NAS notifier: nmbd not running? (check /var/run/samba/nmbd.pid).
Nov 13 07:35:41 NAS notifier: Removing stale Samba tdb files: ....... done
Nov 13 07:35:41 NAS notifier: Starting nmbd.
Nov 13 07:35:41 NAS notifier: Starting smbd.
It "looks" like it started because there is a PID
drwxr-xr-x 2 root wheel 512 Nov 13 07:37 ./
drwxr-xr-x 9 root wheel 1024 Nov 12 21:23 ../
-rw-r--r-- 1 root wheel 6 Nov 13 07:37 nmbd.pid
-rw-r--r-- 1 root wheel 6 Nov 13 07:37 smbd.pid
but can't connect with any client and the CIFS service button is OFF.
testparm output:
Load smb config files from /usr/local/etc/smb.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 "[Backups]"
Processing section "[TV]"
Processing section "[Movies]"
WARNING: The security=share option is deprecated
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
dos charset = CP437
workgroup = FREENAS
server string = FreeNAS Server
security = SHARE
map to guest = Bad Password
obey pam restrictions = Yes
smb passwd file = /var/etc/private/smbpasswd
private dir = /var/etc/private
passdb backend = tdbsam:/var/etc/private/passdb.tdb
guest account = BigDisk
syslog only = Yes
max log size = 10
max protocol = SMB2
max xmit = 65535
deadtime = 15
load printers = No
printcap name = /dev/null
disable spoolss = Yes
dns proxy = No
idmap config * : backend = tdb
force user = BigDisk
force group = BigDisk
create mask = 0666
directory mask = 0777
directory name cache size = 0
use sendfile = Yes
strict locking = No
[Backups]
path = /mnt/BigDisk/Backups
read only = No
inherit acls = Yes
guest ok = Yes
veto files = /.snap/.windows/.zfs/
map archive = No
map readonly = no
vfs objects = zfsacl
nfs4:chown = yes
nfs4:acedup = merge
nfs4:mode = special
[TV]
path = /mnt/BigDisk/TV
read only = No
inherit acls = Yes
guest ok = Yes
veto files = /.snap/.windows/.zfs/
map archive = No
map readonly = no
vfs objects = zfsacl
nfs4:chown = yes
nfs4:acedup = merge
nfs4:mode = special
[Movies]
path = /mnt/BigDisk/Movies
read only = No
inherit acls = Yes
guest ok = Yes
veto files = /.snap/.windows/.zfs/
map archive = No
map readonly = no
vfs objects = zfsacl
nfs4:chown = yes
nfs4:acedup = merge
nfs4:mode = special
So is it really running or can it not be killed ?
[root@NAS] /var/run/samba# cat smbd.pid
39893
[root@NAS] /var/run/samba# kill -9 39893
39893: No such process
[root@NAS] /var/run/samba# ps -ef | grep smbd
ps: Process environment requires procfs(5)
39928 0 S+ 0:00.00 grep smbd
[root@NAS] /var/run/samba# ps -ef | grep samba
ps: Process environment requires procfs(5)
39933 0 S+ 0:00.00 grep samba
[root@NAS] /var/run/samba# ps -ef | grep nmbd
ps: Process environment requires procfs(5)
39936 0 S+ 0:00.00 grep nmbd
Any clues here as I'm at my wits end....maybe more coffee needed. Nothing was broken with 8.0.4 but I figured it was time for an upgrade. Mistake.
System is booted from a USB key and initially used the GUI upgrade which appeared to work and updated the database okay. ZPOOL upgrade went okay and it appears the other shares like AFP and NFS are working fine - I'm not going to touch them though at this point!
I have a couple of older XMBC boxes however which don't implement NFS so have to get CIFS back off the floor:
Trying to start CIFS gives "The service could not be started" in the GUI.
/var/log/messages shows:
Nov 13 07:35:40 NAS notifier: Stopping dbus.
Nov 13 07:35:40 NAS avahi-daemon[37528]: Disconnected from D-Bus, exiting.
Nov 13 07:35:40 NAS notifier: dbus not running? (check /var/run/dbus/dbus.pid).
Nov 13 07:35:40 NAS notifier: Starting dbus.
Nov 13 07:35:40 NAS notifier: Stopping avahi-daemon.
Nov 13 07:35:40 NAS notifier: Failed to kill daemon: No such file or directory
Nov 13 07:35:40 NAS notifier: Stopping avahi-daemon.
Nov 13 07:35:40 NAS notifier: Failed to kill daemon: No such file or directory
Nov 13 07:35:40 NAS notifier: Starting avahi-daemon.
Nov 13 07:35:40 NAS avahi-daemon[37851]: WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
Nov 13 07:35:40 NAS notifier: smbd not running? (check /var/run/samba/smbd.pid).
Nov 13 07:35:40 NAS notifier: Stopping nmbd.
Nov 13 07:35:40 NAS notifier: Waiting for PIDS: 37582.
Nov 13 07:35:41 NAS notifier: Performing sanity check on Samba configuration: OK
Nov 13 07:35:41 NAS notifier: smbd not running? (check /var/run/samba/smbd.pid).
Nov 13 07:35:41 NAS notifier: nmbd not running? (check /var/run/samba/nmbd.pid).
Nov 13 07:35:41 NAS notifier: Removing stale Samba tdb files: ....... done
Nov 13 07:35:41 NAS notifier: Starting nmbd.
Nov 13 07:35:41 NAS notifier: Starting smbd.
It "looks" like it started because there is a PID
drwxr-xr-x 2 root wheel 512 Nov 13 07:37 ./
drwxr-xr-x 9 root wheel 1024 Nov 12 21:23 ../
-rw-r--r-- 1 root wheel 6 Nov 13 07:37 nmbd.pid
-rw-r--r-- 1 root wheel 6 Nov 13 07:37 smbd.pid
but can't connect with any client and the CIFS service button is OFF.
testparm output:
Load smb config files from /usr/local/etc/smb.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 "[Backups]"
Processing section "[TV]"
Processing section "[Movies]"
WARNING: The security=share option is deprecated
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
dos charset = CP437
workgroup = FREENAS
server string = FreeNAS Server
security = SHARE
map to guest = Bad Password
obey pam restrictions = Yes
smb passwd file = /var/etc/private/smbpasswd
private dir = /var/etc/private
passdb backend = tdbsam:/var/etc/private/passdb.tdb
guest account = BigDisk
syslog only = Yes
max log size = 10
max protocol = SMB2
max xmit = 65535
deadtime = 15
load printers = No
printcap name = /dev/null
disable spoolss = Yes
dns proxy = No
idmap config * : backend = tdb
force user = BigDisk
force group = BigDisk
create mask = 0666
directory mask = 0777
directory name cache size = 0
use sendfile = Yes
strict locking = No
[Backups]
path = /mnt/BigDisk/Backups
read only = No
inherit acls = Yes
guest ok = Yes
veto files = /.snap/.windows/.zfs/
map archive = No
map readonly = no
vfs objects = zfsacl
nfs4:chown = yes
nfs4:acedup = merge
nfs4:mode = special
[TV]
path = /mnt/BigDisk/TV
read only = No
inherit acls = Yes
guest ok = Yes
veto files = /.snap/.windows/.zfs/
map archive = No
map readonly = no
vfs objects = zfsacl
nfs4:chown = yes
nfs4:acedup = merge
nfs4:mode = special
[Movies]
path = /mnt/BigDisk/Movies
read only = No
inherit acls = Yes
guest ok = Yes
veto files = /.snap/.windows/.zfs/
map archive = No
map readonly = no
vfs objects = zfsacl
nfs4:chown = yes
nfs4:acedup = merge
nfs4:mode = special
So is it really running or can it not be killed ?
[root@NAS] /var/run/samba# cat smbd.pid
39893
[root@NAS] /var/run/samba# kill -9 39893
39893: No such process
[root@NAS] /var/run/samba# ps -ef | grep smbd
ps: Process environment requires procfs(5)
39928 0 S+ 0:00.00 grep smbd
[root@NAS] /var/run/samba# ps -ef | grep samba
ps: Process environment requires procfs(5)
39933 0 S+ 0:00.00 grep samba
[root@NAS] /var/run/samba# ps -ef | grep nmbd
ps: Process environment requires procfs(5)
39936 0 S+ 0:00.00 grep nmbd
Any clues here as I'm at my wits end....maybe more coffee needed. Nothing was broken with 8.0.4 but I figured it was time for an upgrade. Mistake.