Re: [nfsv4] review of "draft-ietf-nfsv4-layrec-00"

Thomas Haynes <loghyr@gmail.com> Fri, 01 March 2024 18:31 UTC

Return-Path: <loghyr@gmail.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 50FE3C1519B8 for <nfsv4@ietfa.amsl.com>; Fri, 1 Mar 2024 10:31:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.105
X-Spam-Level:
X-Spam-Status: No, score=-7.105 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hdJqla08eB9b for <nfsv4@ietfa.amsl.com>; Fri, 1 Mar 2024 10:31:13 -0800 (PST)
Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8996FC1519B6 for <nfsv4@ietf.org>; Fri, 1 Mar 2024 10:31:13 -0800 (PST)
Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-6e5b1c6daa3so1139957b3a.1 for <nfsv4@ietf.org>; Fri, 01 Mar 2024 10:31:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709317872; x=1709922672; darn=ietf.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=2Ic8AgVIoS6zLKwexnoPHeaWAGRVxnyyTzylIRaI0zM=; b=cnWKDZ5ENWnwlTtYAlBaBGVK88xq8b9/mJhFyFSa44c4SoaV+bpaac0bZCCpIPI08s OPbYH8KiRH/zqA2SCZGeKAL01Rp64hQlOmR5nqbW8uXCCEjnb5mrS9bngd6iAIXbswAO zegnuiH3drNP18UWVm1rMLEa+OmLTi/DfQGhAgPMuFJvIFcdv54YJIhMmKM3yr1HoSTp I3b5JnHwu2dOKqEIk1sNjc60VciiNtaf6Ynqln4pquV8LxxYjnQa6Vf9o11UWOfZAsiZ k84UCWVCzebo4st1q2wQvzWHk7Fv5Q4uuStsmMr49/Bx+AzV5a7Cq1j/By1+ZdK5qNmG KEJQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709317872; x=1709922672; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2Ic8AgVIoS6zLKwexnoPHeaWAGRVxnyyTzylIRaI0zM=; b=SsBIRcPmSpHyqxaSADCtqN4JEeVrAqU1k9Y/YQV1WwZC/J85G7yaQ2pzaS35g2uUAR q+o3YlNgV3jhIm9gzDfJEuYuT1/TFjmOQTELaWphF8kjkLYrgnUx8oa1a7elm0ox2juK 4CChdhAMSfNAlHfqWpMdMrJfYziWKpRqagK0P6qVCdnRNjWa7z0EFmJhhwlU007eX8Mj 6hH6DZqvVfBBEXA7Oy+7vdRspSndCbSFFpM5FpquyYx0HgJo0gUeIMwb+N7oEO/SB/iC 7E4E9Pj+fqNmvwHixy1ZYBq+HgFiqLhE+bMcgNGPAHdX2tFE4i2VcgaIz10pNnlG7mYJ Xb8Q==
X-Forwarded-Encrypted: i=1; AJvYcCX/yl/WglJ2U+BpFtAnq+Gbbj2VkXLM9+fiRP972icMR446jZvA8EohchaapwY6FA2VPRzaU4Us5UuAb6uUaA==
X-Gm-Message-State: AOJu0YzgV6KXl+tTfRZN2Wfn8xFSk7DyWBNV3UbuEK4z9QmcngsfaW5F O3PapbJLiZXGnVVrq3skq3bwSfwKVF1IMjJG4oV1skPdxGQ0jzH6
X-Google-Smtp-Source: AGHT+IEoS1NQQuPEZNwdKbnkQrUWPto3cgwZCatW/bJaBoCfbxpLvpuT8vW8Y/giouy8QuatIAq6cQ==
X-Received: by 2002:a05:6a20:914e:b0:1a1:864:65a3 with SMTP id x14-20020a056a20914e00b001a1086465a3mr2748040pzc.13.1709317872219; Fri, 01 Mar 2024 10:31:12 -0800 (PST)
Received: from smtpclient.apple ([2601:647:4500:91:6c44:a0dc:85d8:bb80]) by smtp.gmail.com with ESMTPSA id ka15-20020a056a00938f00b006e4d545519dsm3264302pfb.62.2024.03.01.10.31.10 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Mar 2024 10:31:11 -0800 (PST)
From: Thomas Haynes <loghyr@gmail.com>
Message-Id: <CB85A60C-80F3-43EE-9BA4-ACFBBB8E6F24@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_A499F2D5-29AB-4B21-8617-F9A60372B97D"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.400.31\))
Date: Fri, 01 Mar 2024 10:31:00 -0800
In-Reply-To: <CADaq8jfA_bkRy-QQ4vxsCHrokXDtNEcVfn3Pr82MZ0KRJC8QDA@mail.gmail.com>
Cc: Jeff Layton <jlayton@poochiereds.net>, NFSv4 <nfsv4@ietf.org>, Trond Myklebust <trondmy@hammerspace.com>
To: David Noveck <davenoveck@gmail.com>
References: <26ee2c63cdc2cca64903eaae3699b5c0758ca3a5.camel@poochiereds.net> <CADaq8jfA_bkRy-QQ4vxsCHrokXDtNEcVfn3Pr82MZ0KRJC8QDA@mail.gmail.com>
X-Mailer: Apple Mail (2.3774.400.31)
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/4I4y1jyd7yPrxmDNkTuoVlBfGjs>
Subject: Re: [nfsv4] review of "draft-ietf-nfsv4-layrec-00"
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/nfsv4/>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 01 Mar 2024 18:31:17 -0000


