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

Thomas Haynes <loghyr@gmail.com> Fri, 01 March 2024 17:45 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 7B9C0C14CE4A for <nfsv4@ietfa.amsl.com>; Fri, 1 Mar 2024 09:45:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 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, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, 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 zi7UUUxk75-Z for <nfsv4@ietfa.amsl.com>; Fri, 1 Mar 2024 09:45:16 -0800 (PST)
Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) (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 609A0C14F616 for <nfsv4@ietf.org>; Fri, 1 Mar 2024 09:44:32 -0800 (PST)
Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-6e5b1c6daa3so1086410b3a.1 for <nfsv4@ietf.org>; Fri, 01 Mar 2024 09:44:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709315071; x=1709919871; darn=ietf.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=cVKdVO5DJwfexh6hYDAPcVyPW2IKhqbQFxPkPXJ/DnA=; b=Rh3ldxTafcK4/cjO2hqZgzzkpMY7bkijhPx4le+6UdvsWoYNA2dL4lZfZC6rOte7kT xrqKVY1z8HQWBKc6dOdcGaAoMfT+NZWrpVLXywbBgSeyVCrQhYwFtqgbpXEWfdPDhMyy hlQUXNGLRd3OnOXS2M00N8uQEc+RxZbW3S4dJpj5dua1Sll7Vfyv78XmlvANhMxHRRaG e1bt7sycrv5VTVVUyU1Zubilvv7z5g7LrrQrCfwauxiZ7O5OvrVBAfKNL4v3/5eHEQNM iUayQVkuQ3zo3iVfkf0y1eTw+LXi/krvYS9RNe8mxDyFFzd4OECxSJf8AmPoOy/a7Jji fNNg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709315071; x=1709919871; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cVKdVO5DJwfexh6hYDAPcVyPW2IKhqbQFxPkPXJ/DnA=; b=eIS4RDf7DVKWBikHD2U2Z5r4TWvx1To2rGN1qwxQ8g1rqKeEqc9CLKgBeXe5EXGSFf xiQT8JmpYMnvuM8ye2Fai/ai7+hk/L7nmXTrGOMJmXjHvO6eOLTcwjLmdRV8+QAAeqxP elMrmrDUn7wRsQQwQ4lv/6qCWN9Ax8ysqMSJt7MCE8w71a5BGM0lXMXgh+7XXSeUNZvv wq95LYtD3yqYmUyTTXnu5Y5tN+fXMKavS7ePqzqVv+F55uFhoKbg7AkGJNYe4eQ43Oau W1W0FOnWgbPQIuAgexhaNsYU7jCWF0hBNfdyLB7c936gHNfTR0FNJ60CChwprG5B4DBS kQAQ==
X-Forwarded-Encrypted: i=1; AJvYcCXkcvW0cgeCL5vGJI745pe7+0dGLdZDrTuwxwhBVd/fT4S3EkC9wVhaxyKTYdKv6efeEIDQy2JpXh6rHItp0g==
X-Gm-Message-State: AOJu0YyZHpsC8FiIKsS3NlfkMLAtql5PU14FHyOnA+thulo7fan/B8bJ H0Xlooen+Ek+AsWlDyPtKnHzsz9kN9NF7roXpeRVoaQrf7ge68fDzCWCWHeD
X-Google-Smtp-Source: AGHT+IEDzZ2163sfS88JHHGMJwfZ8m+oTxsnoN+mE4qaIc4VYMNdiTpivqMK0AELBxkZkZsOmG1soQ==
X-Received: by 2002:a17:903:18f:b0:1dc:a605:5444 with SMTP id z15-20020a170903018f00b001dca6055444mr2879452plg.21.1709315071323; Fri, 01 Mar 2024 09:44:31 -0800 (PST)
Received: from smtpclient.apple ([2601:647:4500:91:6c44:a0dc:85d8:bb80]) by smtp.gmail.com with ESMTPSA id kw14-20020a170902f90e00b001db70183611sm3733237plb.270.2024.03.01.09.44.30 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Mar 2024 09:44:30 -0800 (PST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.400.31\))
From: Thomas Haynes <loghyr@gmail.com>
In-Reply-To: <CAM5tNy6VeXaJhsop4MVbd88Oq08yPQhAYCbkHtcEjT0vM1vMkA@mail.gmail.com>
Date: Fri, 01 Mar 2024 09:44:19 -0800
Cc: Jeff Layton <jlayton@poochiereds.net>, NFSv4 <nfsv4@ietf.org>, Trond Myklebust <trondmy@hammerspace.com>
Content-Transfer-Encoding: quoted-printable
Message-Id: <D1DB3071-EF48-42B2-AB83-BDC1DB5C57C7@gmail.com>
References: <26ee2c63cdc2cca64903eaae3699b5c0758ca3a5.camel@poochiereds.net> <CAM5tNy6VeXaJhsop4MVbd88Oq08yPQhAYCbkHtcEjT0vM1vMkA@mail.gmail.com>
To: Rick Macklem <rick.macklem@gmail.com>
X-Mailer: Apple Mail (2.3774.400.31)
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/hxOa0uTwQOFNYKgnGQ7dB1lQZUc>
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 17:45:17 -0000


> On Feb 29, 2024, at 8:45 PM, Rick Macklem <rick.macklem@gmail.com> wrote:
> 
> On Thu, Feb 29, 2024 at 8:09 AM Jeff Layton <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."
>> 
>> The rationale for this seems clear, but it seems like resilvering the
>> file while the clients hold any sort of RW layout would be a bad idea,
>> no?
> I think this is a good point. It seems to me that, although the MDS can
> use the LayoutReturn with stateid of all zeros to decide to resilver a file,
> the actual resilvering cannot start until the MDS's grace period has ended.
> (Until the grace period ends, the rebooted MDS cannot know that no client
> is still using a layout, I think? If the MDS has a record of all clients that
> held a layout for the file before the reboot, then it needs to wait until those
> clients complete reclaim, but it may be simpler to just delay resilvering
> until grace is over.)
> 

This may be an implementation specific choice. When we decide to resilver (in grace or not), we fence the file first.

This will cause client I/O to halt right away and force the client to get a new layout.




> Lets see what Tom thinks?
> 
> rick
> 
>> 
>> In any case, adding another sentence or two explaining this requirement
>> (even if it seems obvious) wouldn't go amiss.
>> 
>> Aside from that nit, the draft seems fine to me!
>> 
>> Cheers,
>> --
>> Jeff Layton <jlayton@poochiereds.net>
>> 
>> _______________________________________________
>> nfsv4 mailing list
>> nfsv4@ietf.org
>> https://www.ietf.org/mailman/listinfo/nfsv4
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4