Re: [nfsv4] LAYOUTERROR in draft-ietf-nfsv4-minorversion2-40

David Noveck <davenoveck@gmail.com> Sun, 24 January 2016 10:23 UTC

Return-Path: <davenoveck@gmail.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2003B1B2DA0 for <nfsv4@ietfa.amsl.com>; Sun, 24 Jan 2016 02:23:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HXPOt2m73JMI for <nfsv4@ietfa.amsl.com>; Sun, 24 Jan 2016 02:23:39 -0800 (PST)
Received: from mail-ob0-x22f.google.com (mail-ob0-x22f.google.com [IPv6:2607:f8b0:4003:c01::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 57D411B2DA2 for <nfsv4@ietf.org>; Sun, 24 Jan 2016 02:23:39 -0800 (PST)
Received: by mail-ob0-x22f.google.com with SMTP id ba1so96861633obb.3 for <nfsv4@ietf.org>; Sun, 24 Jan 2016 02:23:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=sS8iBYVGR9MJsjgffY1caxZuC5elTQpKHo7cpKvWGXQ=; b=zs7BtLoUpZkWr3Hz6AuYtZpgROvmzT8UAaVtnN0sC0i9DtI9RIrjxRKiJVg5CXFWQz roXwoy2+BSXpaKDFI1l5Cz8voHN44CZdYuL3e6kplCZqYMZSCt0pQNyCy+fp+OOKXYCL bgCx3RcUlMG5FjCe+mWCb+MYJDPS8KCAwvL8+yPTObVk6yRv2vort5Dp0PX39zWf0kJG zHUf8LS1GRqy0jj7j9qZ0dqfjdbRFmnKBLIYjRHcK3KdeFy2rDnYTnUY3WU2CWjkTtMO 9jS5GE/sC8Di3wHM1d56M/Cqz2khvChTgkTevSrTWvl4Tdi9Gcub10vxU2c/aE36spd0 WIkw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=sS8iBYVGR9MJsjgffY1caxZuC5elTQpKHo7cpKvWGXQ=; b=Qfw6UFl4Sfsxmh/mqAn8bGzerilhW55n3npzhE1QsdWvD+hzAr267OKBOsNl59BqB7 fYprgE+m0t9jZfCWeDYR4Qtft6+KNqpm+de0Y4Nsbxc0mQwAXlu8WiZcZa/09eT09HHE KsQ9fWdubhtRy/hl7LHXaCAW9KY3aSIN6egv+jhPutH53PyVLwzjYFaZy5lhat/TBCDi V67J/unbDGa4gcjYgCN++9+tZaV65Gas2xqQB68RrX8xO5RCcZlNrvi2co1/OkRpJyrm nCg5l9ZfDy+D+hc5OGhA9ysZ+mykkwVExnXg2jJFrDm6iKQdFOCN7rX/3iy/d0kBM4Ig zSlg==
X-Gm-Message-State: AG10YOTf4mV7iiIhAwFzbFqcHKBlb4HHxEEmfntOdNmAzBu+YsaqHiQde8uYud7tIxJYjfEDaVVI06XjYWf9xQ==
MIME-Version: 1.0
X-Received: by 10.60.94.45 with SMTP id cz13mr9477558oeb.42.1453631018677; Sun, 24 Jan 2016 02:23:38 -0800 (PST)
Received: by 10.182.92.201 with HTTP; Sun, 24 Jan 2016 02:23:38 -0800 (PST)
In-Reply-To: <CAABAsM5Nv_m9UwKzCoJV5HsBb8Lm4L8VWaoVDYPD2cVGd1QWPw@mail.gmail.com>
References: <CAABAsM5Nv_m9UwKzCoJV5HsBb8Lm4L8VWaoVDYPD2cVGd1QWPw@mail.gmail.com>
Date: Sun, 24 Jan 2016 05:23:38 -0500
Message-ID: <CADaq8jcE-0KqyMkbyxvFykQ3QwxgJG8X3WLNX9KaJwX9Uw+dTQ@mail.gmail.com>
From: David Noveck <davenoveck@gmail.com>
To: Trond Myklebust <trondmy@gmail.com>
Content-Type: multipart/alternative; boundary="089e0118265280bd53052a11d81c"
Archived-At: <http://mailarchive.ietf.org/arch/msg/nfsv4/WzpcLMA-nbUZ3KpdCRwDByXeCvo>
Cc: "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] LAYOUTERROR in draft-ietf-nfsv4-minorversion2-40
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.15
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: Sun, 24 Jan 2016 10:23:41 -0000

You might consider reporting multiple ranges by using multiple
LAYOUTERRORs in a COMPOUND, given that each
LAYOUTERROR only allows a single range to be reported.

On Sat, Jan 23, 2016 at 10:45 AM, Trond Myklebust <trondmy@gmail.com> wrote:

> Hi,
>
> When looking to implement LAYOUTERROR from
> https://tools.ietf.org/html/draft-ietf-nfsv4-minorversion2-40, I
> noticed there is a major difference between it and the way we're doing
> error passing in LAYOUTRETURN. While the latter allows you to send an
> array of several error reports for different byte ranges on the same
> file, the LAYOUTERROR spec only allows you to specify a single byte
> range.
>
> Being able to specify errors as an array of ranges is somewhat of a
> requirement for the flexfiles environment. In the case where the data
> is mirrored across several DSes, reporting the actual byte ranges
> where errors occurred can significantly cut down on the amount of work
> that the server has to perform to fix the mirroring when errors start
> to occur; instead of rewriting the whole file, it can just rewrite
> those chunks that had errors.
>
> A typical scenario where this might happen is if the file is fenced,
> and so the WRITEs start receiving EACCES calls; unless you are
> extraordinarily lucky, the fencing will leave one set of successful
> writes on one mirror image, and a different set on the other (due to
> timing, RPC reordering, etc).
>
> While I can continue to use LAYOUTRETURN for most cases, I was hoping
> to use LAYOUTERROR for those cases where we have queued up lots of
> errors (due to parallel WRITEs), and so want to split the error
> reporting into multiple RPC calls.
>
> Cheers
>   Trond
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4
>