Re: mount.cifs - 4.8.1 -- server side restart - CIFS VFS: No response for cmd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 26, 2011 at 4:19 PM, Shirish Pargaonkar
<shirishpargaonkar@xxxxxxxxx> wrote:
> On Wed, Oct 26, 2011 at 2:27 PM, Tim Lank <timlank@xxxxxxxxxxx> wrote:
>> linux-cifs list:
>>
>> We are mounting a share provided by a Unisys MCP mainframe with the
>> following fstab entry....
>>
>> /etc/fstab:
>> //UnisysMCPmainframe.example.com/staging_test /mnt/staging cifs
>> rw,file_mode=0775,dir_mode=
>> 0775,uid=4051,gid=4053,credentials=/etc/nx-credentials.txt,_netdev 0 0
>>
>> The mount is established just fine and works with the exception that
>> the mainframe does not support the POSIX utime() calls when files are
>> being created.
>>
>> What we see though in operation, is that when the mainframe is
>> restarted (halt/load in their terminology), the mount.cifs module ends
>> up throwing the following into /var/log/messages and continually tries
>> to re-authenticate to the share (gleaned from tcpdump traces).  The
>> mainframe logs show that these mounts try (and succeed) to "ATTACH"
>> (re-authenticate & re-establish the connection) once or twice a minute
>> thereafter.  This essentially fills their logs and makes them unhappy
>> as you might imagine.  These messages don't appear after an initial
>> mount and before a mainframe halt/load -- only after that point.
>>
>> How do we prevent this behavior from our mount.cifs?
>>
>> /var/log/messages:
>> Oct 26 04:33:15 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 50 mid 2068
>> Oct 26 04:35:24 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2071
>> Oct 26 04:36:07 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2074
>> Oct 26 04:36:19 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2077
>> Oct 26 04:38:04 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2090
>> Oct 26 04:38:16 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2093
>> Oct 26 04:39:04 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2096
>> Oct 26 04:39:13 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2099
>> Oct 26 04:40:07 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2102
>> Oct 26 04:40:19 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2105
>> Oct 26 04:41:07 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2108
>> Oct 26 04:41:16 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2111
>> Oct 26 04:42:13 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2119
>> Oct 26 04:42:25 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2122
>> Oct 26 04:43:10 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2125
>> Oct 26 04:44:14 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2132
>> Oct 26 04:45:10 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2139
>> Oct 26 04:46:13 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2146
>> Oct 26 04:48:04 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2160
>> Oct 26 04:48:16 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2163
>> Oct 26 04:49:04 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2166
>> Oct 26 04:49:13 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2169
>> Oct 26 04:50:06 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2172
>> Oct 26 04:50:18 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2175
>> Oct 26 04:51:09 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2178
>> Oct 26 04:51:21 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2181
>> Oct 26 04:53:04 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2191
>> Oct 26 04:53:16 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2194
>> Oct 26 04:54:04 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2197
>> Oct 26 04:54:13 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2200
>> Oct 26 04:55:11 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2203
>> Oct 26 04:55:23 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2206
>> Oct 26 04:56:07 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2209
>> Oct 26 04:56:16 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2212
>> Oct 26 04:56:33 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2215
>> Oct 26 04:56:39 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2218
>> Oct 26 04:57:13 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2228
>> Oct 26 04:58:10 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2235
>> Oct 26 04:59:13 linuxbox-263213161 kernel: CIFS VFS: No response for
>> cmd 117 mid 2242
>>
>> # uname -r -v
>> 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Jun 20 14:15:38 EDT 2011
>>
>> # mount.cifs -V
>> mount.cifs version: 4.8.1
>>
>> # rpm -qa | grep cifs
>> cifs-utils-4.8.1-2.el6.x86_64
>>
>> # modinfo cifs
>> filename:       /lib/modules/2.6.32-131.6.1.el6.x86_64/kernel/fs/cifs/cifs.ko
>> version:        1.68
>> description:    VFS to access servers complying with the SNIA CIFS
>> Specification e.g. Samba and Windows
>> license:        GPL
>> author:         Steve French <sfrench@xxxxxxxxxx>
>> srcversion:     6BE0EB6FED154E567A97675
>> depends:
>> vermagic:       2.6.32-131.6.1.el6.x86_64 SMP mod_unload modversions
>> parm:           CIFSMaxBufSize:Network buffer size (not including
>> header). Default: 16384 Range: 8192 to 130048 (int)
>> parm:           cifs_min_rcv:Network buffers in pool. Default: 4
>> Range: 1 to 64 (int)
>> parm:           cifs_min_small:Small network buffers in pool. Default:
>> 30 Range: 2 to 256 (int)
>> parm:           cifs_max_pending:Simultaneous requests to server.
>> Default: 50 Range: 2 to 256 (int)
>>
>> Documentation for the Unisys Mainframe can be found here....
>> http://public.support.unisys.com/search/DocumentationSearch.aspx?ID=643&pla=ps&nav=ps
>>
>> Unisys MCP release 13.1
>> MCP: *SYSTEM/MCP/541_74 [MCP 13 / SSR 54.1 (54.189.8444)]
>> Release ID: XXX 54.1A.74
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
>> the body of a message to majordomo@xxxxxxxxxxxxxxx
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>
> I think you may be better off with 1.69 versions or higher of the
> cifs module. It handles reconnects much better, without logging
> such errors.
>

Red Hat would like to know whether you are referring any particular
bug fixes so that they can check whether these bug fixes is included
in the release we have or not.

Also, should this make any difference whatsoever in the behavior?

# echo 0 > /proc/fs/cifs/OplockEnabled

>From a network connectivity standpoint, there is a firewall between
the linux box and the mainframe, but of course, we are able to mount
and operate without issues up until the point where it has a
disconnect on the other end and needs to re-establish/regain the
connection.
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux