* [PATCH] small patch for documenting weighted maps
@ 2005-01-24 21:48 Chris Feist
2005-01-25 1:05 ` Ian Kent
0 siblings, 1 reply; 14+ messages in thread
From: Chris Feist @ 2005-01-24 21:48 UTC (permalink / raw)
To: raven; +Cc: autofs
[-- Attachment #1: Type: text/plain, Size: 380 bytes --]
In the linux automounter if you have something like this in a map file:
/test hosta(10):/export localhost(20):/export hostb(30):/export
the automounter will ignore the weighting and always pick the localhost.
The Sun automounter also behaves in this way. The patch I'm submitted
just clarifies the documentation so the user is not surprised when it
happens.
Thanks,
Chris
[-- Attachment #2: autofs-4.1.3-replicated-server-doc.patch --]
[-- Type: text/x-patch, Size: 718 bytes --]
--- autofs-4.1.3/README.replicated-server.orig 2005-01-24 15:26:28.609436878 -0600
+++ autofs-4.1.3/README.replicated-server 2005-01-24 15:27:57.592082878 -0600
@@ -27,7 +27,10 @@ Mutliple weighted, replicated hosts same
Will pick lowest weighted host that responds to RPC call.
RPC time is not counted, only whether the call got a reply
at all. Initially does a .1 second timeout, if all hosts
-fail this, moves to 10 second timeout.
+fail this, moves to 10 second timeout. If one of the hosts
+is localhost, the automounter will choose that regardless of
+its weight. (This has been done to remain compatible with
+Sun's automounter)
Multiple weighted, replicated hosts different (potentially)
paths:
[-- Attachment #3: Type: text/plain, Size: 140 bytes --]
_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] small patch for documenting weighted maps
2005-01-24 21:48 [PATCH] small patch for documenting weighted maps Chris Feist
@ 2005-01-25 1:05 ` Ian Kent
2005-01-25 12:18 ` NIS maps loading Francesco P. Lovergine
0 siblings, 1 reply; 14+ messages in thread
From: Ian Kent @ 2005-01-25 1:05 UTC (permalink / raw)
To: Chris Feist; +Cc: autofs
On Mon, 24 Jan 2005, Chris Feist wrote:
> In the linux automounter if you have something like this in a map file:
>
> /test hosta(10):/export localhost(20):/export hostb(30):/export
>
> the automounter will ignore the weighting and always pick the localhost.
> The Sun automounter also behaves in this way. The patch I'm submitted
> just clarifies the documentation so the user is not surprised when it
> happens.
>
Thanks Chris
I'll apply this as well.
Ian
^ permalink raw reply [flat|nested] 14+ messages in thread
* NIS maps loading.
2005-01-25 1:05 ` Ian Kent
@ 2005-01-25 12:18 ` Francesco P. Lovergine
2005-01-25 12:36 ` Francesco P. Lovergine
` (3 more replies)
0 siblings, 4 replies; 14+ messages in thread
From: Francesco P. Lovergine @ 2005-01-25 12:18 UTC (permalink / raw)
To: autofs
Changes in indirect maps such as auto.home
distributed via NIS are ignored until all daemons are killed and
restarted.
That's of course not always possible or practical (it requires all
users logout). This behavior is not present in other *nix such as
Solaris or True64, so it can be considered a true bug.
--
Francesco P. Lovergine
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: NIS maps loading.
2005-01-25 12:18 ` NIS maps loading Francesco P. Lovergine
@ 2005-01-25 12:36 ` Francesco P. Lovergine
2005-01-25 15:24 ` Michael Blandford
` (2 subsequent siblings)
3 siblings, 0 replies; 14+ messages in thread
From: Francesco P. Lovergine @ 2005-01-25 12:36 UTC (permalink / raw)
To: autofs
On Tue, Jan 25, 2005 at 01:18:27PM +0100, Francesco P. Lovergine wrote:
> Changes in indirect maps such as auto.home
> distributed via NIS are ignored until all daemons are killed and
> restarted.
> That's of course not always possible or practical (it requires all
> users logout). This behavior is not present in other *nix such as
> Solaris or True64, so it can be considered a true bug.
>
ugh, sorry for thread hijacking :-(
--
Francesco P. Lovergine
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: NIS maps loading.
2005-01-25 12:18 ` NIS maps loading Francesco P. Lovergine
2005-01-25 12:36 ` Francesco P. Lovergine
@ 2005-01-25 15:24 ` Michael Blandford
2005-01-25 15:41 ` Francesco P. Lovergine
2005-01-25 15:37 ` Jeff Moyer
2005-01-26 14:49 ` raven
3 siblings, 1 reply; 14+ messages in thread
From: Michael Blandford @ 2005-01-25 15:24 UTC (permalink / raw)
To: Francesco P. Lovergine; +Cc: autofs
Francesco P. Lovergine wrote:
>Changes in indirect maps such as auto.home
>distributed via NIS are ignored until all daemons are killed and
>restarted.
>That's of course not always possible or practical (it requires all
>users logout). This behavior is not present in other *nix such as
>Solaris or True64, so it can be considered a true bug.
>
>
>
What version of autofs are you using? Have you applied the kernel
patches at kernel.org ( if you aren't using 2.6.10 )
Michael
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: NIS maps loading.
2005-01-25 15:24 ` Michael Blandford
@ 2005-01-25 15:41 ` Francesco P. Lovergine
0 siblings, 0 replies; 14+ messages in thread
From: Francesco P. Lovergine @ 2005-01-25 15:41 UTC (permalink / raw)
To: autofs
On Tue, Jan 25, 2005 at 08:24:13AM -0700, Michael Blandford wrote:
> Francesco P. Lovergine wrote:
>
> >Changes in indirect maps such as auto.home
> >distributed via NIS are ignored until all daemons are killed and
> >restarted.
> >That's of course not always possible or practical (it requires all
> >users logout). This behavior is not present in other *nix such as
> >Solaris or True64, so it can be considered a true bug.
> >
> >
> >
>
> What version of autofs are you using? Have you applied the kernel
> patches at kernel.org ( if you aren't using 2.6.10 )
>
> Michael
Autofs 4.1.3-8 in Debian testing. That's with stock debian kernel 2.6.8
(which is a patched 2.6.8.1). I suspect that has nothing to do with
kernel space, anyway. It's a mere missing invalidation of NIS maps.
Note that ypcat returns correctly the new map, but autofs continues
to use the wrong obsolete one. I can try 2.6.10 if you will feel better
with that :) In fact, if the old map auto.home contains something like
frankie hostA:/pathA
and the new map in the same file
frankie hostB:/pathB
autofs will mount hostA:/pathA for user frankie instead of the new one.
The only workaround is restarting autofs daemon. That's obviuosly
true even if user home was not mounted previously.
BTW, I have the same problem with FC3. That's quite annoying, also
considering that other unices behaves correctly.
--
Francesco P. Lovergine
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: NIS maps loading.
2005-01-25 12:18 ` NIS maps loading Francesco P. Lovergine
2005-01-25 12:36 ` Francesco P. Lovergine
2005-01-25 15:24 ` Michael Blandford
@ 2005-01-25 15:37 ` Jeff Moyer
2005-01-25 15:50 ` Francesco P. Lovergine
2005-01-26 14:49 ` raven
3 siblings, 1 reply; 14+ messages in thread
From: Jeff Moyer @ 2005-01-25 15:37 UTC (permalink / raw)
To: Francesco P. Lovergine; +Cc: autofs
==> Regarding [autofs] NIS maps loading.; "Francesco P. Lovergine" <frankie@debian.org> adds:
frankie> Changes in indirect maps such as auto.home distributed via NIS are
frankie> ignored until all daemons are killed and restarted. That's of
frankie> course not always possible or practical (it requires all users
frankie> logout). This behavior is not present in other *nix such as
frankie> Solaris or True64, so it can be considered a true bug.
This is a known issue, and there are patches to address it. Depending on
what kernel you are running, you may also have to patch that as well.
Unfortunately, I can't find the map update patch in the usual place. You
can get it from the srpms here:
http://people.redhat.com/jmoyer/
Grab the latest srpm, and extract these two patches:
autofs-4.1.3-ian-map-expiry-1.patch
autofs-4.1.3-ian-map-expiry-multimount-fix.patch
The kernel patch you want is also listed on the website above. You could
also just wait for 4.1.4 (or the beta version thereof).
Hope this helps.
Jeff
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: NIS maps loading.
2005-01-25 15:37 ` Jeff Moyer
@ 2005-01-25 15:50 ` Francesco P. Lovergine
2005-01-25 15:56 ` Francesco P. Lovergine
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: Francesco P. Lovergine @ 2005-01-25 15:50 UTC (permalink / raw)
To: autofs; +Cc: sesse
On Tue, Jan 25, 2005 at 10:37:33AM -0500, Jeff Moyer wrote:
> ==> Regarding [autofs] NIS maps loading.; "Francesco P. Lovergine" <frankie@debian.org> adds:
>
> frankie> Changes in indirect maps such as auto.home distributed via NIS are
> frankie> ignored until all daemons are killed and restarted. That's of
> frankie> course not always possible or practical (it requires all users
> frankie> logout). This behavior is not present in other *nix such as
> frankie> Solaris or True64, so it can be considered a true bug.
>
> This is a known issue, and there are patches to address it. Depending on
> what kernel you are running, you may also have to patch that as well.
>
> Unfortunately, I can't find the map update patch in the usual place. You
> can get it from the srpms here:
>
> http://people.redhat.com/jmoyer/
>
> Grab the latest srpm, and extract these two patches:
>
> autofs-4.1.3-ian-map-expiry-1.patch
> autofs-4.1.3-ian-map-expiry-multimount-fix.patch
>
> The kernel patch you want is also listed on the website above. You could
> also just wait for 4.1.4 (or the beta version thereof).
Uhm, probably we missed that in current debian. Isn't it the same of FC3?
--
Francesco P. Lovergine
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: NIS maps loading.
2005-01-25 15:50 ` Francesco P. Lovergine
@ 2005-01-25 15:56 ` Francesco P. Lovergine
2005-01-25 16:19 ` Jeff Moyer
2005-01-25 16:50 ` Steinar H. Gunderson
2 siblings, 0 replies; 14+ messages in thread
From: Francesco P. Lovergine @ 2005-01-25 15:56 UTC (permalink / raw)
To: autofs; +Cc: sesse
On Tue, Jan 25, 2005 at 04:50:21PM +0100, Francesco P. Lovergine wrote:
> >
> > Grab the latest srpm, and extract these two patches:
> >
> > autofs-4.1.3-ian-map-expiry-1.patch
> > autofs-4.1.3-ian-map-expiry-multimount-fix.patch
> >
> > The kernel patch you want is also listed on the website above. You could
> > also just wait for 4.1.4 (or the beta version thereof).
>
> Uhm, probably we missed that in current debian. Isn't it the same of FC3?
>
I meant if those patches are currently in the FC3 edition...
--
Francesco P. Lovergine
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: NIS maps loading.
2005-01-25 15:50 ` Francesco P. Lovergine
2005-01-25 15:56 ` Francesco P. Lovergine
@ 2005-01-25 16:19 ` Jeff Moyer
2005-01-25 16:50 ` Steinar H. Gunderson
2 siblings, 0 replies; 14+ messages in thread
From: Jeff Moyer @ 2005-01-25 16:19 UTC (permalink / raw)
To: Francesco P. Lovergine; +Cc: autofs, sesse
==> Regarding Re: [autofs] NIS maps loading.; "Francesco P. Lovergine" <f.lovergine@ba.issia.cnr.it> adds:
f.lovergine> On Tue, Jan 25, 2005 at 10:37:33AM -0500, Jeff Moyer wrote:
>> ==> Regarding [autofs] NIS maps loading.; "Francesco P. Lovergine"
>> <frankie@debian.org> adds:
>>
frankie> Changes in indirect maps such as auto.home distributed via NIS are
frankie> ignored until all daemons are killed and restarted. That's of
frankie> course not always possible or practical (it requires all users
frankie> logout). This behavior is not present in other *nix such as
frankie> Solaris or True64, so it can be considered a true bug.
>> This is a known issue, and there are patches to address it. Depending
>> on what kernel you are running, you may also have to patch that as well.
>>
>> Unfortunately, I can't find the map update patch in the usual place.
>> You can get it from the srpms here:
>>
>> http://people.redhat.com/jmoyer/
>>
>> Grab the latest srpm, and extract these two patches:
>>
>> autofs-4.1.3-ian-map-expiry-1.patch
>> autofs-4.1.3-ian-map-expiry-multimount-fix.patch
>>
>> The kernel patch you want is also listed on the website above. You
>> could also just wait for 4.1.4 (or the beta version thereof).
f.lovergine> Uhm, probably we missed that in current debian. Isn't it the
f.lovergine> same of FC3?
The fc3 tree I'm looking at has this change. If it isn't out there right
now, it will be available in the next update (which I think is coming
soon). FWIW, RHEL 4 also has this change.
-Jeff
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: NIS maps loading.
2005-01-25 15:50 ` Francesco P. Lovergine
2005-01-25 15:56 ` Francesco P. Lovergine
2005-01-25 16:19 ` Jeff Moyer
@ 2005-01-25 16:50 ` Steinar H. Gunderson
2005-01-26 14:53 ` raven
2 siblings, 1 reply; 14+ messages in thread
From: Steinar H. Gunderson @ 2005-01-25 16:50 UTC (permalink / raw)
To: autofs
On Tue, Jan 25, 2005 at 04:50:21PM +0100, Francesco P. Lovergine wrote:
>> The kernel patch you want is also listed on the website above. You could
>> also just wait for 4.1.4 (or the beta version thereof).
> Uhm, probably we missed that in current debian. Isn't it the same of FC3?
Probably we missed it, yes. I'm still on semi-vacation (although I'm home from
the USA, it's hard to do extensive testing without a Linux system :-) ), so I
guess I'll simply wait for 4.1.4, which should be a largely problem-free
update for us anyhow.
BTW, current Debian versions has fixes for whitespace in parse_sun.c (also
for non-multimaps); are those fused upstream yet?
/* Steinar */
--
Homepage: http://www.sesse.net/
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: NIS maps loading.
2005-01-25 16:50 ` Steinar H. Gunderson
@ 2005-01-26 14:53 ` raven
2005-01-26 15:16 ` Steinar H. Gunderson
0 siblings, 1 reply; 14+ messages in thread
From: raven @ 2005-01-26 14:53 UTC (permalink / raw)
To: Steinar H. Gunderson; +Cc: autofs
On Tue, 25 Jan 2005, Steinar H. Gunderson wrote:
> On Tue, Jan 25, 2005 at 04:50:21PM +0100, Francesco P. Lovergine wrote:
>>> The kernel patch you want is also listed on the website above. You could
>>> also just wait for 4.1.4 (or the beta version thereof).
>> Uhm, probably we missed that in current debian. Isn't it the same of FC3?
>
> Probably we missed it, yes. I'm still on semi-vacation (although I'm home from
> the USA, it's hard to do extensive testing without a Linux system :-) ), so I
> guess I'll simply wait for 4.1.4, which should be a largely problem-free
> update for us anyhow.
Umm ... I hope I haven't made life difficult for you with 4.1.4 beta.
There are a dswag of changes.
I've worked through and applied as many of the Debian patches as I could.
Please let me know if there's more that I can do to help.
>
> BTW, current Debian versions has fixes for whitespace in parse_sun.c (also
> for non-multimaps); are those fused upstream yet?
As I said above.
I also had white space handling patches that I applied.
Once please test the beta.
Ian
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: NIS maps loading.
2005-01-26 14:53 ` raven
@ 2005-01-26 15:16 ` Steinar H. Gunderson
0 siblings, 0 replies; 14+ messages in thread
From: Steinar H. Gunderson @ 2005-01-26 15:16 UTC (permalink / raw)
To: autofs
(No need to send directly to me anymore, I'm on the list :-) )
On Wed, Jan 26, 2005 at 10:53:02PM +0800, raven@themaw.net wrote:
> Umm ... I hope I haven't made life difficult for you with 4.1.4 beta.
> There are a dswag of changes.
Yes, I noticed -- I'll probably let it live in experimental for a while
before uploading to unstable, as we're quite near a freeze now.
> I've worked through and applied as many of the Debian patches as I could.
> Please let me know if there's more that I can do to help.
See my last mail to the list; I guess most of the points should be in there.
Overall, you're making my work a lot easier :-)
/* Steinar */
--
Homepage: http://www.sesse.net/
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: NIS maps loading.
2005-01-25 12:18 ` NIS maps loading Francesco P. Lovergine
` (2 preceding siblings ...)
2005-01-25 15:37 ` Jeff Moyer
@ 2005-01-26 14:49 ` raven
3 siblings, 0 replies; 14+ messages in thread
From: raven @ 2005-01-26 14:49 UTC (permalink / raw)
To: Francesco P. Lovergine; +Cc: autofs
On Tue, 25 Jan 2005, Francesco P. Lovergine wrote:
> Changes in indirect maps such as auto.home
> distributed via NIS are ignored until all daemons are killed and
> restarted.
> That's of course not always possible or practical (it requires all
> users logout). This behavior is not present in other *nix such as
> Solaris or True64, so it can be considered a true bug.
Umm ... thats been discussed quite a bit on the list. You must have missed
it. It was a fair while ago.
As is mentioned later in this thread, I did create patches for this but as
it was added funtionality (and was under test) it wasn't placed on kernel.org.
It is however in the 4.1.4 beta and I've made some additional fixes
during testing the last couple of days. Please test this out in the beta.
Ian
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2005-01-26 15:16 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-24 21:48 [PATCH] small patch for documenting weighted maps Chris Feist
2005-01-25 1:05 ` Ian Kent
2005-01-25 12:18 ` NIS maps loading Francesco P. Lovergine
2005-01-25 12:36 ` Francesco P. Lovergine
2005-01-25 15:24 ` Michael Blandford
2005-01-25 15:41 ` Francesco P. Lovergine
2005-01-25 15:37 ` Jeff Moyer
2005-01-25 15:50 ` Francesco P. Lovergine
2005-01-25 15:56 ` Francesco P. Lovergine
2005-01-25 16:19 ` Jeff Moyer
2005-01-25 16:50 ` Steinar H. Gunderson
2005-01-26 14:53 ` raven
2005-01-26 15:16 ` Steinar H. Gunderson
2005-01-26 14:49 ` raven
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.