Discussion:
Update to samba, smbclient, libwbclient breaks standalone file service/cifs mounts
Add Reply
David C. Rankin
2018-04-25 03:32:43 UTC
Reply
Permalink
Raw Message
All,

The samba, smbclient, libwbclient from 4.7.6 to 4.8 breaks role=standalone
breaks the standalone file-server and cifs mounts.

Gone with 4.8 are the nmbd.service and smbd.service. Standalone servers
should use windbind.service for file sharing and cifs mounts -- but it does
not work.

After tonight's update to 4.8.0 all cifs mounts were left unreachable. This
after disabling nmbd and smbd, enabling winbind and starting windbind (which
started fine) all cifs-mounts to phx (my Arch server) were broken and
completely inaccessible triggering a weird "Host is down" message simply
trying to `ls -al` the /mnt directory, e.g.:

$ l /mnt
ls: cannot access /mnt/phx: Host is down
ls: cannot access /mnt/phx-david: Host is down
ls: cannot access /mnt/phx-cfg: Host is down
total 41
drwxr-xr-x 14 root root 4096 Oct 25 13:13 .
drwxr-xr-x 21 root root 4096 Sep 4 2012 ..
drwxr-xr-x 2 root root 4096 Oct 25 13:13 af
drwxr-xr-x 2 root root 4096 Nov 17 2010 nm
drwxr-xr-x 2 root root 4096 Nov 17 2010 nm-cfg
drwxr-xr-x 2 root root 4096 Nov 17 2010 nm-david
d????????? ? ? ? ? ? phx
d????????? ? ? ? ? ? phx-cfg
d????????? ? ? ? ? ? phx-david
drwxr-xr-x 23 root root 568 Jan 22 2008 pv
drwxr-xr-x 2 root root 4096 Mar 14 2016 sdd
drwxr-xr-x 2 root root 4096 Nov 17 2010 usb
drwxr-xr-x 2 root root 4096 Apr 13 2016 usb2
drwxr-xr-x 2 root root 4096 Mar 3 2011 win

Downgrading to 4.7.6 restore full functionality. Apparently there are
problems with the 4.8 rollout on ***@lists.samba.org. If you have a
production box serving files in standalone mode -- double check your access
after update.
--
David C. Rankin, J.D.,P.E.
David C. Rankin
2018-04-25 04:14:55 UTC
Reply
Permalink
Raw Message
Post by David C. Rankin
Downgrading to 4.7.6 restore full functionality. Apparently there are
production box serving files in standalone mode -- double check your access
after update.
The service files have changed -- that is the primary problem. I was able to
find the new service files grepping the package listing.

The changes are,

smbd.service -- replaced by -- smb.service
nmbd.service -- replaced by -- nmb.service

Normal service file change update required:

# systemctl stop smbd
# systemctl stop nmbd
# systemctl disable smbd
# systemctl disable nmbd
# systemctl enable smb
# systemctl enable nmb
# systemctl start smb
# systemctl start nmb

This solved the breakage. The journalctl -xe message about needing winbing in
standalone mode was misinterpreted. samba 4.8 is working.
--
David C. Rankin, J.D.,P.E.
Loading...