svc: failed to register lockdv1 RPC service (errno 97).

Previous thread: Re: 2.6.27.19 + 28.7: network timeouts for r8169 and 8139too by David Dillow on Sunday, May 10, 2009 - 8:29 pm. (14 messages)

Next thread: [resend] Passive OS fingerprint xtables match. by Evgeniy Polyakov on Monday, May 11, 2009 - 5:53 am. (16 messages)
To: Netdev <netdev@...>
Cc: <linux-kernel@...>, Chuck Lever <chuck.lever@...>, Trond Myklebust <Trond.Myklebust@...>
Date: Sunday, May 10, 2009 - 8:48 pm

After switching from 2.6.29.2 to 2.6.30-rc5 I get this new message during
boot of my home server:
svc: failed to register lockdv1 RPC service (errno 97).

This looks to be the result of the following commit:
commit 363f724cdd3d2ae554e261be995abdeb15f7bdd9
Author: Chuck Lever <chuck.lever@oracle.com>
SUNRPC: rpcb_register() should handle errors silently
Move error reporting for RPC registration to rpcb_register's caller.

Question is: do I really want to know this? I assume the "failure"
happened with previous kernels too, but silently.

If I do need to know this, it would be nice if the error was more
informative. I had to grep the kernel source to see that 97 is
-EAFNOSUPPORT and that that means "Address family not supported by
protocol". And even with that I don't know whether it's IPv4 or IPv6
where the failure is.

My impression is that this is a bogus message from a user's perspective
and that it should not be displayed.

Cheers,
FJP

To: Frans Pop <elendil@...>
Cc: Netdev <netdev@...>, Linux Kernel <linux-kernel@...>, Trond Myklebust <Trond.Myklebust@...>, Linux NFS mailing list <linux-nfs@...>
Date: Monday, May 11, 2009 - 10:06 am

Is this the only instance of this message, or do you see it several

This code is under development, so the message is printed for now. A
number is displayed because a) there is no strerror(3) in the kernel,
and b) it's designed to catch unexpected errors, not cases we know
about.

The server-side RPC code is attempting to be more automatic about
which address families are supported by kernel NFS services. This
message tells us that some particular case is not handled yet. I

Can you report more about your server configuration? What
distribution is this? Does user space have portmapper or rpcbind?
Are you blacklisting ipv6.ko? What's the output of "rpcinfo" on your

To: Chuck Lever <chuck.lever@...>
Cc: Netdev <netdev@...>, Linux Kernel <linux-kernel@...>, Trond Myklebust <Trond.Myklebust@...>, Linux NFS mailing list <linux-nfs@...>
Date: Monday, May 11, 2009 - 10:39 am

Debian stable (Lenny).
nfs-common and nfs-kernel-server (1.1.2)

No, the server has IPv6 enabled.
I'm using NFS mainly from my laptop though, which does not have an IPv6

I guess you mean the -p option?

$ rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100021 1 udp 47955 nlockmgr
100021 3 udp 47955 nlockmgr
100021 4 udp 47955 nlockmgr
100021 1 tcp 41860 nlockmgr
100021 3 tcp 41860 nlockmgr
100021 4 tcp 41860 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100005 1 udp 40032 mountd
100005 1 tcp 40623 mountd
100005 2 udp 40032 mountd
100005 2 tcp 40623 mountd
100005 3 udp 40032 mountd
100005 3 tcp 40623 mountd
391002 2 tcp 792 sgi_fam

Cheers,
FJP
--

To: Frans Pop <elendil@...>
Cc: Netdev <netdev@...>, Linux Kernel <linux-kernel@...>, Trond Myklebust <Trond.Myklebust@...>, Linux NFS mailing list <linux-nfs@...>
Date: Monday, May 11, 2009 - 12:39 pm

No, I meant that whether or not you saw an error message, the

The NFS client and server appear to start lockd listeners for NFSv4.

