All of lore.kernel.org
 help / color / mirror / Atom feed
* sm-notify: IP vs hostname?
@ 2020-10-24 12:26 Eric Hagberg
  2020-10-24 15:51 ` Chuck Lever
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Hagberg @ 2020-10-24 12:26 UTC (permalink / raw)
  To: linux-nfs

I've noticed that sm-notify pulls info from
/var/lib/nfs/statd/sm/$hostname files that also contain the IP address
that was in use when the lock(s) was created.

In cases where the hostname lookup may resolve to a different IP
address over time, would it make sense to try notifying the IP address
from that file rather than the hostname of the file? Or try the IP and
fall back to a hostname if the first fails (or just notify both?)?

Thanks,
-Eric

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: sm-notify: IP vs hostname?
  2020-10-24 12:26 sm-notify: IP vs hostname? Eric Hagberg
@ 2020-10-24 15:51 ` Chuck Lever
  0 siblings, 0 replies; 2+ messages in thread
From: Chuck Lever @ 2020-10-24 15:51 UTC (permalink / raw)
  To: Eric Hagberg; +Cc: Linux NFS Mailing List



> On Oct 24, 2020, at 8:26 AM, Eric Hagberg <ehagberg@janestreet.com> wrote:
> 
> I've noticed that sm-notify pulls info from
> /var/lib/nfs/statd/sm/$hostname files that also contain the IP address
> that was in use when the lock(s) was created.
> 
> In cases where the hostname lookup may resolve to a different IP
> address over time, would it make sense to try notifying the IP address
> from that file rather than the hostname of the file? Or try the IP and
> fall back to a hostname if the first fails (or just notify both?)?

The historical tactic has been to send the notification to all the
addresses: for example, both IPv4 and IPv6. At first glance, it
seems like notifying both would be a useful behavior.


--
Chuck Lever




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-24 15:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-24 12:26 sm-notify: IP vs hostname? Eric Hagberg
2020-10-24 15:51 ` Chuck Lever

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.