导语
之前安装
ntf-utils
之后,/var/log/messages
里面出现大量的报错信息如下,进过排查确认是 centos7 关于nfs 1.3.0-0.21.el7_2 版本的bug
Jul 5 15:07:42 milian-backend nfsdcltrack[9337]: sqlite_insert_client: insert statement prepare failed: table clients has 2 columns but 3 values were supplied
Jul 5 15:07:43 milian-backend nfsdcltrack[9345]: sqlite_insert_client: insert statement prepare failed: table clients has 2 columns but 3 values were supplied
Jul 5 15:07:47 milian-backend nfsdcltrack[9355]: sqlite_insert_client: insert statement prepare failed: table clients has 2 columns but 3 values were supplied
Jul 5 15:07:49 milian-backend nfsdcltrack[9358]: sqlite_insert_client: insert statement prepare failed: table clients has 2 columns but 3 values were supplied
系统环境
root@pts/1 $ cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
root@pts/1 $ uname -a
Linux milian-backend 3.10.0-229.4.2.el7.x86_64 #1 SMP Wed May 13 10:06:09 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
## nfs 版本
nfs-utils-1.3.0-0.21.el7_2.x86_64
解决
## 升级 nfs-utils
yum install nfs-utils
## 升级前后
before:
root@pts/1 $ rpm -qa|grep nfs
nfs-utils-1.3.0-0.21.el7_2.x86_64
after:
root@pts/1 $ rpm -qa|grep nfs
nfs-utils-1.3.0-0.21.el7_2.1.x86_64
升级之后再观察没有相应的报错信息
bug 请参考官网说明