From owner-freebsd-questions@freebsd.org Fri May 22 14:15:08 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C576E2CA021 for ; Fri, 22 May 2020 14:15:08 +0000 (UTC) (envelope-from Norman.Gray@glasgow.ac.uk) Received: from plockton.cent.gla.ac.uk (plockton.cent.gla.ac.uk [130.209.16.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49T7mW5xxXz4MZf for ; Fri, 22 May 2020 14:15:07 +0000 (UTC) (envelope-from Norman.Gray@glasgow.ac.uk) Received: from cas07.campus.gla.ac.uk ([130.209.14.164]) by plockton.cent.gla.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1jc8S1-0007gn-6R for freebsd-questions@freebsd.org; Fri, 22 May 2020 15:15:05 +0100 Received: from cas07.campus.gla.ac.uk (130.209.14.164) by cas07.campus.gla.ac.uk (130.209.14.164) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 22 May 2020 15:15:04 +0100 Received: from GBR01-CWL-obe.outbound.protection.outlook.com (104.47.20.57) by cas07.campus.gla.ac.uk (130.209.14.164) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Fri, 22 May 2020 15:15:04 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ImzE7QNcJEY2akXR1YQPGv2rS4eWIJZNe1gagwL6OmJIC9zb4sAs5u7NG12fLXWxTCdGeWZadBSMImQdXlhh3tZzcIm1QLqjGAbtiCuOn0S86ge8OtlOTFQ7WRqPXfLSBJtGtuboU3a7X/76k+UHDiDlplqOJs2nFWCzop8KYDv6wFPN2biVI1P44CIPixWLxXuPKqz+fBHj51X8LlnWWMoqQ27ITEz50C42B2d852oYNBNUuSIn/dQqdAsgqxffRnC/KwK8zM5UyMW7AMtUklfu8JCOM8Jcn1N2+XfDYiN48RwWs/sSKv6KV7nDscDtENIl2GQNp6ylT4Mnf/kX7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U59JLrfzl/2yrBKSYKF3Kc40shreUpzC2QXJA/YKEUY=; b=Ldp9MSqyuNFz/GHuSqA3QuPDaovCcYNFGM9xgVSgcpKrHFiHs8vvoEcd5xH3nBiKPw5kp8d615hcPIDSr1DXZ7YD0o1j/Y/FoO4PSPmBoAUVtum6DWKv20hLdDe1nXFPOA6Xr5PnkpvcY6BKZ8NrlXY3e4gK/8q7L4kTA9V28HO/koLKswLnKnNig7gjrObbG8BsugIm2d0exvnyYGWkqVT8o28gJJDMrLeLipw4/juFuySw7tqDfZeVDD3vH90pSwK9VJEhiHlJ0gN+0p82LQ+GLvUjVyJ9x2ulymOPpAYUNwbWLr+d4IcYHV90QAZGDFz2oiSexz1Wq9G9sZnT9w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=glasgow.ac.uk; dmarc=pass action=none header.from=glasgow.ac.uk; dkim=pass header.d=glasgow.ac.uk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gla.onmicrosoft.com; s=selector2-gla-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U59JLrfzl/2yrBKSYKF3Kc40shreUpzC2QXJA/YKEUY=; b=aM8FbQ9wdKbyAVSZa06KHZwz7w/p959wrkroR8Pe1M+qRbZo6aiJQsugqvyIWYKqEoJkRj7uQYyptEmNf/X+819QblDOJ16aEIq2EZ0npU1uKzuRSBWz1xbIYIiVvUUqTEQYkIV4T9toExnJCoEMOTnc5pQyG/4qD/fYuoNr7iI= Received: from CWXP265MB0149.GBRP265.PROD.OUTLOOK.COM (2603:10a6:401:8::19) by CWXP265MB0373.GBRP265.PROD.OUTLOOK.COM (2603:10a6:401:4::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.25; Fri, 22 May 2020 14:15:03 +0000 Received: from CWXP265MB0149.GBRP265.PROD.OUTLOOK.COM ([fe80::40d7:744b:8734:b8dd]) by CWXP265MB0149.GBRP265.PROD.OUTLOOK.COM ([fe80::40d7:744b:8734:b8dd%6]) with mapi id 15.20.3021.027; Fri, 22 May 2020 14:15:03 +0000 From: "Norman Gray" To: FreeBSD Questions Subject: Documentation and debugging for NFSv4 Date: Fri, 22 May 2020 15:15:01 +0100 X-Mailer: MailMate (1.13.1r5671) Message-ID: Content-Type: text/plain; format=flowed Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: LO2P265CA0030.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:61::18) To CWXP265MB0149.GBRP265.PROD.OUTLOOK.COM (2603:10a6:401:8::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [130.209.33.134] (81.2.70.164) by LO2P265CA0030.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:61::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23 via Frontend Transport; Fri, 22 May 2020 14:15:02 +0000 X-Mailer: MailMate (1.13.1r5671) X-Originating-IP: [81.2.70.164] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 773e7717-1b68-46d6-d9fb-08d7fe5a852c X-MS-TrafficTypeDiagnostic: CWXP265MB0373: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-Forefront-PRVS: 04111BAC64 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ydkhkC27R63uGD3NsgOtopyurksScH1IPU3bv2pyNVV9DfkUCTqU2jBv5Ug6Jeeoz9KSh96ztneozJm1bpQLsBCO7lM8sbN44pEe8RNstK8wV+0p3hMPcp0WCbTnbrO0dqw3kXpWPsK6yO9Wz6TMkdkzsGGdrY2eG5gQZCXj1AXtysRqLCl6ssIJFd48ghdZ9NQS57veCgxNok95myuvxyGnYwWV26861F1nafsDq5m8w85IR3U++ssxju/hPW1fdAsflpnY3CD8TTchayO9S2Wkr3+qY4xxhM+MzKGbEUA33w2V1x+XljyGYL2deDzSxtZED9vwqSRQ96NPb+SK6aS/zJo3zMZn7xQiXFlNohJvfQdwP81BwK+d8r6YR7IxtmTac2/MVaOix3iktB39zNV/pgJQGw8uCClWojEuJbdsuG6mHBvm5s2h268bwcjKLr58h9AoP3hADxgqNPMl6GeBjU325DeX6UTRhHiTk2pBBGQwBFYX8sxzDbmPGWw9 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CWXP265MB0149.GBRP265.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFTY:; SFS:(136003)(396003)(366004)(346002)(39860400002)(376002)(316002)(2906002)(86362001)(16576012)(6486002)(786003)(8936002)(186003)(966005)(5660300002)(33656002)(36756003)(26005)(66476007)(66556008)(8676002)(66946007)(478600001)(956004)(6706004)(6916009)(16526019)(52116002)(2616005)(78286006); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: lhG7GXjcDRtAx3okC3vFEnTCQ4RT9eb2Tla3xLchOjyMlsPKFjkBPSCg3A97TAb3d7ayZPHKJFhQJwO92F9wzpDHVD8KAh8+0tW2i9z1JxUr/HtYDmCkpgG90elQDID5IpORgXHoke37CYMHlRaQQnsXIaRTkmWukaDXdQXGnyj2Pp8pUU5Xvu/KJYRiJYBRNdk7WVrUJtttB/wlQM8SEbmp2TfT0FNWwCqN7XCuoumBfD7iPh51cwxFXyANCt57VIKUeRZFwwIH4KM2d5XMTGqsNlqZVvzklEO8YoqtYB76wzEI1HSt53vbyzC32Pj6pWL6R0fGJYvlDKSRUP7przpDOrwnB74HQd7a2V9uDOWaP/CtxTqXVub0XHJJiS1lUSFX4sWoevUvTQGWkuPoRmkHXfx34IkvSpJtCatacEXKpNQe2wLDy0n1binuQZoGR4iO1ZU4KDyvVi0ch6YFGku/LAPtU6SVneF5d+fuIbk= X-MS-Exchange-CrossTenant-Network-Message-Id: 773e7717-1b68-46d6-d9fb-08d7fe5a852c X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2020 14:15:03.3983 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 6e725c29-763a-4f50-81f2-2e254f0133c8 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: qj83LLnvRmYLDAD+ZkhIQWwEZWGsx+KvxZvnYS05RhkZsgMU4/M+yVIP8A9XLdSkqNH5FXI0OGpNwpDmkn8qXteWIlcKOkEXw/SHLruwTNo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CWXP265MB0373 X-OriginatorOrg: glasgow.ac.uk X-Rspamd-Queue-Id: 49T7mW5xxXz4MZf X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gla.onmicrosoft.com header.s=selector2-gla-onmicrosoft-com header.b=aM8FbQ9w; dmarc=none; spf=none (mx1.freebsd.org: domain of Norman.Gray@glasgow.ac.uk has no SPF policy when checking 130.209.16.75) smtp.mailfrom=Norman.Gray@glasgow.ac.uk X-Spamd-Result: default: False [-1.57 / 15.00]; NEURAL_HAM_MEDIUM(-0.91)[-0.905]; R_DKIM_ALLOW(-0.20)[gla.onmicrosoft.com:s=selector2-gla-onmicrosoft-com]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[130.209.16.75:from]; R_MISSING_CHARSET(2.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[glasgow.ac.uk]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.95)[-0.948]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[130.209.16.75:from]; DKIM_TRACE(0.00)[gla.onmicrosoft.com:+]; NEURAL_HAM_SHORT(-0.21)[-0.215]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:786, ipnet:130.209.0.0/16, country:GB]; RCVD_COUNT_SEVEN(0.00)[7]; MID_RHS_MATCH_FROM(0.00)[]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 May 2020 14:15:08 -0000 Greetings. I'm having difficulty finding consistent documentation and debugging = tools for NFSv4. Is there some handbook-like source that I'm missing? = Or some layer of documentation for configuration or debugging that I've = failed to find? I've never had major problems with NFS and the associated RPC services, = but I currently find myself in a situation where some combination of v4 = exports from FreeBSD servers (11.3 and 12.1) and heterogeneous Linux = clients is behaving in a rather inconsistent way (in a context where I = can't just reboot everything in sight, which often sorts out NFS = problems...), and I'm having great difficulty diagnosing the current = service status: is server A offering what I think it is? is client B = asking for what I think it is? Normally some combination of netstat and = tcpdump would make some headway, but SunRPC is blacker magic than that. Oddnesses include the handbook [1] not mentioning NFSv4 at all, neither = starting up NFSv4 support (with nfsv4_server_enable=3DYES) nor mentioning= = V4 in exports. It's therefore hard to be sure what counts as good = practice here. nfsv4(4) is comprehensive, which is good, but exports(5), though = comprehensive, is sometimes far from clear. Also, nfsdumpstate(8) = refers to 'the NFSv4 experimental server', which isn't reassuring, and = the state which it dumps is clearly low-level and not illuminating. I = anticipate visiting bugs.freebsd.org with some docbugs, once I'm more = confident I know what 'correct' is. I see with rpcinfo that program 100003, for NFS, advertises versions 2 = and 3, but not 4, and I can't work out, from any manpages I can find, = whether this is correct or not. Pages I can find on the web seem to = suggest that I ought to expect to see a version 4 here (though these are = mostly referring to Linux NFS servers), and RFC 3530 ([4] page 266) does = seem to mention a version 4 identifier associated with program 100003. = But relevant posts on the FreeBSD forum (eg [2, 3] from 2012 and 2018) = illustrated apparently working configurations which advertise only = versions 2 and 3. Would the forum be a better place to ask, than here? Any advice warmly received, Norman [1] https://www.freebsd.org/doc/handbook/network-nfs.html [2] = https://forums.freebsd.org/threads/nfsv4-problem-rpc-remote-system-error-= operation-timed-out.34550/ [3] https://forums.freebsd.org/threads/nfs-server-access-denied.57514/ [4] https://www.ietf.org/rfc/rfc3530.txt -- = Norman Gray : http://www.astro.gla.ac.uk/users/norman/it/ Research IT Coordinator SUPA School of Physics and Astronomy, University of Glasgow, UK Charity number SC004401