From: jie wang <yjxxtd12@gmail.com>
To: linux-nfs@vger.kernel.org
Subject: Question abount sm-notify when use NFSv3 lock
Date: Wed, 6 Jul 2022 20:28:09 +0800 [thread overview]
Message-ID: <CACt_J9PHSjkz_-x0K=7+AYjiX1Ur5cV+brC9Tv4i7dkG=NSBuQ@mail.gmail.com> (raw)
Hi, all
When we use NFSv3, we have a LoadBalance in front of NFS server. For
example, LoadBalance's ip is ip2 and NFS server's ip is ip1, and
client use ip2 to mount.
Now client use flock to lock file, then I restart NFS server and
execute sm-notify -f. Then the problem occurs, the sm-notify request's
src ip is ip1, not ip2, so rpc.statd will ignore this notify, because
it does not match ip2 when mount, so client will not reclaim lock, and
lock lost when restart NFS server.
Do you know how to address this ? Thanks a lot.
next reply other threads:[~2022-07-06 12:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-06 12:28 jie wang [this message]
2022-07-06 14:39 ` Question abount sm-notify when use NFSv3 lock Benjamin Coddington
2022-07-06 23:56 ` jie wang
[not found] ` <CACt_J9NtB5+1MiL8JrNbyLf6uhgHWDYmyAtKgmKdhzMkgL9E5g@mail.gmail.com>
2022-07-07 11:51 ` Benjamin Coddington
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='CACt_J9PHSjkz_-x0K=7+AYjiX1Ur5cV+brC9Tv4i7dkG=NSBuQ@mail.gmail.com' \
--to=yjxxtd12@gmail.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 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.