Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] very newbie question: My first nfs mount hangs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jamapii
l33t
l33t


Joined: 16 Sep 2004
Posts: 637

PostPosted: Tue Sep 27, 2022 8:42 pm    Post subject: [solved] very newbie question: My first nfs mount hangs Reply with quote

Hi,

this is a very simple common case. Suppose you install a new box, and want to make a quick temporary NFS commection.

The NFS server (gentoo) makes its first NFS export ever, and the NFS client (Ubuntu) is just getting its NFS software installed.

I export / in the most insecure way. I use NFSv3 to avoid any hassle.

On the client:

mount oldbox:/ /disks/oldbox/ -o vers=3

I make sure to start /etc/init.d/{nfs,rpcbind,rpc.statd,rpc.idmapd} on the server and /etc/init.d/{nfs-common,rpcbind} on the client, because that's all I find.

No error messages in any logs, but the mount command does not complete, or continue, but it can be ^C interrupted. This is completely expected, it was, is, and will always be that way. There's just one more service that must be started (maybe it must be installed first). No problem, just do it.

Only this time, I forgot what it is.

So the question: What is it, that is always missing, when trying NFS for the first time?

thanks, I think it would be useful for everyone, it could be attached to an NFS documentation thread or page. ;)


Last edited by jamapii on Tue Sep 27, 2022 9:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Tue Sep 27, 2022 8:58 pm    Post subject: Reply with quote

Code:

mount -t nfs -o vers=3 oldbox:/ /disks/oldbox/


Is oldbox resolvable?
Code:

ping oldbox

_________________
:)
Back to top
View user's profile Send private message
jamapii
l33t
l33t


Joined: 16 Sep 2004
Posts: 637

PostPosted: Tue Sep 27, 2022 9:09 pm    Post subject: Reply with quote

Testing the client with an existing working NFS server:

It works. That server is running /etc/init.d/{nfs,rpcbind,rpc.statd,rpc.idmapd,rpc.pipefs} like the temporary server.

However, a twist: the necessary network interface (on the temporary server) wasn't up. And when it was up, it came with an nftables rule.

And that solved it.

The interface needed to be up, and the nftables rule bypassed (iptables -I INPUT -i enp57s0u1u2 -j ACCEPT). See the first post for the necessary services to start. Hope it helps.

I didn't see the reply, sorry.

My first try with "oldbox" was also wrong, it involved going through a VPN, which would have involved inefficient routing which could almost have worked, but didn't. So I replaced it with direct IP address.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum