Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #71672

Re: Re: Re: [PATCH/RFC nfs-utils] Fix NFSv4 export of tmpfs filesystems.

From "NeilBrown" <neilb@suse.de>
Newsgroups linux.debian.kernel
Subject Re: Re: Re: [PATCH/RFC nfs-utils] Fix NFSv4 export of tmpfs filesystems.
Date 2021-05-17 05:40 +0200
Message-ID <CfCgN-1MM-1@gated-at.bofh.it> (permalink)
References (3 earlier) <CfCgN-1MM-9@gated-at.bofh.it> <CfCgN-1MM-11@gated-at.bofh.it> <CfCgN-1MM-13@gated-at.bofh.it> <CfCgN-1MM-15@gated-at.bofh.it> <CepbY-6ZX-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, 14 May 2021, Petr Vorel wrote:
> 
> The failure has really something to do with rpcbind ("mount.nfs: portmap query
> failed:"):
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> write(2, "mount.nfs: trying 10.0.0.2 prog "..., 66) = 66
> socket(AF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
> fcntl(5, F_GETFL)                       = 0x2 (flags O_RDWR)
> fcntl(5, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
> connect(5, {sa_family=AF_INET, sin_port=htons(37873), sin_addr=inet_addr("10.0.0.2")}, 16) = -1 EINPROGRESS (Operation now in progress)
> select(6, NULL, [5], NULL, {tv_sec=10, tv_usec=0}) = 1 (out [5], left {tv_sec=9, tv_usec=999998})
> getsockopt(5, SOL_SOCKET, SO_ERROR, [111], [4]) = 0
> fcntl(5, F_SETFL, O_RDWR)               = 0
> close(5)                                = 0
> write(2, "mount.nfs: portmap query failed:"..., 79) = 79

The "111" from getsockopt...SO_ERROR is ECONNREFUSED.  That suggests
that rpcbind wasn't even running.

This is different to the first strace you reported where mount.nfs
successfully connected to rpcbind, sent and request and got a response,
and then fail the mount.  That would happen if, for example, rpc.mountd
wasn't running.

So I think these failures are caused by some problem with restarting the
services and aren't actually testing the code at all.

Could you try again and make sure rpcbind and rpc.mountd are running on
the server before attempting the mount?

Thanks,
NeilBrown

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Re: [PATCH/RFC nfs-utils] Fix NFSv4 export of tmpfs filesystems. Petr Vorel <pvorel@suse.cz> - 2021-05-13 21:30 +0200
    Re: Re: Re: [PATCH/RFC nfs-utils] Fix NFSv4 export of tmpfs filesystems. "NeilBrown" <neilb@suse.de> - 2021-05-17 05:40 +0200
    Re: Re: Re: [PATCH/RFC nfs-utils] Fix NFSv4 export of tmpfs  filesystems. Petr Vorel <pvorel@suse.cz> - 2021-05-17 16:50 +0200

csiph-web