linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chuck Lever III <chuck.lever@oracle.com>
To: Benjamin Coddington <bcodding@redhat.com>,
	Charles Hedrick <hedrick@rutgers.edu>
Cc: Patrick Goetz <pgoetz@math.utexas.edu>,
	Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: Re: safe versions of NFS
Date: Tue, 13 Apr 2021 17:24:00 +0000	[thread overview]
Message-ID: <5F282359-128D-4F72-B393-B87956DFE458@oracle.com> (raw)
In-Reply-To: <08DD4F45-E1CB-4FCB-BA0C-A6B8BD86FEDE@redhat.com>



> On Apr 13, 2021, at 12:23 PM, Benjamin Coddington <bcodding@redhat.com> wrote:
> 
> (resending this as it bounced off the list - I accidentally embedded HTML)
> 
> Yes, if you're pretty sure your hostnames are all different, the client_ids
> should be different.  For v4.0 you can turn on debugging (rpcdebug -m nfs -s
> proc) and see the client_id in the kernel log in lines that look like: "NFS
> call setclientid auth=%s, '%s'\n", which will happen at mount time, but it
> doesn't look like we have any debugging for v4.1 and v4.2 for EXCHANGE_ID.
> 
> You can extract it via the crash utility, or via systemtap, or by doing a
> wire capture, but nothing that's easily translated to running across a large
> number of machines.  There's probably other ways, perhaps we should tack
> that string into the tracepoints for exchange_id and setclientid.
> 
> If you're interested in troubleshooting, wire capture's usually the most
> informative.  If the lockup events all happen at the same time, there
> might be some network event that is triggering the issue.
> 
> You should expect NFSv4.1 to be rock-solid.  Its rare we have reports
> that it isn't, and I'd love to know why you're having these problems.

I echo that: NFSv4.1 protocol and implementation are mature, so if
there are operational problems, it should be root-caused.

NFSv4.1 uses a uniform client ID. That should be the "good" one,
not the NFSv4.0 one that has a non-zero probability of collision.

Charles, please let us know if there are particular workloads that
trigger the lock reclaim failure. A narrow reproducer would help
get to the root issue quickly.


> Ben
> 
> On 13 Apr 2021, at 11:38, hedrick@rutgers.edu wrote:
> 
>> The server is ubuntu 20, with a ZFS file system.
>> 
>> I don’t set the unique ID. Documentation claims that it is set from the hostname. They will surely be unique, or the whole world would blow up. How can I check the actual unique ID being used? The kernel reports a blank one, but I think that just means to use the hostname. We could obviously set a unique one if that would be useful.
>> 
>>> On Apr 13, 2021, at 11:35 AM, Benjamin Coddington <bcodding@redhat.com> wrote:
>>> 
>>> It would be interesting to know why your clients are failing to reclaim their locks.  Something is misconfigured.  What server are you using, and is there anything fancy on the server-side (like HA)?  Is it possible that you have clients with the same nfs4_unique_id?
>>> 
>>> Ben
>>> 
>>> On 13 Apr 2021, at 11:17, hedrick@rutgers.edu wrote:
>>> 
>>>> many, though not all, of the problems are “lock reclaim failed”.
>>>> 
>>>>> On Apr 13, 2021, at 10:52 AM, Patrick Goetz <pgoetz@math.utexas.edu> wrote:
>>>>> 
>>>>> I use NFS 4.2 with Ubuntu 18/20 workstations and Ubuntu 18/20 servers and haven't had any problems.
>>>>> 
>>>>> Check your configuration files; the last time I experienced something like this it's because I inadvertently used the same fsid on two different exports. Also recommend exporting top level directories only.  Bind mount everything you want to export into /srv/nfs and only export those directories. According to Bruce F. this doesn't buy you any security (I still don't understand why), but it makes for a cleaner system configuration.
>>>>> 
>>>>> On 4/13/21 9:33 AM, hedrick@rutgers.edu wrote:
>>>>>> I am in charge of a large computer science dept computing infrastructure. We have a variety of student and develo9pment users. If there are problems we’ll see them.
>>>>>> We use an Ubuntu 20 server, with NVMe storage.
>>>>>> I’ve just had to move Centos 7 and Ubuntu 18 to use NFS 4.0. We had hangs with NFS 4.1 and 4.2. Files would appear to be locked, although eventually the lock would time out. It’s too soon to be sure that moving back to NFS 4.0 will fix it. Next is either NFS 3 or disabling delegations on the server.
>>>>>> Are there known versions of NFS that are safe to use in production for various kernel versions? The one we’re most interested in is Ubuntu 20, which can be anything from 5.4 to 5.8.
>>> 
> 
> 
> 

--
Chuck Lever




  reply	other threads:[~2021-04-13 17:24 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-13 14:33 safe versions of NFS hedrick
2021-04-13 14:52 ` Patrick Goetz
2021-04-13 15:17   ` hedrick
2021-04-13 15:35     ` Benjamin Coddington
     [not found]       ` <22DE8966-253D-49A7-936D-F0A0B5246BE6@rutgers.edu>
2021-04-13 16:23         ` Benjamin Coddington
2021-04-13 17:24           ` Chuck Lever III [this message]
2021-04-13 17:48             ` hedrick
2021-04-13 18:20             ` hedrick
2021-04-13 19:40             ` hedrick
2021-04-13 19:48               ` hedrick
2021-10-05 19:46                 ` more problems with NFS. sort of repeatable problem with vmplayer Charles Hedrick
2021-10-11 14:45                   ` J. Bruce Fields
2021-10-11 23:44                   ` NeilBrown
2021-10-14 22:55                     ` Charles Hedrick
2021-04-14 14:15               ` safe versions of NFS Chuck Lever III
2021-04-14 14:24                 ` hedrick

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=5F282359-128D-4F72-B393-B87956DFE458@oracle.com \
    --to=chuck.lever@oracle.com \
    --cc=bcodding@redhat.com \
    --cc=hedrick@rutgers.edu \
    --cc=linux-nfs@vger.kernel.org \
    --cc=pgoetz@math.utexas.edu \
    /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).