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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 59ECB13832E for ; Thu, 21 Jul 2016 02:51:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 932C521C08B; Thu, 21 Jul 2016 02:51:10 +0000 (UTC) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6B5F521C01D for ; Thu, 21 Jul 2016 02:51:09 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id i5so762209wmg.2 for ; Wed, 20 Jul 2016 19:51:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=gvPxvyye/l8saR0TbNDvLSUguJPN8lAjPgrRPXwcSQE=; b=gPs5hxfo+SqRWlj4PK0gW2MHgs/wB3/6GRnjuI83YaVRwp5l+cchwhFd25Bceiy0r5 KOBeA0ZXWMdwKIrQtLp0/XP6R1RLJUC3mkyMmm1ZyWmEEMPj2Cry6DwKQp1Fvtgusn7y 74qnQxP3NJSiFMuJYDQMGYF10Tc1tQcXXvbdH/4bpD6yAuwckxBREK7Qye2KgVuLmreD Lm5M5AwJBnMPpRZgrfyi8kWxYzrUIz3XX/CNFbVb7ffYV/vfywvXtNE21wpbK6NnN+ph N83fXOVVG3SIoKDMBZXOjTJgg+Gd6280GFobJ2vgb+YksCCornvEExwfkMsH84LVOIwf +2Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=gvPxvyye/l8saR0TbNDvLSUguJPN8lAjPgrRPXwcSQE=; b=R07GZPwIsFiDFpDftvgxDWq6dlfqM2Ez2ts4bopDNaER+EzLhIZHPiK55kI3d9dNS/ yhZrwGjjGF+iZhT8N7LeOwvSA/LP9Eu3Wt0R17GJS5oHCtk+kMxMBH/rP9eZdSUcU29a W1vfu5DR9PMMamUhoPCct/tDXhRksilDfwCnhzYObOLPM+DV7Dciz+q6clcyBlRz0gUE kx0rScDqr/X32m6FlMNGihcUYBnRkDkFDA7bF6y8sewY69QW71R+Zz20M8K6UlOSwK93 jyGjnZ9+upkKePQvq30X8bqHQQclCupxc8ylDx1nHflmhjIBHUMYaR+gyz4DbatrsQ8H SlXw== X-Gm-Message-State: ALyK8tKLUsu8UppD7Jg5vib79t+16pAvitNwnHoesbWoXRi7W54rf04TT8CoFG1m6xOXhcugOjg/q+7bmiZ9TA== X-Received: by 10.28.32.15 with SMTP id g15mr14039478wmg.25.1469069467827; Wed, 20 Jul 2016 19:51:07 -0700 (PDT) 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 MIME-Version: 1.0 Received: by 10.194.142.162 with HTTP; Wed, 20 Jul 2016 19:51:07 -0700 (PDT) In-Reply-To: References: From: Adam Carter Date: Thu, 21 Jul 2016 12:51:07 +1000 Message-ID: Subject: Re: [gentoo-user] nfsv4 issues To: "gentoo-user@lists.gentoo.org" Content-Type: multipart/alternative; boundary=001a113d7b4ac7c3cd05381c6362 X-Archives-Salt: 9968acf8-93cd-4759-8f8a-6c89992b3e73 X-Archives-Hash: 7c33497437818a03a5bb525ddf1199d0 --001a113d7b4ac7c3cd05381c6362 Content-Type: text/plain; charset=UTF-8 Are the nfsd versions that you're setting being respected? You can > check with "rpcinfo -s" or "cat /proc/fs/nfsd/versions". > Yep; # cat /proc/fs/nfsd/versions -2 +3 +4 +4.1 +4.2 > You can change the number of threads on the fly with "echo 1 > > /proc/fs/nfsd/threads". > That works too, but then; # ps -ef | grep nfsd root 1454 1426 0 12:47 pts/0 00:00:00 grep --colour=auto nfsd root 23546 2 0 Jul19 ? 00:00:00 [nfsd4_callbacks] root 23548 2 0 Jul19 ? 00:00:00 [nfsd] # strace -p 23548 strace: attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted > I don't use systemd on Gentoo but for the nfs-utils upstream-shipped > systemd units that I think that Gentoo's using, you have to re-run > nfs-config.service - or run the script that it calls - in order to > update the "/run/sysconfig/nfs-utils" environment file that's sourced > by the nfs-server.service unit. > In /usr/lib/systemd/system/nfs-server.service [Service] EnvironmentFile=/etc/conf.d/nfs Does "/var/lib/nfs/v4recovery/" exist? > > No # ls /var/lib/nfs/ etab export-lock rmtab rpc_pipefs sm sm.bak state xtab Does adding the client to "/etc/hosts" - or to your reverse dns zone - > eliminate the delay? > > DNS is setup and both client and server can forward and reverse lookup each other. --001a113d7b4ac7c3cd05381c6362 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Are = the nfsd versions that you're setting being respected? You can
check with "rpcinfo -s" or "cat /proc/fs/nfsd/versions"= .

Yep;
=C2=A0# cat /proc/fs/nfsd/ver= sions
-2 +3 +4 +4.1 +4.2
=C2=A0
You can change the number of threads on the fly with "echo 1 >
/proc/fs/nfsd/threads".

That works= too, but then;
# ps -ef | grep nfsd
root=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 1454=C2=A0 1426=C2=A0 0 12:47 pts/0=C2=A0=C2=A0=C2=A0 00:00:00 grep --c= olour=3Dauto nfsd
root=C2=A0=C2=A0=C2=A0=C2=A0 23546=C2=A0=C2=A0=C2=A0= =C2=A0 2=C2=A0 0 Jul19 ?=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 00:00:00= [nfsd4_callbacks]
root=C2=A0=C2=A0=C2=A0=C2=A0 23548=C2=A0=C2=A0=C2=A0= =C2=A0 2=C2=A0 0 Jul19 ?=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 00:00:00= [nfsd]
# strace -p 23548
strace: attach: ptrace(PTRACE_ATTACH, ...):= Operation not permitted


I don't use systemd on Gentoo but for the nfs-utils upstream-shipped systemd units that I think that Gentoo's using, you have to re-run
nfs-config.service - or run the script that it calls - in order to
update the "/run/sysconfig/nfs-utils" environment file that's= sourced
by the nfs-server.service unit.
=C2=A0
I= n /usr/lib/systemd/system/nfs-server.service
[Service]
EnvironmentFil= e=3D/etc/conf.d/nfs

Does "/var/lib/nfs/v4recovery/" exist?


No
=C2=A0# ls /var/lib/nfs/
etab= =C2=A0 export-lock=C2=A0 rmtab=C2=A0 rpc_pipefs=C2=A0 sm=C2=A0 sm.bak=C2=A0= state=C2=A0 xtab

Does adding the client to "/etc/hosts" - or to your reverse dns z= one -
eliminate the delay?

DNS is setup and both client and server can forward and = reverse lookup each other.
--001a113d7b4ac7c3cd05381c6362--