[SOLVED] CentOS 7.4 with updated 4.4 kernel needs SMB 2.1

General support questions
Post Reply
jimj
Posts: 93
Joined: 2014/10/01 05:34:57

[SOLVED] CentOS 7.4 with updated 4.4 kernel needs SMB 2.1

Post by jimj » 2017/10/20 16:04:49

I also posted this here:
https://www.linuxquestions.org/question ... ost5772016

With CentOS 7.4 using its stock kernel "kernel-3.10.0-693.2.2.el7" I could successfully mount a Windows 10 Pro version 1703 share with a command like this:

Code: Select all

mount -t cifs //127.1.2.3/myshare /mnt/mymount -o user=william,pass=gates,vers=3.0 -rw
After upgrading my kernel to "kernel-lt-4.4.93-1.el7.elrepo.x86_64" the mount command above gave this error:

Code: Select all

mount error(5): Input/output error
I could still connect with smbclient like this:

Code: Select all

smbclient //127.1.2.3/myshare -U william%gates -m SMB3
By running 'dmesg' I was able to see another error message that appeared before the unhelpful "mount error(5): Input/output error" message. The these two messages always appeared in pairs:

Code: Select all

[root@novell bill]# dmesg
[ 7658.616374] CIFS VFS: validate protocol negotiate failed: -11
[ 7658.616563] CIFS VFS: cifs_mount failed w/return code = -5
Googling for the first error message (CIFS VFS: validate protocol negotiate failed: -11) lead me to this bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=1502606
which had the workaround. Using version 2.1 instead of 3.0 solved the problem. This is the mount command that now works for me:

Code: Select all

mount -t cifs //127.1.2.3/myshare /mnt/mymount -o user=william,pass=gates,vers=2.1 -rw
As an added bonus SMB version 2.1 also works with the stock kernel-3.10.0-693.2.2.el7.

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: [SOLVED] CentOS 7.4 with updated 4.4 kernel needs SMB 2.1

Post by toracat » 2017/10/20 21:37:21

Thanks for the heads up. While non-CentOS kernels are not supported here, your info would help others using newer kernels like kernel-lt/ml.
CentOS Forum FAQ

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: [SOLVED] CentOS 7.4 with updated 4.4 kernel needs SMB 2.1

Post by toracat » 2017/10/20 21:40:51

And CentOS's own kernel v4.9 is also affected.
CentOS Forum FAQ

jimj
Posts: 93
Joined: 2014/10/01 05:34:57

Re: [SOLVED] CentOS 7.4 with updated 4.4 kernel needs SMB 2.1

Post by jimj » 2017/10/21 05:26:14

toracat wrote:And CentOS's own kernel v4.9 is also affected.
I wasn't aware CentOS had a 4.9 kernel. Is this available via a yum repo?

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: [SOLVED] CentOS 7.4 with updated 4.4 kernel needs SMB 2.1

Post by toracat » 2017/10/21 06:17:24

jimj wrote: I wasn't aware CentOS had a 4.9 kernel. Is this available via a yum repo?
There is one in the CentOS xen repo. Then another one is under experimental.
CentOS Forum FAQ

jimj
Posts: 93
Joined: 2014/10/01 05:34:57

Re: [SOLVED] CentOS 7.4 with updated 4.4 kernel needs SMB 2.1

Post by jimj » 2017/10/21 12:50:37

toracat wrote:There is one in the CentOS xen repo. Then another one is under experimental.
Thanks

Post Reply