Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp102926pxu; Wed, 25 Nov 2020 14:22:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJxH/HxWHMEMYTSNqZRHNgYyAcEnGJaqC2deAlBku2WT2fLNRdVcosit8B+YIL5LU4ssgjUK X-Received: by 2002:a17:907:38a:: with SMTP id ss10mr130589ejb.118.1606342950165; Wed, 25 Nov 2020 14:22:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606342950; cv=none; d=google.com; s=arc-20160816; b=ecPFboIcflibiwmATZ6X7Lq2Hf2qb5TYEvfuzyak3kHIo9ryVicdmUmNWYdMvhmpO8 5T3+H8/ki4f+la9KfwFku29RCSvnAi1Vift6vK+SGw0oseFH2kvPCpF2y9xi/aQUTeg8 uB5apoEs+z4+elLrBGlAUClDRzU1eEUbrfggMomctVUc1CUXXDDPtZ46X5FaGsFZJSyl RItbKgzFa2a+N4Zl3G9C92K/EkqFMjOk1cpLBcvRk6GVQWACotL0mzlOTVNnj7KXuNcD m75AnLbE4bx0mwbLQG0/uB6j5lC9BHhntZMYh7h/Jauc5k5nA2nbNQKWF2nwjMaZQ2hQ WQxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=GCfj1jzbCfSW/LiIq/NfQBzT5VgI1Awx4tOhEsW0VXE=; b=hyG8wyKhwCadMmOhxZTuJeXSeggutTtt+XgnQhaazJuAkrs1twMmjFJ5H3P/pv2IXc yAB7EQLULYdNx6QuQcLo5NshkhCnCSFpGL0MSb0dwLI8MhbE2fbIKN8gbJqzJhiRjykY f6E90D0uE7AckAmD3yLIiyQKGytASSVKqVXxiOcxs99p7mKMyVErVVZn6dLxzgKIwjRy uv/E2Keyivb8hvRAZC4nAJuEIh32V0roOqhOTEid/XbzbVuKy2+8AS2S/OuPR4GU9dGh 63vijr1h1nmkS37y+4npnesWtqk596BStEZzO2T1ljZ7bddW89y+AfOz0aE7F40w2Y/y xBSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=damraUJw; 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 g24si1354491ejh.77.2020.11.25.14.21.55; Wed, 25 Nov 2020 14:22:30 -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=damraUJw; 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 S1729690AbgKYTDS (ORCPT + 99 others); Wed, 25 Nov 2020 14:03:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726529AbgKYTDR (ORCPT ); Wed, 25 Nov 2020 14:03:17 -0500 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73114C0613D4 for ; Wed, 25 Nov 2020 11:03:16 -0800 (PST) Received: by fieldses.org (Postfix, from userid 2815) id 770376EAD; Wed, 25 Nov 2020 14:03:15 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 770376EAD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1606330995; bh=GCfj1jzbCfSW/LiIq/NfQBzT5VgI1Awx4tOhEsW0VXE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=damraUJwHBSE71kBWey0qdSi2wraLEhp7miS2ib4YCu+/1JyBxTEZbKd0VoidZuHF VwxHrh7AyeEikIcdn0JZ113wZQXYmfzhvX+iXczmDt1JwtHn5tBxQ1jFTZUHjQK4lT R7m/quH3buZSEfaBao/gtM/wk/a+/uVDNVaZh8Is= Date: Wed, 25 Nov 2020 14:03:15 -0500 From: 'bfields' To: Frank Filz Cc: 'Daire Byrne' , 'Trond Myklebust' , 'linux-cachefs' , 'linux-nfs' Subject: Re: Adventures in NFS re-exporting Message-ID: <20201125190315.GB7049@fieldses.org> References: <1188023047.38703514.1600272094778.JavaMail.zimbra@dneg.com> <279389889.68934777.1603124383614.JavaMail.zimbra@dneg.com> <635679406.70384074.1603272832846.JavaMail.zimbra@dneg.com> <20201109160256.GB11144@fieldses.org> <1744768451.86186596.1605186084252.JavaMail.zimbra@dneg.com> <1055884313.92996091.1606250106656.JavaMail.zimbra@dneg.com> <20201124211522.GC7173@fieldses.org> <0fc201d6c2af$62b039f0$2810add0$@mindspring.com> <20201125144753.GC2811@fieldses.org> <100101d6c347$917ed0f0$b47c72d0$@mindspring.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <100101d6c347$917ed0f0$b47c72d0$@mindspring.com> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Wed, Nov 25, 2020 at 08:25:19AM -0800, Frank Filz wrote: > On the other > hand, re-export with state has a pitfall. If the re-export server crashes, > the state is lost on the original server unless we make a protocol change to > allow state re-export such that a re-export server crashing doesn't cause > state loss. Oh, yes, reboot recovery's an interesting problem that I'd forgotten about; added to that wiki page. By "state re-export" you mean you'd take the stateids the original server returned to you, and return them to your own clients? So then I guess you wouldn't need much state at all. > For this reason, I haven't rushed to implement lock state > re-export in Ganesha, rather allowing the re-export server to just manage > lock state locally. > > > Cooperating servers could have an agreement on filehandles. And I guess > we > > could standardize that somehow. Are we ready for that? I'm not sure what > > other re-exporting problems there are that I haven't thought of. > > I'm not sure how far we want to go there, but potentially specific server > implementations could choose to be interoperable in a way that allows the > handle encapsulation to either be smaller or no extra overhead. For example, > if we implemented what I've thought about for Ganesha-Ganesha re-export, > Ganesha COULD also be "taught" which portion of the knfsd handle is the > filesystem/export identifier, and maintain a database of Ganesha > export/filesystem <-> knfsd export/filesystem and have Ganesha > re-encapsulate the exportfs/name_to_handle_at portion of the handle. Of > course in this case, trivial migration isn't possible since Ganesha will > have a different encapsulation than knfsd. > > Incidentally, I also purposefully made Ganesha's encapsulation different so > it never collides with either version of knfsd handles (now if over the > course of the past 10 years another handle version has come along...). I don't think anything's changed there. --b.