当前位置:网站首页>SMB + SMB2: Accessing shares return an error after prolonged idle period
SMB + SMB2: Accessing shares return an error after prolonged idle period
2022-08-05 10:05:00 【51CTO】
Environment
Red Hat Enterprise Linux
6
7
8
SMB
SMB2
Issue
After a period of inactivity, accessing a SMB v1 share returns Permission denied for a user, but not others
After a period of inactivity, accessing a SMB v2+ share returns Input/output error for a user, but not others.
The following error may be returned in the logs: CIFS VFS: Unexpected lookup error -5
Periodically accessing a share avoids the errors.
Shares have to be unmounted and then remounted to regain access.
Resolution
SMB v1
RHEL 6
The ability for the client to recover from this issue will not be improved in Red Hat Enterprise Linux 6. The maximum version supported by the client in Red Hat Enterprise Linux 6 is SMBv1. Please see Workaround section for options.
RHEL7
This issue has been resolved with the errata RHSA-2021:0336 for the package(s) kernel-3.10.0-1160.15.2.el7 or later.
RHEL8
This issue has been resolved with the errata RHSA-2021:1578 for the package(s) kernel-4.18.0-305.el8 or later.
Workaround
Periodically access the SMB share to prevent the session from being closed.
Extend the session length timer on the SMB server.
Use SMB v2+
SMB v2+
RHEL 7.5
This issue has been resolved with the errata RHSA-2018:3459 for the package(s) kernel-3.10.0-862.20.2.el7 or later.
RHEL7
This issue has been resolved with the errata RHSA-2018:3083 for the package(s) kernel-3.10.0-957.el7 or later.
RHEL8
RHEL8 is not impacted by this issue
Root Cause
Historically, RHEL SMB clients did not attempt to reconnect to a SMB server after receiving STATUS_USER_SESSION_DELETED.
The below commit changes RHEL SMB client behavior for SMB v2+ and will force users to reconnect to a SMB server after receiving STATUS_USER_SESSION_DELETED instead of returning Input/output error when the share is accessed.
Raw
However, there is currently no transparent recovery for RHEL7 or RHEL8 as noted here. This means that the session will recover, but EAGAIN may be leaked to an application when requesting up-to-date inode information.
Diagnostic Steps
Record client side network traffic when it is accessing the SMB share.
On an unpatched system, the client is unable to establish a new connection for SMB2.
Raw
版权声明:本文为博主原创文章,未经博主允许不得转载。
Linux
边栏推荐
- 静态链接和动态链接
- dotnet OpenXML parsing PPT charts Getting started with area charts
- Handwriting Currying - toString Comprehension
- 第八章:activiti多用户任务分配
- The JVM collection that Alibaba's top architects have summarized for many years, where can't I check it!
- uniapp 连接ibeacon
- Microservice Technology Stack
- leetcode: 529. Minesweeper Game
- 开发常用手册链接分享
- 我们的Web3创业项目,黄了
猜你喜欢
【温度预警程序de开发】事件驱动模型实例运用
5.部署web项目到云服务器
高质量 DeFi 应用构建指南,助力开发者玩转 DeFi Summer
入门 Polkadot 平行链开发,看这一篇就够了
19.服务器端会话技术Session
【MindSpore易点通机器人-01】你也许见过很多知识问答机器人,但这个有点不一样
一文道清什么是SPL
The century-old Nordic luxury home appliance brand ASKO smart wine cabinet in the three-temperature area presents the Chinese Valentine’s Day, and tastes the love of the delicacy
NowCoderTOP35-40 - continuous update ing
Which big guy has the 11G GI and ojvm patches in April or January 2020, please help?
随机推荐
Egg framework usage (1)
Open Source Summer | How OpenHarmony Query Device Type (eTS)
The difference between find, matches, lookingAt matching strings in matcher
Seata source code analysis: initialization process of TM RM client
语音社交软件开发——充分发挥其价值
Jenkins manual (2) - software configuration
正则表达式replaceAll()方法具有什么功能呢?
偏向锁/轻量锁/重级锁锁锁更健康,上锁解锁到底是怎么完成实现的
How can project cost control help project success?
Is digital transformation a business buy-in?
Pytorch深度学习快速入门教程 -- 土堆教程笔记(三)
Wei Dongshan Digital Photo Frame Project Learning (6) Transplantation of tslib
Bias lock/light lock/heavy lock lock is healthier. How is locking and unlocking accomplished?
七夕浪漫约会不加班,RPA机器人帮你搞定工作
创建一个 Dapp,为什么要选择波卡?
百年北欧奢华家电品牌ASKO智能三温区酒柜臻献七夕,共品珍馐爱意
QSS 选择器
dotnet OpenXML parsing PPT charts Getting started with area charts
茄子科技CEO仇俊:以用户为中心,做用户真正需要的产品
第五章:redis持久化,包括rdb和aof两种方式[通俗易懂]