linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Salvatore Bonaccorso <bonaccos@ee.ethz.ch>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: linux-nfs@vger.kernel.org, Chuck Lever <chuck.lever@oracle.com>
Subject: Re: nfsd4_process_open2 failed to open newly-created file! status=10008 ; warning at fs/nfsd/nfs4proc.c for nfsd4_open
Date: Tue, 28 Sep 2021 07:11:41 +0200	[thread overview]
Message-ID: <cd38d56c6824ac6776df838dfd66bccd@ee.ethz.ch> (raw)
In-Reply-To: <20210927155338.GA30593@fieldses.org>

Hi Bruce,

On 27.09.2021 17:53, J. Bruce Fields wrote:
> On Mon, Sep 27, 2021 at 08:10:31AM +0200, Salvatore Bonaccorso wrote:
>> We recently got the following traces on a NFS server, but I'm not sure
>> how to further debug this, any hints?
> 
> The server creates and opens a file in two steps, though it should
> really be a single atomic operation.
> 
> That means there's a small possibility somebody could intervene and do
> something like change the permissions:
> 
>> 
>> [5746893.904448] ------------[ cut here ]------------
>> [5746893.910050] nfsd4_process_open2 failed to open newly-created 
>> file! status=10008
> 
> 10008 is NFS4ERR_DELAY, so maybe somebody managed to get a delegation
> before we finished opening?
> 
> We should be able to prevent that....
> 
> In your setup are there processes quickly opening new files created by
> others?

This is very possible. The NFS server is used as a "scratch" place 
accessible from
compute cluster where people can have multiple jobs simultaneously 
running through
Slurm and accessing the data. So it is possible that user create new 
files from
one running instance and accessing it quickly from the other nodes.

I'm so far was unable to arificially trigger the issue but is there 
anything I
can try out to get more information useful for you?

Regards,
Salvatore

  reply	other threads:[~2021-09-28  5:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-27  6:10 nfsd4_process_open2 failed to open newly-created file! status=10008 ; warning at fs/nfsd/nfs4proc.c for nfsd4_open Salvatore Bonaccorso
2021-09-27 15:53 ` J. Bruce Fields
2021-09-28  5:11   ` Salvatore Bonaccorso [this message]
2021-09-28 19:39     ` J. Bruce Fields
2021-09-29  4:06       ` Salvatore Bonaccorso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cd38d56c6824ac6776df838dfd66bccd@ee.ethz.ch \
    --to=bonaccos@ee.ethz.ch \
    --cc=bfields@fieldses.org \
    --cc=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).