Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2964849pxb; Tue, 19 Jan 2021 10:08:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlNNwkTsc6W3DVPvJIJkRpJXia/Fz2NSwKJ8GkyTHIUsIt7MnDDDc7tlvlo+NLlPSHiwG/ X-Received: by 2002:a05:6402:1005:: with SMTP id c5mr4521339edu.379.1611079688486; Tue, 19 Jan 2021 10:08:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611079688; cv=none; d=google.com; s=arc-20160816; b=nAk6t6BW3BvEuCmxSvYPMCr6sSoCyXc0oyTvwWo4C6MnIa0GyCjcktF5WvzL1M4TWW iwMB/XEzRqlu5Qu1NPpXD4mgvDvXJSOxkE99UXgxC9Ey7pGNYD/VMizsk7+SLtJ7ce97 dlxSTxTnJxy65GWOdvtDlB+xLwBHMKGhGw33J3RHHHQoqahIqcN75pmAP1GcoIFHeyhb tGPS9SKUiBNtGRZRTzDdsIhtSowWZjMitfihsFCJcZkP5lUgpj2Z4gW0xi/rHcUceW0A Agl3NSHvLUk+Ws4dltGufIOiS02itoNuyqZjjs47URkq5n1qZf+8Ltf7g3PwGlm5NArP r8NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:from:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date :dkim-signature:dkim-filter; bh=YTYenTieYD2gyH+6H87D0FmX5wOOOaBTYACSTUl1A68=; b=JUHLjxoH2drCaexTYLB2oFvSA1Crrd7qrgXREEc7GvwitE2uIP+iCn74ZymME3MQiv ESFcAVu42PtccaQkc3hj+qC0B4sHj2oFLbvkq1ung+FrX79VYpzloRxG5n40SzlEcmtk MLQf4pd9BliRe28J6JFnRc5UekhL1idRibwldrcg+Ic2qigz90Fjr42iSiQRLprCSrt8 j/O0fXAu1157hd0ACH4cZ5dGx8mGcIbWnz1TzsxTcSX4iaZDvwQpz89/Y7bvpUEbm9OQ 7aW+oZlh5yIYrDSKVGy8MQiJNbLidGkP8MudxDdNdXqstccS4taZK3ly3kDdbiHoI23G DtGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=M08QKkUp; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g5si6532271ejp.464.2021.01.19.10.07.43; Tue, 19 Jan 2021 10:08:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=M08QKkUp; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404487AbhASSDr (ORCPT + 99 others); Tue, 19 Jan 2021 13:03:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727011AbhASSCp (ORCPT ); Tue, 19 Jan 2021 13:02:45 -0500 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8641C061573 for ; Tue, 19 Jan 2021 10:02:05 -0800 (PST) Received: by fieldses.org (Postfix, from userid 2815) id B836C6C0D; Tue, 19 Jan 2021 13:02:04 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org B836C6C0D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1611079324; bh=YTYenTieYD2gyH+6H87D0FmX5wOOOaBTYACSTUl1A68=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=M08QKkUpwv+hNmf0D3xvhU+/IEpZs9I8+XFHLvDM75Ys1mPHXWhXcSvE9mgy8vzno 8/QYXgcCiB0/0d7TgxtrfkltgA0qAQ6T4JHdcaQCOiC+oRQ/i/2aVtA6/2UA08rpq+ aVM8+k49zafXht8QGk28ssYvdrdZsZB6uO411NRY= Date: Tue, 19 Jan 2021 13:02:04 -0500 To: Benjamin Maynard Cc: linux-nfs@vger.kernel.org Subject: Re: Linux 5.11 Kernel: NFS re-export errors with older nfs-utils package versions Message-ID: <20210119180204.GA24213@fieldses.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Jan 18, 2021 at 05:57:54PM +0000, Benjamin Maynard wrote: > Hi, > > I was recently experimenting with NFS re-exporting using the new patch > set that is in the Linux 5.11 kernel > (https://patchwork.kernel.org/project/linux-nfs/list/?series=393561). > > After applying these patches, I consistently faced an error when > trying to perform a previously working NFS re-export: "exportfs: > /files does not support NFS export". > > I (with help from some other interested parties) began troubleshooting > and after stepping through each patch individually we identified that > the error only occurred when the following patch was applied: > https://patchwork.kernel.org/project/linux-nfs/patch/20201130220319.501064-3-trond.myklebust@hammerspace.com/. That link isn't working for me for some reason. Looks like we're talking about ba5e8187c555 "nfsd: allow filesystems to opt out of subtree checking". > This patch prevents re-exporting if subtree checking is enabled on the > originating NFS server. That's not correct. I'm assuming there are two servers: a reexporting server, which mounts the originating NFS server, which is mounting ext4 or xfs or some other local filesystem. It's hard for the reexporting server to even tell if the originating server is using subtree checking, so I'm surprised that would make a difference in behavior. > The strange thing was that no_subtree_check > export option was already set on the export from the originating NFS > Filer, but the error message persisted. So, this patch is only checks whether you've got no_subtree_check set on the reexporting server. > After lots of troubleshooting, eventually we tried updating NFS Utils > from 1.3.4 to 2.5.2 and we were able to successfully perform > re-export. It appears that the old version of the nfs-utils package > was the cause of the issue. I'm a little confused about what happened here. Which server were you applying the above patches on? Which server did you upgrade NFS utils on? Could be that you're actually running into some filehandle size limit or something. (Subtree checking can make that problem worse.) Hard to tell. --b. > I appreciate that 1.3.4 is a very old version of nfs-utils, but it is > the default version that ships with Ubuntu and Debian and the error > message does not immediately point to the outdated version being the > cause of the problem. > > I was wondering if it was possible to detail the requirement for a > more recent version of nfs-utils in the NFS Re-exporting section of > the Wiki (http://wiki.linux-nfs.org/wiki/index.php/NFS_re-export) to > help others who may encounter this problem in the future?