From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 403BA158004 for ; Sun, 19 Nov 2023 15:59:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9E5E82BC03C; Sun, 19 Nov 2023 15:59:45 +0000 (UTC) Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 360CC2BC027 for ; Sun, 19 Nov 2023 15:59:45 +0000 (UTC) Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1r4kD1-0007zt-PI for gentoo-user@lists.gentoo.org; Sun, 19 Nov 2023 16:59:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Remy Blank Subject: [gentoo-user] Re: Debugging NFS mounts Date: Sun, 19 Nov 2023 16:59:37 +0100 Message-ID: References: <4526220.LvFx2qVVIh@wstn> <12325447.O9o76ZdvQC@wstn> <152cbb44-e0fe-47ae-ace3-aa30c9c43f38@kenworthy.id.au> <12327518.O9o76ZdvQC@wstn> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla Thunderbird Content-Language: en-US, fr-FR, de-CH In-Reply-To: <12327518.O9o76ZdvQC@wstn> X-Archives-Salt: 407e61b2-f3c2-40bd-90c3-b459663ec2fb X-Archives-Hash: 7785b5ad8237e0a1414990409917402b 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