当前位置:网站首页>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
边栏推荐
- Pycharm 常用外部工具
- 第六章:activiti流程分流判断之排它网关和并行网关
- 第四章:redis 数组结构的set和一些通用命令「建议收藏」
- After Keil upgrades to AC6, what changes?
- uniapp connect ibeacon
- Getting started with Polkadot parachain development, this article is enough
- MySQL advanced (twenty-seven) database index principle
- Meteorological data processing example - matlab string cutting matching and R language date matching (data splicing)
- 19. Server-side session technology Session
- ffmpeg drawtext add text watermark
猜你喜欢

皕杰报表的下拉框联动

NowCoderTOP35-40——持续更新ing

Jenkins manual (2) - software configuration

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

hcip BGP 增强实验

Bias lock/light lock/heavy lock lock is healthier. How is locking and unlocking accomplished?

什么是CRM决策分析管理?

IDEA执行Test操作导致数据插入时出现了重复数据

偏向锁/轻量锁/重级锁锁锁更健康,上锁解锁到底是怎么完成实现的

Open Source Summer | How OpenHarmony Query Device Type (eTS)
随机推荐
企业的数字化转型到底是否可以买来?
入门 Polkadot 平行链开发,看这一篇就够了
无题七
使用工具类把对象中的null值转换为空字符串(集合也可以使用)
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
Open Source Summer | How OpenHarmony Query Device Type (eTS)
项目成本控制如何帮助项目成功?
百年北欧奢华家电品牌ASKO智能三温区酒柜臻献七夕,共品珍馐爱意
第四章:activiti流程中,变量的传递和获取流程变量 ,设置和获取多个流程变量,设置和获取局部流程变量「建议收藏」
Analysis and practice of antjian webshell dynamic encrypted connection
2022华数杯数学建模A题环形振荡器的优化设计思路思路代码分享
第五章:多线程通信—wait和notify
leetcode: 529. 扫雷游戏
正则表达式replaceAll()方法具有什么功能呢?
Our Web3 Entrepreneurship Project, Yellow
手写柯里化 - toString 理解
我们的Web3创业项目,黄了
STM32+ULN2003驱动28BYJ4步进电机(根据圈数正转、反转)
Introduction to SD NAND Flash!
IDEA performs the Test operation, resulting in duplicate data when data is inserted