All of lore.kernel.org
 help / color / mirror / Atom feed
From: "NeilBrown" <neilb@suse.de>
To: "'bfields@fieldses.org'" <bfields@fieldses.org>
Cc: "inoguchi.yuki@fujitsu.com" <inoguchi.yuki@fujitsu.com>,
	"'Trond Myklebust'" <trondmy@hammerspace.com>,
	"'linux-nfs@vger.kernel.org'" <linux-nfs@vger.kernel.org>,
	"'mbenjami@redhat.com'" <mbenjami@redhat.com>
Subject: Re: client caching and locks
Date: Mon, 10 Jan 2022 09:16:21 +1100	[thread overview]
Message-ID: <164176658189.25899.1767614988647740830@noble.neil.brown.name> (raw)
In-Reply-To: <20220106141628.GA7105@fieldses.org>

On Fri, 07 Jan 2022, 'bfields@fieldses.org' wrote:
> On Thu, Jan 06, 2022 at 07:23:16AM +0000, inoguchi.yuki@fujitsu.com wrote:
> > > How about this?  I also updated the lock/nolock description and deleted
> > > the end of this subsection since it's redundant with that. And removed
> > > the bit about using nolock to mount /var with v2/v3 as that seems like a
> > > bit of a niche case at this point.  If we still want to document that, I
> > > think it belongs elsewhere.
> > 
> > Thank you so much for creating the patch!
> > 
> > For the most part I agree with you, but I feel unsafe to remove the part 
> > "using nolock to mount /var with v2/v3" even if it seems niche case. 
> > I'm also not sure if there is another suitable document to migrate it. 
> > 
> > Therefore, at the end of "lock/nolock" subsection ...
> 
> I could live with that.
> 
> Though the other reason I cut it was because I think it needs updates
> too and I wasn't sure exactly how to handle them.
> 
> The v4 case is more important and should probably be dealt with first.
> I think the answer there is just "don't mount /var over NFSv4", period.

Why not? An NFSv4 client has no business accessing anything in
/var/lib/nfs, so how can it cause a problem?

> 
> And maybe we should be more specific: the problem is with /var/lib/nfs,
> not all of /var.

According to "3.2. CLIENT STARTUP" section "C/" in the README that comes
with nfs-utils,
      statd should be run before any NFSv2 or NFSv3 filesystem is
      mounted with remote locking (i.e. without -o nolock).

so it is only fair to say "the problem is with /var/lib/nfs" if that is
a separate filesystem from /var.

Note that "-o nolock" should also be used for the root filesystem for
root-over-NFSv3, as that must be mounted before statd can be running.

Maybe that it how it should be explained in the man page:

  -o nolock should be used to mount any NFSv3 filesystems that are
   mounted before rpc.statd can be started, which can only be started
   after /var/lib/nfs is available.

NeilBrown

  parent reply	other threads:[~2022-01-09 22:16 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-08 21:19 client caching and locks J. Bruce Fields
2020-06-18  9:54 ` inoguchi.yuki
2020-06-18 14:29   ` Trond Myklebust
2020-06-18 20:09     ` bfields
2020-06-22 13:52       ` bfields
2020-10-01 21:47         ` bfields
2020-10-01 22:26           ` Matt Benjamin
2020-10-06 17:26             ` bfields
2021-12-28  2:39               ` inoguchi.yuki
2021-12-28  5:11               ` NeilBrown
2022-01-03 16:20                 ` 'bfields@fieldses.org'
2022-01-04  9:24                   ` inoguchi.yuki
2022-01-04 12:36                     ` Trond Myklebust
2022-01-04 15:32                       ` bfields
2022-01-04 15:54                         ` Trond Myklebust
2022-01-05  9:31                           ` inoguchi.yuki
2022-01-05 22:03                             ` 'bfields@fieldses.org'
2022-01-06  7:23                               ` inoguchi.yuki
2022-01-06 14:16                                 ` 'bfields@fieldses.org'
2022-01-07  8:33                                   ` inoguchi.yuki
2022-01-09 22:16                                   ` NeilBrown [this message]
2022-01-09 22:38                                     ` 'bfields@fieldses.org'
2022-01-09 21:58                               ` NeilBrown
2022-01-09 22:41                                 ` 'bfields@fieldses.org'
2022-01-17  9:09                                 ` inoguchi.yuki
2022-01-17 22:27                                 ` NeilBrown
2022-02-02  4:09                                   ` inoguchi.yuki
2022-02-02  4:25                                     ` Trond Myklebust
2022-02-02  4:44                                   ` NeilBrown
2022-02-03  7:31                                     ` inoguchi.yuki
2022-02-07  4:16                                     ` NeilBrown

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=164176658189.25899.1767614988647740830@noble.neil.brown.name \
    --to=neilb@suse.de \
    --cc=bfields@fieldses.org \
    --cc=inoguchi.yuki@fujitsu.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=mbenjami@redhat.com \
    --cc=trondmy@hammerspace.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.