【nfs】输入输出错误

2019-05-25  本文已影响0人  小醉90s

环境

系统版本:centos7 7.6.1810

文件系统:xfs

文件服务:nfs

错误

开发人员反馈nfs文件写入有问题,提示:Input/output error


[web@localhost wisePushExcelExport]$ echo 4 > 7.txt

-bash: 7.txt: Input/output error

解决

步骤:

总结

初步分析是:之前自己装的系统都是ext4(centos6/centos7),机房给装的系统是xfs,造成nfs写入有问题,最后挂载时使用nfs的ver3而不是默认的ver4就可以了


mount -t nfs -o vers=3 10.10.10.10:/data/nfs/webfiles/ /home/web/webfiles/

参考

https://www.cnblogs.com/nineep/p/7011087.html

https://community.hpe.com/t5/System-Administration/NFS-nolock-option/td-p/4474666#.XOc5GdwzbIU

上一篇 下一篇

猜你喜欢

热点阅读