linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Saso Slavicic" <saso.linux@astim.si>
To: <linux-nfs@vger.kernel.org>
Subject: server_scope v4.1 lock reclaim
Date: Mon, 27 Apr 2015 08:07:12 +0200	[thread overview]
Message-ID: <000601d080b0$687a2860$396e7920$@astim.si> (raw)

Hi,

I'm doing a NFS HA setup for KVM and need lock reclaim to work. I've been
doing a lot of testing and reading in the past week and finally figured out
that for reclaims to work on a 4.1 mount (4.1 is preferable due to
RECLAIM_COMPLETE and thus faster failover), the server hostnames need to be
the same. RFC specifies that reclaim can succeed if server scope is the same
and in fact, the client will not even attempt a reclaim if the server scope
does not match.

But...there doesn't seem to be any way of setting server scope other than
changing server hostname? RFC states: "The purpose of the server scope is to
allow a group of servers to indicate to clients that a set of servers
sharing the same server scope value has arranged to use compatible values of
otherwise opaque identifiers." The nfsdcltrack directory is properly handed
over during failover so I'd need some way of configuring server scope on
this "set of servers"? From the code, the server scope is simply set to
utsname()->nodename in nfs4xdr.c.

What am I missing here, how can this work when Heartbeat needs different
names for nodes?

Thanks,
Saso Slavicic



             reply	other threads:[~2015-04-27  6:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-27  6:07 Saso Slavicic [this message]
2015-04-27 15:19 ` server_scope v4.1 lock reclaim J. Bruce Fields
2015-04-28 16:44   ` Saso Slavicic
2015-04-28 18:23     ` 'J. Bruce Fields'

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='000601d080b0$687a2860$396e7920$@astim.si' \
    --to=saso.linux@astim.si \
    --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).