public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Peter Humphrey <peter@prh.myzen.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Debugging NFS mounts
Date: Mon, 20 Nov 2023 11:28:29 +0000	[thread overview]
Message-ID: <2708607.mvXUDI8C0e@wstn> (raw)
In-Reply-To: <ujdbd9$tfc$1@ciao.gmane.io>

On Sunday, 19 November 2023 15:59:37 GMT Remy Blank wrote:
> Peter Humphrey wrote on 19.11.2023 16:12:
> > Yes, indeed. In fact I don't know why this has only just bitten me; I've
> > been doing the same thing for years without problem.
> > 
> > That search turns up so many answers that I don't know where to start,
> > even
> > prefixing the phrase with "gentoo". Most of them seem to date from 10
> > years ago or more.
> 
> You need to configure two files. Add a *.conf file below /etc/sysctl.d with
> the following content:
> 
> # Set fixed ports for lockd.
> fs.nfs.nlm_tcpport = 4014
> fs.nfs.nlm_udpport = 4014
> 
> Then set some options in /etc/conf.d/nfs. Here's my config, the -p options
> configure the ports of various NFS services.
> 
> # /etc/conf.d/nfs
> 
> # If you wish to set the port numbers for lockd,
> # please see /etc/sysctl.conf
> 
> # Optional services to include in default `/etc/init.d/nfs start`
> # For NFSv4 users, you'll want to add "rpc.idmapd" here.
> NFS_NEEDED_SERVICES="rpc.idmapd"
> 
> # Options to pass to rpc.nfsd
> OPTS_RPC_NFSD="8 -s -V 3 -N 4"
> 
> # Options to pass to rpc.mountd
> # ex. OPTS_RPC_MOUNTD="-p 32767"
> OPTS_RPC_MOUNTD="-p 4010 --manage-gids"
> 
> # Options to pass to rpc.statd
> # ex. OPTS_RPC_STATD="-p 32765 -o 32766"
> OPTS_RPC_STATD="-p 4011 -o 4012"
> 
> # Options to pass to rpc.idmapd
> OPTS_RPC_IDMAPD=""
> 
> # Options to pass to rpc.gssd
> OPTS_RPC_GSSD=""
> 
> # Options to pass to rpc.svcgssd
> OPTS_RPC_SVCGSSD=""
> 
> # Options to pass to rpc.rquotad (requires sys-fs/quota)
> OPTS_RPC_RQUOTAD="-p 4013"
> 
> # Timeout (in seconds) for exportfs
> EXPORTFS_TIMEOUT=30
> 
> # Options to set in the nfsd filesystem (/proc/fs/nfsd/).
> # Format is <option>=<value>.  Multiple options are allowed.
> #OPTS_NFSD="nfsv4leasetime=30 max_block_size=4096"
> 
> 
> Then you need to allow ports 111 (TCP + UDP), 2049 (TCP) and 4010:4014 (TCP
> + UDP) through your firewall. I'm not entirely sure about TCP vs. UDP, you
> might be able to remove some of them (it has been a while that I configured
> this). You can pick different port number than 4010:4014 if you like.

That's a great help. Thank you Remy.

-- 
Regards,
Peter.





      reply	other threads:[~2023-11-20 11:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-15 16:29 [gentoo-user] Debugging NFS mounts Peter Humphrey
2023-11-15 17:04 ` Alan McKinnon
2023-11-15 23:42   ` Peter Humphrey
2023-11-16 20:38 ` Marco Rebhan
2023-11-17 16:44   ` Peter Humphrey
2023-11-18  7:29     ` Peter Humphrey
2023-11-19  0:30       ` William Kenworthy
2023-11-19 15:12         ` Peter Humphrey
2023-11-19 15:59           ` [gentoo-user] " Remy Blank
2023-11-20 11:28             ` Peter Humphrey [this message]

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=2708607.mvXUDI8C0e@wstn \
    --to=peter@prh.myzen.co.uk \
    --cc=gentoo-user@lists.gentoo.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