Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2738287pxb; Mon, 31 Jan 2022 03:17:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBsPxDlruC4uBX3HhdaiBleztTFQcX4WCEUYeiGwkLE62/kRpffypCVmXRQVCS5pjDY2dC X-Received: by 2002:a17:907:7292:: with SMTP id dt18mr16703476ejc.589.1643627827206; Mon, 31 Jan 2022 03:17:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643627827; cv=none; d=google.com; s=arc-20160816; b=kaPT3NtMx3fg08dt1Mq42gYnDGJCYOOvoal9DirzZV1dB1XwUO40YafgschgnI1jRP cLqgKJQSoc/l1dWbJqSDUSR6Wj6zmM7YA/karem+ZT+rRVOqeZ+JrDbInk83fAlRESyp oXbpuZA2qehmo7ZLh5g+IfZvmqoWk82ajTWjTMd5J5HLQsRzn5W43OrQOBYl9ZXxgyDB C8OyOg2ZYOrKwTW7Ossmho20OZBZcQAW2LHTGakBO9bmgMxfmKeuqAaTTtkAg54KLaEW Td3QMUycEFNsLKPipBpn2ltqQPNhO0H6flqiEEs3Ah+Y6BVC8hMWHoamJ5QpWbPQcQnH TgbQ== 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=VVV7ZV580xy59xOYR6GX91arbMOrJMN9CRssSDqyfkw=; b=DDN9xlQ32LC7ODN0s7zTs6Xl9dSmV+DuAGcbKrlRpUwq1HErY9PMJPAMpaLXSmcUHI glHQEhQkvGQLgxJ7zFPHickbDmY/711Up0zYYona2uq+AplaZroUu6otN5+NXstbv2kb oDeXjTzyHql16Pp72Drz5P+q/MlNARBzASENLlxbnObldoGbKNFsqFHeGgxM1ViJzr7u n/0amosFlqgRwMikooKgzrglKQmxS+THW0gplr/RuFLS/qKzhoblHuZ9fZM7z84o5wJX UaLSVHN+CQxRjkZIEtUibZmZFX0iAC4y6d7CmTVoNkXWnaI4/z+ioPYZL63u28Z+VPDG 5VGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b="RVPXM62/"; 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 a7si8382902eda.526.2022.01.31.03.16.43; Mon, 31 Jan 2022 03:17:07 -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="RVPXM62/"; 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 S1350057AbiA1QXm (ORCPT + 99 others); Fri, 28 Jan 2022 11:23:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350055AbiA1QXl (ORCPT ); Fri, 28 Jan 2022 11:23:41 -0500 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7485FC061714 for ; Fri, 28 Jan 2022 08:23:41 -0800 (PST) Received: by fieldses.org (Postfix, from userid 2815) id 6682364B9; Fri, 28 Jan 2022 11:23:40 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 6682364B9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1643387020; bh=VVV7ZV580xy59xOYR6GX91arbMOrJMN9CRssSDqyfkw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RVPXM62/wW4iJK3AFfGLjQfINbPpC+dP/WPNmhONO5nYGhVs0qM+LS2Ls+SigB65S 9BizoWS57miJWO6LiR0LIBR4AB3xeCV6rprXo6jMJbppbjM+xtqG7YKBHkX/laMu0v bG+hz0pGdc4K9mQsxgDZnddlVkqxmr7Bq3NrCpKw= Date: Fri, 28 Jan 2022 11:23:40 -0500 From: "J. Bruce Fields" To: NeilBrown Cc: Chuck Lever III , Linux NFS Mailing List Subject: Re: [RFC PATCH 0/4] nfsd: allow NFSv4 state to be revoked. Message-ID: <20220128162340.GF14908@fieldses.org> References: <164325908579.23133.4781039121536248752.stgit@noble.brown> <7B388FE8-1109-4EDD-B716-661870B446C7@oracle.com> <164332328424.5493.16812905543405189867@noble.neil.brown.name> <20220128025152.GA7473@fieldses.org> <164334329191.5493.6897436011766354666@noble.neil.brown.name> <20220128133843.GA14908@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220128133843.GA14908@fieldses.org> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, Jan 28, 2022 at 08:38:43AM -0500, J. Bruce Fields wrote: > On Fri, Jan 28, 2022 at 03:14:51PM +1100, NeilBrown wrote: > > On Fri, 28 Jan 2022, J. Bruce Fields wrote: > > > I don't see how it's going to work. You've got clients that hold locks > > > an opens on the unexported filesystem. So maybe you can use an NFSv4 > > > referral to point them to the new server. Are they going to try to > > > issue reclaims to the new server? There's more to do before this works. > > > > As I hope I implied, I'm not at all sure that the specific problem that > > the customer raised (cannot unmount a filesystem) directly related to > > the general solution that the customer is trying to create. Some > > customers like us to hold their hand the whole way, others like to (feel > > that they) have more control. In general I like to encourage > > independence (but I have to consciously avoid trusting the results). > > > > We have an "unlock_filesystem" interface. I want it to work for NFSv4. > > The HA config was background, not a complete motivation. > > I think people do occasionally need to just rip a filesystem out even if > it means IO errors to applications. And we already do this for NFSv3. > So, I'm inclined to support the idea. > > (I also wonder whether some of the code could be a useful step towards > other functionality.) For example, AFS-like read-only replica update: unmount a filesystem, mount a new version in its place. "Reconnecting" locks after the open would be difficult, I think, but opens should be doable? And in the read-only case nobody should care about locks. --b. > > > > > However I don't think we have good admin infrastructure for that do > > > > we? > > > > > > > > I'd like to be able to say "set up these 2 or 3 config files and run > > > > systemctl start nfs-server@foo and the 'foo' network namespace will be > > > > created, configured, and have an nfs server running". Do we have > > > > anything approaching that? Even a HOWTO ?? > > > > > > But I don't think we've got anything that simple yet? > > > > I guess I have some work to do.... > > RHEL HA does support NFS failover using containers. I think it's a bit > more complicated than you're looking for. Let me go dig that up.... > > With a KVM VM and shared backend storage I think it's pretty easy: just > shut down the VM on one machine and bring it up on another. > > --b.