CIFS mounts in 42.3 with latest kernel

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

CIFS mounts in 42.3 with latest kernel

Roger Oberholtzer-2
I am trying to troubleshoot a CIFS mount issue on Leap 42.3. It is
mounting shares from a Windows server. All was working until a couple
of days ago. Now, when I try to mount the shares, I get this in the
log:

[244622.138475] Status code returned 0xc0000001 NT_STATUS_UNSUCCESSFUL
[244622.138501] CIFS VFS: Send error in SessSetup = -5
[244622.138749] CIFS VFS: cifs_mount failed w/return code = -5


The mysterious thing is that it started with the latest kernel update.
I have a system running 4.4.87-25-default that works fine. On the
systems with 4.4.92-31-default or newer, I now get these messages. It
is not limited to one machine. The common thing seems to be that they
have a newer kernel and are generally up to date (zypper dup).

Is anyone else having problems? I would have expected some traffic
here if that had been the case. If it was limited to one machine I
would suspect that machine. If the older kernel machine had stopped
working I would suspect the Windows server. In fact, all is suspect at
this time.

The error happens both via automount (systemd vai /etc/fstab) and a
direct mount command.

I have tried the suggestions in
https://www.suse.com/support/kb/doc/?id=7017413, but it made no
difference.


For example:

# mount --verbose -t cifs /server/data6 /media/mma-sql-1/data6 -o
username=me,domain=here,sec=ntlm

Password for me@//server/data6:  ************

mount.cifs kernel mount options:
ip=10.2.67.50,unc=\\server\data6,sec=ntlm,user=me,,domain=here,pass=********

mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


The error in the log is as listed at the start of this message.

--
Roger Oberholtzer

--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: CIFS mounts in 42.3 with latest kernel

Rainer Klier-6
hi,

Am Donnerstag, den 11.01.2018, 11:23 +0100 schrieb Roger Oberholtzer:
> For example:
>
> # mount --verbose -t cifs /server/data6 /media/mma-sql-1/data6 -o
> username=me,domain=here,sec=ntlm
>
> Password for me@//server/data6:  ************
>
> mount.cifs kernel mount options:
> ip=10.2.67.50,unc=\\server\data6,sec=ntlm,user=me,,domain=here,pass=********

it could be the SMB version.
try to add "vers=1.0" to the mount options.
--  


Best Regards | Freundliche Grüße | Cordialement | Cordiali Saluti | Atenciosamente | Saludos Cordiales


DI Rainer Klier


Research & Development, DevOps




_________________________________________________________


 


Namirial GmbH