> On Mar 1, 2024, at 6:17 AM, David Noveck <davenoveck@gmail.com> wrote:
> 
> 
> 
> On Thursday, February 29, 2024, Jeff Layton <jlayton@poochiereds.net <mailto:jlayton@poochiereds.net>> wrote:
>> Most of this document looks fine to me, but it has this statement in
>> section 2:
>> 
>> "The metadata server MUST NOT have been resilvering the file such
>> that it has a different layout (set of mirror instances) than the
>> client before the restart of the metadata server."
> 
> I also had problems with this statement but my reaction is different.  See below.
>  
>> 
>> The rationale for this seems clear,
> 
> The rationale is clear, but not how to enforce this constraint.  Given the use of the perfect aspect here, it seems you'd need a time machine to go back to prevent a resilvering that started before the MDS restart or a way to absolutely prevent MDS restart, which seems impossible.


Perhaps I should make clear that when we resilver, we must fence the file first?

Let layout A be the layout from before the resilvering and layout B be on after the bad data files have been removed.

That way before the MDS restart, we would have fenced the file which would make sure that no client had layout A, which had the bad data files.

If they had layout B, we would not care.


> 
> Perhaps something else is intended here?
>  
>> 
>>  but it seems like resilvering the
>> file while the clients hold any sort of RW layout would be a bad idea,
>> no?
> 
> Yes, but rfc2119 does not define "A BAD IDEA".
> 
> It appears resilvering is not valid unless it can be known that there are no outstanding RW layouts.

And the solution to that is to fence the outstanding RW layouts.


>  
>> 
>> In any case, adding another sentence or two explaining this requirement
>> (even if it seems obvious) wouldn't go amiss.
> 
> I'm not sure how much is needed but it needs to be clearer if this is really a requirement, and, if it is, how that requirement is to be enforced

It is pretty clear that it caused a lot of discussion, so I’ll address it.


>  
>> 
>> Aside from that nit, the draft seems fine to me!
>> 
>> Cheers,
>> -- 
>> Jeff Layton <jlayton@poochiereds.net <mailto:jlayton@poochiereds.net>>
>> 
>> _______________________________________________
>> nfsv4 mailing list
>> nfsv4@ietf.org <mailto:nfsv4@ietf.org>
>> https://www.ietf.org/mailman/listinfo/nfsv4
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4