All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Kirch <okir@lst.de>
To: nfs@lists.sourceforge.net
Subject: Re: lockd and statd
Date: Tue, 10 Apr 2007 10:47:39 +0200	[thread overview]
Message-ID: <200704101047.40755.okir@lst.de> (raw)
In-Reply-To: <1175728939.6459.9.camel@heimdal.trondhjem.org>

On Thursday 05 April 2007 01:22, Trond Myklebust wrote:
> Tom gave a talk on this subject at Connectathon last year. You can find
> his arguments for why statd DNS lookups are a must in his slides:
> 
>      http://www.connectathon.org/talks06/talpey-cthon06-nsm.pdf
> 
> Note his point that the server needs to store both the client hostname
> and IP address so that you can fail over from one to the other if the
> notification fails.

Well, I'm not really convinced. When monitoring a host, I think it is sufficient
to just store the mon_name; no IP address or anything. When dealing with an
incoming SM_NOTIFY, statd just needs to do a string match of the mon_name.
When sending out an SM_NOTIFY, we need a user space helper anyway,
which can do a full-blown DNS lookup and send notifications to *all* addresses
listed for each peer.

This is the approach I took with the kernel statd - these patches have been in 
Suse kernels for 1.5 years or so, and until I left in January, I hadn't seen a
single report that complained about lock reclaim problems.

Of course, clients need to send a mon_name that make sense from the
server's point of view in DNS - ie it must be a FQDN, or the server must be
able to find it via its resolv.conf search list.

I believe relying on the client's IP address will paper over configuration
problems at best, and lead to bad or incomplete notifications at worst.

A user space statd has its uses, eg with lock failover - but I believe the
majority of users is served by a small kernel statd just as well.

Olaf
-- 
Olaf Kirch  |  --- o --- Nous sommes du soleil we love when we play
okir@lst.de |    / | \   sol.dhoop.naytheet.ah kin.ir.samse.qurax

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

  reply	other threads:[~2007-04-10  8:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-04  7:11 lockd and statd Greg Bradner
2007-04-04 12:40 ` Trond Myklebust
2007-04-04 16:09   ` Greg Bradner
2007-04-04 17:33     ` Olaf Kirch
2007-04-04 18:49       ` Wendy Cheng
2007-04-04 21:34         ` Trond Myklebust
2007-04-04 22:48           ` Wendy Cheng
2007-04-04 23:00             ` Wendy Cheng
2007-04-04 23:22             ` Trond Myklebust
2007-04-10  8:47               ` Olaf Kirch [this message]
2007-04-10 19:36                 ` Trond Myklebust
2007-04-10 20:16                 ` Talpey, Thomas
2007-04-04 23:25             ` Neil Brown

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=200704101047.40755.okir@lst.de \
    --to=okir@lst.de \
    --cc=nfs@lists.sourceforge.net \
    /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.