From: Chuck Lever <chuck.lever@oracle.com>
To: Ben Hutchings <ben@decadent.org.uk>
Cc: Steven Shiau <steven@nchc.org.tw>,
579397@bugs.debian.org, linux-nfs@vger.kernel.org
Subject: Re: Bug#579397: STAT_FAIL to debian for SM_MON of 192.168.120.254, No canonical hostname found for 192.168.120.254
Date: Thu, 03 Jun 2010 17:08:18 -0400 [thread overview]
Message-ID: <4C0819C2.2020203@oracle.com> (raw)
In-Reply-To: <4BFA99CD.2040902@oracle.com>
On 05/24/10 11:22 AM, Chuck Lever wrote:
> On 05/21/10 09:38 PM, Ben Hutchings wrote:
>> On Sat, 2010-05-22 at 07:49 +0800, Steven Shiau wrote:
>>> Same problem here. However, mine is on the client side.
>>> On sid system, running kernel is 2.6.32-5-686, nfs-common is 1:1.2.2-1.
>>> When I mount my NFS server 192.168.120.254, it works. However, if I want
>>> to use some tool which need to lock file to save the file on the NFS
>>> server, e.g.
>>> vgcfgbackup -f $NFS_MNT_POINT/vg.cfg
>>> I get the message "lockd: cannot monitor 192.168.120.254", and the
>>> message shown on the /var/log/daemon.log:
>>> May 21 08:52:44 debian rpc.statd[1298]: STAT_FAIL to debian for SM_MON
>>> of 192.168.120.254
>>> May 21 08:52:44 debian rpc.statd[1298]: No canonical hostname found for
>>> 192.168.120.254
>> [...]
>>
>> nfs-utils 1.2.2 includes the change:
>>
>> commit 8ce130c4c828b9d13d429f22160f992b9c1d45cd
>> Author: Chuck Lever<chuck.lever@oracle.com>
>> Date: Thu Jan 14 12:24:15 2010 -0500
>>
>> statd: Support IPv6 in sm_mon_1_svc()
>>
>> This appears to have removed support for IPv4 literals. Was this
>> intentional?
>
> statd usually requires a DNS reverse mapping for any host it monitors.
> Does your DNS have a reverse mapping for 192.168.120.254?
>
> It looks like the new logic is more restrictive than the old statd when
> mon_name is a presentation address. The old code simply allowed
> presentation addresses with no reverse mapping. The new code requires a
> reverse DNS mapping for presentation addresses. I think even an entry in
> /etc/hosts would allow a raw address to work in this case.
>
> We can probably remove the reverse mapping constraint for presentation
> addresses. A simple fix might be to change statd_canonical_name() from:
>
> freeaddrinfo(ai);
> if (!result)
> return NULL;
>
> to
>
> freeaddrinfo(ai);
> if (!result)
> return strdup(hostname);
>
> Let me know if this works.
Any update? I have a patch ready for nfs-utils to fix this regression,
but I need confirmation that it addresses your problem.
next prev parent reply other threads:[~2010-06-03 21:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4BF71C27.7070309@nchc.org.tw>
2010-05-22 1:38 ` Bug#579397: STAT_FAIL to debian for SM_MON of 192.168.120.254, No canonical hostname found for 192.168.120.254 Ben Hutchings
2010-05-24 15:22 ` Chuck Lever
2010-06-03 21:08 ` Chuck Lever [this message]
2010-06-05 20:29 ` Ben Hutchings
2010-06-09 14:41 ` Steven Shiau
2010-07-06 17:05 ` Chuck Lever
2010-08-08 4:59 ` Ben Hutchings
2010-08-08 16:55 ` Chuck Lever
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C0819C2.2020203@oracle.com \
--to=chuck.lever@oracle.com \
--cc=579397@bugs.debian.org \
--cc=ben@decadent.org.uk \
--cc=linux-nfs@vger.kernel.org \
--cc=steven@nchc.org.tw \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).