All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Dickson <SteveD@redhat.com>
To: "Ragnar Kjørstad" <nfs@ragnark.vestdata.no>
Cc: nfs@lists.sourceforge.net
Subject: Re: [PATCH] STATD - SM_NOTIFY have wrong ID_NAME on multihost servers.
Date: Tue, 23 Nov 2004 19:46:04 -0500	[thread overview]
Message-ID: <41A3D9CC.7040404@RedHat.com> (raw)
In-Reply-To: <20041123232636.GE19342@vestdata.no>

Ragnar Kj=F8rstad wrote:

>On Tue, Nov 23, 2004 at 03:28:07PM -0500, Steve Dickson wrote:
> =20
>
>>Here is a patch that make sure the correct hostname is used
>>in the SM_NOTIFY message what is sent from a rebooted server
>>that has multiple network interfaces.
>>
>>Using the network part of the destination address, the correct network
>>interface is found. Then a gethostbyaddr() on that interface is done,
>>which yields the correct hostname that should be sent in the notify
>>message....
>>
>>Comments?
>>   =20
>>
>
>It has been a while since I looked at this code, but:
>1. What happens when you run statd with the "-n" option?
>   Does this patch override the name the user gave?
> =20
>
hmm.... this is a problem, since the global SM_stat_chge.mon_name
that the -n sets is now ignored... I guess I was thinking it would be bet=
ter
for statd to dynamically set the name that sent the notify message.
But it would probably be a smart to maintain the same functionality.

Question: do people actually run multiple statds using the -n to define
the interface they monitor?  That's a scenario  I guess  I didn't think=20
of but
it sound a bit awkward....

>2. Does this really find the correct hostname?
>   If I'm not mistaken, the nfs client needs to get a SM_NOTIFY message
>   with the hostname that it actually mounted from, right?
> =20
>
right....

>   This may or may not match the hostname that the server find when
>   running gethostbyaddr on the interface's IP, so one can easily find
>   scenarios where this patch will cause statd to stop working.
> =20
>
I don't think this is an issue... as long as the hostname and all of its=20
aliases
resolve to the same ip address, things should work since its the ip addre=
ss
the kernel needs to find the lock that has to be reclaimed... Now the=20
problem
arises when the hostname resolves to a different ip address....=20
something this patch
is trying to address...

>   Now, there new behavious may actually be better, but I'm not sure
>   it's acceptable to change it anyway?
> =20
>
Is this truly a big thing? to explicitly define the hostname that will=20
be monitored?

>   Could an alternative be to send out SM_NOTIFY messages for multiple
>   hostnames?=20
>
I believe this is how some of the Unixs out there  do it... but that=20
always seem a bit
verbose and non-exact...

>Both the one from gethostname() and the ones found by
>   reverse lookup from the interfaces? Then I guess the meaning of the
>   "-n" option could be changed to _add_ a hostname to the list of
>   names to broadcast for?=20
> =20
>
Again I think this is a bit messy especially with hosts that have a ton=20
of interfaces and
aliases.... but anything is better than how it works today.... imho...

SteveD.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

  reply	other threads:[~2004-11-24  0:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-23 20:28 [PATCH] STATD - SM_NOTIFY have wrong ID_NAME on multihost servers Steve Dickson
2004-11-23 23:26 ` Ragnar Kjørstad
2004-11-24  0:46   ` Steve Dickson [this message]
2004-11-24  2:00     ` Ragnar Kjørstad
2004-11-24 12:00       ` Steve Dickson
2004-11-24 17:35         ` Ragnar Kjørstad
2004-11-24 18:43           ` Marc Eshel
2004-11-24 20:35             ` Ragnar Kjørstad
2004-11-24 22:08           ` Steve Dickson
2004-11-24 23:25             ` Ragnar Kjørstad
2004-11-26 13:01               ` Steve Dickson
2004-11-24  4:42     ` Marc Eshel

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=41A3D9CC.7040404@RedHat.com \
    --to=steved@redhat.com \
    --cc=nfs@lists.sourceforge.net \
    --cc=nfs@ragnark.vestdata.no \
    /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.