在機器上當 nfs client 時,看到 log 出現了下面的東西
lockd: cannot monitor 192.168.0.3
查了一下,是 rpc.statd 沒有執行的結果,所以不能夠正常的 monitor NFS 伺服器的狀態。
執行 /etc/init.d/nfs-common start 就可以。
實際上,系統是執行 /usr/sbin/rpc.statd, /usr/sbin/rpc.lockd 這 2 個程式,同時,也要檢查
/var/lib/nfs 目錄是否存在,不然會出現
Starting NFS statd: statd: Could not chdir: No such file or directory [FAILED]
解決方法就是重建一個新的 /var/lib/nfs 目錄就可以了。
參考資料:
Nfs lock problem