执行mount命令一直卡着不动,可以把mount命令加上-v的参数,这样在控制台就能看到具体的报错信息,以方便排查解决问题。
加上后可以看到:
- sudo mount -v -t nfs 192.168.110.45:/data /data
-
- mount.nfs: timeout set for Tue Nov 21 12:22:47 2023
- mount.nfs: trying text-based options 'vers=4.2,addr=192.168.110.45,clientaddr=192.168.110.192'
尝试使用 NFS 的其他版本进行挂载,如版本 3 ,解决
- sudo mount -v -t nfs -o vers=3 192.168.110.45:/data /data
-
- mount.nfs: timeout set for Tue Nov 21 12:23:50 2023
- mount.nfs: trying text-based options 'vers=3,addr=192.168.110.45'
- mount.nfs: prog 100003, trying vers=3, prot=6
- mount.nfs: trying 192.168.110.45 prog 100003 vers 3 prot TCP port 2049
- mount.nfs: prog 100005, trying vers=3, prot=17
- mount.nfs: trying 192.168.110.45 prog 100005 vers 3 prot UDP port 37409