OpenWrt Forum Archive

Topic: OpenWRT as nfs client fails

The content of this topic has been archived on 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I'm trying to use OpenWRT as nfs client. I have added nfs client support in the kernel, and nfs mount in busybox. But I can't mount:

root@OpenWrt:/# mount 192.168.1.252:/share/nfs/sx551 /mnt/nfs/
[   64.890000] svc: failed to register lockdv1 RPC service (errno 146).
[   64.900000] lockd_up: makesock failed, error=-146
mount: mounting 192.168.1.252:/share/nfs/sx551 on /mnt/nfs/ failed: Connection refused

In my server log I find only this:

Apr 17 19:21:03 fileserver mountd[14430]: authenticated mount request from openwrt:651 for /share/nfs/sx551 (/share/nfs/sx551)

On subsequent attempts the lockd_up message doesn't show up anymore:

root@OpenWrt:/# mount 192.168.1.252:/share/nfs/sx551 /mnt/nfs/
[  264.620000] svc: failed to register lockdv1 RPC service (errno 146).
mount: mounting 192.168.1.252:/share/nfs/sx551 on /mnt/nfs/ failed: Connection refused

What am I doing wrong?

(Last edited by Mijzelf on 17 Apr 2012, 20:04)

I have found that adding the option 'nolock' works:

root@OpenWrt:/tmp# mount fileserver.lan:/share/nfs/sx551 /tmp/nfs -o nolock
root@OpenWrt:/tmp#

Why does this work? On other clients I don't need to add this.

Thanks. A bit stupid that I search everywhere for that NFS problem, except in the most obvious place, the wiki.

The discussion might have continued from here.