解决nfs挂载经常卡死的问题

有同事的电脑挂载nfs老是卡死,但其它人的电脑没有出现这个问题,经过网络查询,最络发现只要挂载时添加nfsvers=4.0就可以解决问题;

(base) [root@localhost ~]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Wed Oct 23 06:14:11 2019
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/centos-root /                       xfs     defaults        0 0
UUID=1b8294b3-07b7-48f8-b954-aa8022c404e8 /boot                   xfs     defaults        0 0
/dev/mapper/centos-home /home                   xfs     defaults        0 0
/dev/mapper/centos-swap swap                    swap    defaults        0 0
/dev/vg_harddisk2/lv_harddisk2 /data            xfs     defaults        0 0
nfssever:/public /mnt   nfs  nfsvers=4.0  0 0

 

你可能感兴趣的:(解决nfs挂载经常卡死的问题)