N�����r��y隊Z)z{.�ﮞ˛���m�)z{.��+�:�{Zr�az�'z��j)h���Ǿ� ޮ�^�ˬz��
Reply | Threaded
Open this post in threaded view
|

Re: CIFS mounts in 42.3 with latest kernel

Roger Oberholtzer-2
On Thu, Jan 11, 2018 at 11:38 AM, Rainer Klier <[hidden email]> wrote:

> hi,
>
> Am Donnerstag, den 11.01.2018, 11:23 +0100 schrieb Roger Oberholtzer:
>> For example:
>>
>> # mount --verbose -t cifs /server/data6 /media/mma-sql-1/data6 -o
>> username=me,domain=here,sec=ntlm
>>
>> Password for me@//server/data6:  ************
>>
>> mount.cifs kernel mount options:
>> ip=10.2.67.50,unc=\\server\data6,sec=ntlm,user=me,,domain=here,pass=********
>
> it could be the SMB version.
> try to add "vers=1.0" to the mount options.

Same problem.



--
Roger Oberholtzer

--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: CIFS mounts in 42.3 with latest kernel

Roger Oberholtzer-2
More info on my system:

# cat /proc/fs/cifs/DebugData

Display Internal CIFS Data Structures for Debugging
---------------------------------------------------
CIFS Version 2.08
Features: dfs fscache lanman posix spnego xattr acl
Active VFS Requests: 0
Servers:

# cat /proc/fs/cifs/cifsFYI

0

# cat /proc/fs/cifs/LinuxExtensionsEnabled

1

# cat /proc/fs/cifs/LookupCacheEnabled

1

# cat /proc/fs/cifs/SecurityFlags

0x85

# cat /proc/fs/cifs/Stats

Resources in use
CIFS Session: 0
Share (unique mount targets): 0
SMB Request/Response Buffer: 0 Pool size: 4
SMB Small Req/Resp Buffer: 0 Pool size: 30
Total Large 372 Small 756 Allocations
Operations (MIDs): 0

0 session 0 share reconnects
Total vfs operations: 348 maximum at one time: 3

# cat /proc/fs/cifs/traceSMB
0

On Thu, Jan 11, 2018 at 12:47 PM, Roger Oberholtzer
<[hidden email]> wrote:

> On Thu, Jan 11, 2018 at 11:38 AM, Rainer Klier <[hidden email]> wrote:
>> hi,
>>
>> Am Donnerstag, den 11.01.2018, 11:23 +0100 schrieb Roger Oberholtzer:
>>> For example:
>>>
>>> # mount --verbose -t cifs /server/data6 /media/mma-sql-1/data6 -o
>>> username=me,domain=here,sec=ntlm
>>>
>>> Password for me@//server/data6:  ************
>>>
>>> mount.cifs kernel mount options:
>>> ip=10.2.67.50,unc=\\server\data6,sec=ntlm,user=me,,domain=here,pass=********
>>
>> it could be the SMB version.
>> try to add "vers=1.0" to the mount options.
>
> Same problem.
>
>
>
> --
> Roger Oberholtzer



--
Roger Oberholtzer

--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: CIFS mounts in 42.3 with latest kernel

Patrick Shanahan-2
* Roger Oberholtzer <[hidden email]> [01-11-18 07:07]:

> More info on my system:
>
> # cat /proc/fs/cifs/DebugData
>
> Display Internal CIFS Data Structures for Debugging
> ---------------------------------------------------
> CIFS Version 2.08
> Features: dfs fscache lanman posix spnego xattr acl
> Active VFS Requests: 0
> Servers:

mine:
  > cat /proc/fs/cifs/DebugData
  Display Internal CIFS Data Structures for Debugging
  ---------------------------------------------------
  CIFS Version 2.10
  Features: dfs fscache lanman posix spnego xattr acl
  Active VFS Requests: 0
  Servers:

and my fstab has vers=2.1

perhaps you need vers=2.0 or vers=2.08

I lost cifs access sometime back and found a suggestion that the version
info was now necessary and it worked.  Had never used it prior.  Of course
that information was announced in a place where you would see it or it
would give you a clue, like in error code :(.


--
(paka)Patrick Shanahan       Plainfield, Indiana, USA          @ptilopteri
http://en.opensuse.org    openSUSE Community Member    facebook/ptilopteri
Registered Linux User #207535                    @ http://linuxcounter.net
Photos: http://wahoo.no-ip.org/piwigo                    paka @ IRCnet freenode

--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: CIFS mounts in 42.3 with latest kernel

Roger Oberholtzer-2
On Thu, Jan 11, 2018 at 3:55 PM, Patrick Shanahan <[hidden email]> wrote:

>
> * Roger Oberholtzer <[hidden email]> [01-11-18 07:07]:
> > More info on my system:
> >
> > # cat /proc/fs/cifs/DebugData
> >
> > Display Internal CIFS Data Structures for Debugging
> > ---------------------------------------------------
> > CIFS Version 2.08
> > Features: dfs fscache lanman posix spnego xattr acl
> > Active VFS Requests: 0
> > Servers:
>
> mine:
>   > cat /proc/fs/cifs/DebugData
>   Display Internal CIFS Data Structures for Debugging
>   ---------------------------------------------------
>   CIFS Version 2.10
>   Features: dfs fscache lanman posix spnego xattr acl
>   Active VFS Requests: 0
>   Servers:
>
> and my fstab has vers=2.1
>
> perhaps you need vers=2.0 or vers=2.08
>
> I lost cifs access sometime back and found a suggestion that the version
> info was now necessary and it worked.  Had never used it prior.  Of course
> that information was announced in a place where you would see it or it
> would give you a clue, like in error code :(.



I have been trying various versions, but it makes no difference. I
turned on some debugging, and now there is a buffer in the system log
when this happens. Part of it is;

[261480.510081] 0000 4e00                                ...N
[261480.510096] 53ff 424d 0072 0000 0000 c001 0000 0000  .SMBr...........
[261480.510104] 0000 0000 0000 0000 0000 114c 0000 0001  ..........L.....
[261480.510111] 2b00 0200 4d4c 2e31 5832 3030 0032 4c02  .+..LM1.2X002..L
[261480.510118] 4e41 414d 324e 312e 0200 544e 4c20 204d  ANMAN2.1..NT LM
[261480.510124] 2e30 3231 0200 4f50 4953 2058 0032       0.12..POSIX 2.
[261480.536523] 0000 5b00 53ff 424d 0072 0000 8000 c001  ...[.SMBr.......

I am guessing that this tell that it is LanManager 1.2 and/or 2.1.
There are a number of reported version numbers. I have tried them all,
and the problem persists.


--
Roger Oberholtzer

--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: CIFS mounts in 42.3 with latest kernel

Roger Oberholtzer-2
In reply to this post by Patrick Shanahan-2
On Thu, Jan 11, 2018 at 3:55 PM, Patrick Shanahan <[hidden email]> wrote:

> * Roger Oberholtzer <[hidden email]> [01-11-18 07:07]:
>> More info on my system:
>>
>> # cat /proc/fs/cifs/DebugData
>>
>> Display Internal CIFS Data Structures for Debugging
>> ---------------------------------------------------
>> CIFS Version 2.08
>> Features: dfs fscache lanman posix spnego xattr acl
>> Active VFS Requests: 0
>> Servers:
>
> mine:
>   > cat /proc/fs/cifs/DebugData
>   Display Internal CIFS Data Structures for Debugging
>   ---------------------------------------------------
>   CIFS Version 2.10
>   Features: dfs fscache lanman posix spnego xattr acl
>   Active VFS Requests: 0
>   Servers:
>
> and my fstab has vers=2.1
>
> perhaps you need vers=2.0 or vers=2.08

I missed a detail in your message: why is your CIFS reporting  2.10
while mine is reporting 2.08? I am running the current Leap 42.3
kernel. What are you running?

kernel-default-4.4.87-25.1.x86_64
cifs-utils-6.5-5.1.x86_64

Maybe I need to have 2.10 running on my Linux system?


--
Roger Oberholtzer

--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: CIFS mounts in 42.3 with latest kernel

Patrick Shanahan-2
* Roger Oberholtzer <[hidden email]> [01-12-18 02:49]:

> On Thu, Jan 11, 2018 at 3:55 PM, Patrick Shanahan <[hidden email]> wrote:
> > * Roger Oberholtzer <[hidden email]> [01-11-18 07:07]:
> >> More info on my system:
> >>
> >> # cat /proc/fs/cifs/DebugData
> >>
> >> Display Internal CIFS Data Structures for Debugging
> >> ---------------------------------------------------
> >> CIFS Version 2.08
> >> Features: dfs fscache lanman posix spnego xattr acl
> >> Active VFS Requests: 0
> >> Servers:
> >
> > mine:
> >   > cat /proc/fs/cifs/DebugData
> >   Display Internal CIFS Data Structures for Debugging
> >   ---------------------------------------------------
> >   CIFS Version 2.10
> >   Features: dfs fscache lanman posix spnego xattr acl
> >   Active VFS Requests: 0
> >   Servers:
> >
> > and my fstab has vers=2.1
> >
> > perhaps you need vers=2.0 or vers=2.08
>
> I missed a detail in your message: why is your CIFS reporting  2.10
> while mine is reporting 2.08? I am running the current Leap 42.3
> kernel. What are you running?
>
> kernel-default-4.4.87-25.1.x86_64
> cifs-utils-6.5-5.1.x86_64
>
> Maybe I need to have 2.10 running on my Linux system?

no, I am running Tw.  I just remembered having to add the vers info and
thought it might help.

fwiw: I know little of cifs and used google to set up what I have.  and it
seems that few examples use the same parameters for seemingly common
situations.  I must have experimeted with > 20 different sets for fstab
before getting it to work.  then three times updates killed it and it was
only solved by additional parameters, the last being the vers info.

gud luk,
--
(paka)Patrick Shanahan       Plainfield, Indiana, USA          @ptilopteri
http://en.opensuse.org    openSUSE Community Member    facebook/ptilopteri
Registered Linux User #207535                    @ http://linuxcounter.net
Photos: http://wahoo.no-ip.org/piwigo                    paka @ IRCnet freenode

--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: CIFS mounts in 42.3 with latest kernel

Jan Ritzerfeld-3
In reply to this post by Roger Oberholtzer-2
Am Donnerstag, 11. Januar 2018, 11:23:46 CET schrieb Roger Oberholtzer:
> I am trying to troubleshoot a CIFS mount issue on Leap 42.3. It is
> mounting shares from a Windows server.
> [...]

Which Windows version?

> The error happens both via automount (systemd vai /etc/fstab) and a
> direct mount command.
> [...]

Does "smbclient //server/data6 -I 10.2.67.50" give you a shell with access to
the share? If not, you can specify the debug level up to 10 with "-d ".

BTW, wireshark speaks SMB.

Gruß
 Jan
--
Every purchase has it's price.


--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: CIFS mounts in 42.3 with latest kernel

David C. Rankin
In reply to this post by Roger Oberholtzer-2
On 01/11/2018 04:23 AM, Roger Oberholtzer wrote:
> # mount --verbose -t cifs /server/data6 /media/mma-sql-1/data6 -o
> username=me,domain=here,sec=ntlm
>

The ntlm defaults have changed, I forget which version, but try:

  -o sec=ntlmssp

instead of

  sec=ntlm

--
David C. Rankin, J.D.,P.E.

--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]