From: Tom Haynes <tdh@excfb.com>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Tom Haynes <tdh@excfb.com>, linux-nfs@vger.kernel.org
Subject: Re: Debugging mount failure with netgroup
Date: Mon, 7 Feb 2011 14:53:06 -0600 [thread overview]
Message-ID: <20110207205306.GA13731@adept.internal.excfb.com> (raw)
In-Reply-To: <20110207201202.GA3055@fieldses.org>
On Mon, Feb 07, 2011 at 03:12:02PM -0500, J. Bruce Fields wrote:
> > What can I do to further triage this?
>
> Alas, I've never used netgroups, much less tried to debug problems with
> them.... Have you tried looking at the nis traffic over "lo" to see if
> mountd's doing the right queries? You could also try seeing if adding
> "-dall" to the rpc.mountd commandline turns up any useful debugging.
[tdh@adept ~]> sudo tshark -i lo
Running as user "root" and group "root". This could be dangerous.
Capturing on lo
0.000000 192.168.2.108 -> 192.168.2.108 DNS Standard query PTR 105.2.168.192.in-addr.arpa
0.002862 192.168.2.108 -> 192.168.2.108 DNS Standard query response PTR wont.internal.excfb.com
0.003455 192.168.2.108 -> 192.168.2.108 DNS Standard query A wont.internal.excfb.com
0.003499 192.168.2.108 -> 192.168.2.108 DNS Standard query AAAA wont.internal.excfb.com
0.003819 192.168.2.108 -> 192.168.2.108 DNS Standard query response A 192.168.2.105
0.003939 192.168.2.108 -> 192.168.2.108 DNS Standard query response
0.004427 192.168.2.108 -> 192.168.2.108 DNS Standard query A wont.internal.excfb.com
0.004761 192.168.2.108 -> 192.168.2.108 DNS Standard query response A 192.168.2.105
7.472292 192.168.2.108 -> 192.168.2.108 YPSERV V2 DOMAIN Call
7.472413 192.168.2.108 -> 192.168.2.108 YPSERV V2 DOMAIN Reply (Call In 9)
The above seems to suggest that the host lookup went fine.
-dall:
Feb 7 14:35:27 adept mountd[13285]: check_default: access by 192.168.2.105 ALLOWED (cached)
Feb 7 14:35:27 adept mountd[13285]: Received NULL request from 192.168.2.105
Feb 7 14:35:27 adept mountd[13285]: check_default: access by 192.168.2.105 ALLOWED (cached)
Feb 7 14:35:27 adept mountd[13285]: Received NULL request from 192.168.2.105
Feb 7 14:35:27 adept mountd[13285]: check_default: access by 192.168.2.105 ALLOWED (cached)
Feb 7 14:35:27 adept mountd[13285]: Received MNT3(/fooper) request from 192.168.2.105
Feb 7 14:35:27 adept mountd[13285]: refused mount request from 192.168.2.105 for /fooper (/fooper): unmatched host
>
> After that, I don't know, I suppose I'd start looking at the mountd
> source....
Yeah, I'm not sure if I can do that. :->
I did google and did not find much on netgroups - but I did find
a bunch on "unmatched host".
It seems to be black magic from some of the answers.
And I agree:
1) Modified the export:
[root@adept /]# more /etc/exports
/fooper @adeptya(rw,insecure,no_root_squash,sync)
2) Did other mumbo-jumbo
3) Really, really did not want to reboot.
4) service nfs stop ; exportfs ; service nfs start
And that last one worked!
Feb 7 14:44:31 adept mountd[13712]: Received MNT3(/fooper) request from 192.168.2.105
Feb 7 14:44:31 adept mountd[13712]: authenticated mount request from wont.internal.excfb.com:972 for /fooper (/fooper)
Feb 7 14:44:31 adept mountd[13712]: nfsd_fh: inbuf '@adeptya 7 \x0100060000000000a9a3be796f4c43878b99ea75025e5384'
Feb 7 14:44:31 adept mountd[13712]: nfsd_fh: found 0x20da950 path /fooper
Thanks
>
> --b.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Tom Haynes
ex-cfb
next prev parent reply other threads:[~2011-02-07 20:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-07 19:56 Debugging mount failure with netgroup Tom Haynes
2011-02-07 20:12 ` J. Bruce Fields
2011-02-07 20:53 ` Tom Haynes [this message]
2011-02-07 21:19 ` J. Bruce Fields
2011-02-07 21:53 ` Tom Haynes
2011-02-07 21:59 ` J. Bruce Fields
2011-02-07 23:21 ` Tom Haynes
2011-02-09 0:23 ` J. Bruce Fields
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=20110207205306.GA13731@adept.internal.excfb.com \
--to=tdh@excfb.com \
--cc=bfields@fieldses.org \
--cc=linux-nfs@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.