In this case, it looks like the message can be treated as a notice. I
think in general we could safely make that a dprintk, but I'd like to
wait a bit more to see if we catch any bad behavior.

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com
--

To: Chuck Lever <chuck.lever@...>
Cc: Frans Pop <elendil@...>, Netdev <netdev@...>, Linux Kernel <linux-kernel@...>, Trond Myklebust <Trond.Myklebust@...>, Linux NFS mailing list <linux-nfs@...>
Date: Monday, June 29, 2009 - 2:33 am

I'm running arm 2.6.30 kernel and a 2.6.30 kernel on my desktop.

I see this "[1257016.190000] nfsd: last server has exited, flushing
export cache
[1257018.250000] svc: failed to register lockdv1 RPC service (errno 97).
."
On both ends. The arm is running debian lenny (armel). The desktop is
debian lenny (32bit i368). When this error i cannot continue to
transfer files.

Here is the config of the /etc/exports and what i try to use

"/media/nfs_shares/rsync/ *(rw,no_subtree_check)"
i mount on the desktop with

[root@desktop ]# mount 192.168.1.12:/media/Y/W/ /media/mount_point/ -o soft

and i try using rsync like this (from my desktop).

rsync -av --progress /home/User_NAME/BACKUP/Y/W/X/ /media/mount_point/W/X
and it just hangs. I then try to unmount it and i have problems doing
so. so i need to force the umount

"19051.391800] Performance counters on
[319051.391804] input device check on
[319051.391807] Actions configured
[399843.223405] RPC: Registered udp transport module.
[399843.223413] RPC: Registered tcp transport module.
[399843.346956] svc: failed to register lockdv1 RPC service (errno 97).
[401465.708049] device eth1 left promiscuous mode
[401689.794716] svc: failed to register lockdv1 RPC service (errno 97).
[402224.640535] svc: failed to register lockdv1 RPC service (errno 97).
[402356.791524] svc: failed to register lockdv1 RPC service (errno 97).
[402702.197491] svc: failed to register lockdv1 RPC service (errno 97).
"
I am only using nfs2. I am not using nfs4 / nfs3.

This issue is most troublesome as it breaks my use of nfs.

--

To: db <db.pub.mail@...>
Cc: Frans Pop <elendil@...>, Netdev <netdev@...>, Linux Kernel <linux-kernel@...>, Trond Myklebust <Trond.Myklebust@...>, Linux NFS mailing list <linux-nfs@...>
Date: Monday, June 29, 2009 - 10:15 am

Right at the moment I think this message is a coincidence. But let's
chase it a little and see what we get.

First, you provided a couple of kernel log snippets here, but you
didn't identify which snippet comes from your server, and which from
your client. I assume the above one comes from your server, and the
below comes from your client.

Do you happen to have IPv6 configured on your systems ("ifconfig -
a")? What is the output of "rpcinfo" on your client and on your

"cat /proc/mounts" on your client so we can see exactly what mount

Have you captured a network trace? Start the trace before mounting

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com

--

To: Chuck Lever <chuck.lever@...>
Cc: Frans Pop <elendil@...>, Netdev <netdev@...>, Linux Kernel <linux-kernel@...>, Trond Myklebust <Trond.Myklebust@...>, Linux NFS mailing list <linux-nfs@...>
Date: Monday, June 29, 2009 - 3:12 am

Sorry a correction i am using nfs3 (according to network dumps).
+ AND the issue appears to exist in the 2.6.30 kernel on my e100
network card after i transfer a large amount of data.
**

--

Previous thread: Re: 2.6.27.19 + 28.7: network timeouts for r8169 and 8139too by David Dillow on Sunday, May 10, 2009 - 8:29 pm. (14 messages)

Next thread: [resend] Passive OS fingerprint xtables match. by Evgeniy Polyakov on Monday, May 11, 2009 - 5:53 am. (16 messages)