天天看點

mount.nfs: Input/output error解決方法

在使用NFS的時候,用戶端挂載時,卡住很久沒有反應,過一會後提示錯誤如下:

[root@lamp ~]# mount -t nfs 192.168.1.192:/backup /mnt
mount.nfs: Input/output error      

檢視伺服器端NFS狀态

[root@rsync ~]# /etc/init.d/nfs status
rpc.mountd (pid 28493) is running...
nfsd (pid 28490 28489 28488 28487 28486 28485 28484 28483) is running...
rpc.rquotad (pid 28464) is running...      

檢視伺服器端protmap狀态

[root@rsync ~]# /etc/init.d/portmap status
portmap (pid 2539) is running...      

這裡伺服器端兩個服務都已經啟動了。

去用戶端檢視一下共享挂載的情況:

[root@lamp ~]# showmount -e 192.168.1.192            
Export list for 192.168.1.192:
/backup 192.168.1.0/24      

也沒問題,檢視一下用戶端portmap的情況呢

[root@lamp ~]# /etc/init.d/portmap status
portmap is stopped      
[root@lamp ~]# /etc/init.d/portmap start
Starting portmap:                                          [  OK  ]      
[root@lamp ~]# mount -t nfs 192.168.1.192:/backup /mnt
[root@lamp ~]#      
[root@lamp ~]# mount
192.168.1.192:/backup on /mnt type nfs (rw,addr=192.168.1.192)