truenas nfs 问题 "nfs4_reclaim_open_state: Lock reclaim failed!" 和 "Input/output error"

yucong111

Dabbler
Joined
Jan 4, 2023
Messages
17
Truenas core 版本: TrueNAS-13.0-U5.2
nfs 客户端系统版本: centos 7.9.2009
客户端挂载命令和参数:
192.168.10.16:/mnt/dev1/jenkins on /var/jenkins_home type nfs4 (rw,noatime,nodiratime,vers=4.0,rsize=131072,wsize=131072,namlen=255,hard,noresvport,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.3.106,local_lock=none,addr=192.168.10.16,_netdev)


问题:
1. 客户端读取文件或者创建文件出现 Input/output error ,但是创建同名目录正常
[root@localhost 123]# touch 1122 touch: cannot touch ‘1122’: Input/output error [root@localhost 123]# touch 2233 touch: cannot touch ‘2233’: Input/output error [root@localhost 123]# touch 3344 touch: cannot touch ‘3344’: Input/output error [root@localhost 123]# mkdir 1122 [root@localhost 123]# mkdir 2233 [root@localhost 123]# mkdir 3344 [root@localhost 123]# touch 4455 touch: cannot touch ‘4455’: Input/output error [root@localhost 123]# touch 5566 touch: cannot touch ‘5566’: Input/output error

2. /var/log/messages log 查看 messages 和 dmesg 日志,发现 nfs4_reclaim_open_state: Lock reclaim 错误
Nov 13 16:43:29 localhost kernel: NFS: nfs4_reclaim_open_state: Lock reclaim failed! Nov 13 16:43:29 localhost kernel: NFS: nfs4_reclaim_open_state: Lock reclaim failed!

3. 客户端重新挂载 nfs 的前几秒可以正常创建文件,但是几秒后又创建失败,跟之前一样只能创建目录
[root@localhost 123]# cd [root@localhost ~]# umount /var/jenkins_home/ [root@localhost ~]# mount -a [root@localhost ~]# cd /var/jenkins_home/123/ [root@localhost 123]# touch 1111 [root@localhost 123]# touch 2222 [root@localhost 123]# touch 3333 [root@localhost 123]# touch 4444 [root@localhost 123]# touch 5555 touch: cannot touch ‘5555’: Input/output error [root@localhost 123]# touch 6666 touch: cannot touch ‘6666’: Input/output error [root@localhost 123]# touch 1111 [root@localhost 123]# touch 2222 [root@localhost 123]# touch 3333 [root@localhost 123]# touch 4444 [root@localhost 123]# touch 5555 touch: cannot touch ‘5555’: Input/output error [root@localhost 123]# touch aaaa touch: cannot touch ‘aaaa’: Input/output error [root@localhost 123]# touch bbbb touch: cannot touch ‘bbbb’: Input/output error [root@localhost 123]# mkdir 5555 [root@localhost 123]# mkdir 6666

4.
有人遇到过这个问题吗?
 

yucong111

Dabbler
Joined
Jan 4, 2023
Messages
17
没碰到过,现在都用最新版本了= =
最近也看了新版U6.0,主要是没看到这个版本有更新、修复 nfs 或者存储相关的bug,所以升级了也不一定能解决我的问题
 
Top