Linux NFS development
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.com>
To: daggs <daggs@gmx.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: unable to mount nfs4 mount
Date: Sun, 25 Dec 2016 12:20:44 +1100	[thread overview]
Message-ID: <87inq8olcj.fsf@notabene.neil.brown.name> (raw)
In-Reply-To: <trinity-8111cff0-0509-405f-8faa-190a3c9291c6-1482609137078@3capp-mailcom-bs11>

[-- Attachment #1: Type: text/plain, Size: 3134 bytes --]

On Sun, Dec 25 2016, daggs wrote:

> Greeting Neil,
>
>> > Greetings,
>> >> 
>> >> > Greetings,
>> >> >
>> >> > I'm trying to mount an nfs mount it seems ti fails, I'd appreciate some help on the matter.
>> >> > the client is a gentoo setup with kernel 4.9.0, nfs-utils-1.3.4.
>> >> > running showmount -e 10.0.0.10 (the server) returns this:
>> >> > Export list for 10.0.0.10:
>> >> > /mnt/nfs_exports/media 10.0.0.0/24
>> >> > /mnt/nfs_exports       10.0.0.0/24
>> >> >
>> >> > when I try to mount I get this:
>> >> > mount -v -t nfs 10.0.0.10://mnt/nfs_exports/media /tmp/media -o vers=4,rw,async,auto
>> >> > mount.nfs: timeout set for Fri Dec 23 14:30:56 2016
>> >> > mount.nfs: trying text-based options 'vers=4,addr=10.0.0.10,clientaddr=10.0.0.1'
>> >> > mount.nfs: mount(2): Connection timed out
>> >> > mount.nfs: Connection timed
>> >> >
>> >> > the server is a odroidc2 board, the kernel is based 3.14.79 (I know it is old but there is still no full mainline kernel support for this board), nfs-utils-1.3.3 built with latest buildroot.
>> >> > cat /etc/exportfs returns this:
>> >> > /mnt/nfs_exports        10.0.0.0/24(rw,fsid=0,no_subtree_check)
>> >>                                          ^^^^^^^
>> >> 
>> >> Get rid of this, or get rid of "/mnt/nfs_exports" in your mount command.
>> >> i.e.
>> >>   mount -v -t nfs 10.0.0.10:/media /tmp/media -o vers=4,rw,async,auto
>> >> 
>> >
>> > tried the mount line, same behavior.
>> > client:
>> > mount -v -t nfs 10.0.0.10:/media /tmp/media -o vers=4,rw,async,auto
>> > mount.nfs: timeout set for Sat Dec 24 09:07:17 2016
>> > mount.nfs: trying text-based options 'vers=4,addr=10.0.0.10,clientaddr=10.0.0.1'
>> > mount.nfs: mount(2): Connection timed out
>> > mount.nfs: Connection timed out
>> 
>> Sorry - I should have known that.  I just responded to the first obvious
>> error I saw, without confirming that it would have the results
>> reported.  The error I saw wouldn't cause "Connection timed out".
>> 
>> This message
>> > [    8.588359] svc: svc_process dropit
>> 
>> might suggest that rpc.mountd isn't running. Is it?
>> If it is, is it producing any error messages in the logs?
>> 
>
> from the original post:
> ps aux | egrep "nfs|rpc" on the server returns this:
> 37 root [rpciod]
> 41 root [nfsiod]
> 132 root /usr/bin/rpcbind
> 194 root [nfsd4]
> 195 root [nfsd4_callbacks]
> 199 root [nfsd]
> 200 root [nfsd]
> 233 root rpc.statd
> 237 root /usr/sbin/rpc.idmapd
> 241 root rpc.mountd -V 3 -V 4

Sorry, I missed that.
Still, it looks like mountd might be misbehaving.  That is a good place
to start anyway.
Can you strace mountd while you attempt a mount?
e.g.
  strace -o /tmp/trace -s 1000 -p 241

and send the /tmp/trace.
Also, after the attempt fails, run
 rpcdebug -m rpc -s cache
 grep . /proc/net/rpc/*/c*
 cat /proc/fs/nfsd/exports

and report the output.

NeilBrown

> all the prints from the logs that I've found (/var/log/messages) exist in the previous mail I've sent.
> is there another log I'm missing? if so, where can I find it?
>
> Thanks.
>
> Dagg.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2016-12-25  1:20 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-23 13:12 unable to mount nfs4 mount daggs
2016-12-24  3:29 ` NeilBrown
2016-12-24  7:11   ` daggs
2016-12-24 19:41     ` NeilBrown
2016-12-24 19:52       ` daggs
2016-12-25  1:20         ` NeilBrown [this message]
2016-12-25 20:09           ` daggs
2016-12-25 20:33             ` NeilBrown
2016-12-26  7:48               ` daggs
2016-12-26 11:19                 ` NeilBrown
2016-12-26 18:54                   ` daggs
2017-01-04  3:18                     ` NeilBrown
2017-01-06 12:33                       ` daggs
2017-01-07  3:14                         ` NeilBrown
2017-02-03 13:31                           ` daggs

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=87inq8olcj.fsf@notabene.neil.brown.name \
    --to=neilb@suse.com \
    --cc=daggs@gmx.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox