* Odd NIS map failure with mount point creation time in the future?
@ 2011-06-17 14:12 James Pearson
2011-06-18 10:18 ` Ian Kent
0 siblings, 1 reply; 6+ messages in thread
From: James Pearson @ 2011-06-17 14:12 UTC (permalink / raw)
To: autofs
I using CentOS 5 on a large number of boxes with a NIS indirect
automount map.
I've been using the following syntax in /etc/auto.master:
/mntpoint yp:custom.map
And this has worked fine for ages
Recently, I wanted to provide some custom local overrides to mount
points in the NIS map, so I've changed /etc/auto.master to be:
/mntpoint custom.map
and created a file called /etc/custom.map which contains something like:
host1 host:/disk1
+custom.map
i.e. include the NIS map after any local mount point settings
On most machines, this works fine - but on a number of machines, after a
reboot, the mounts from the NIS map fail to mount - although the other
mounts from /etc/custom.map mount fine.
One thing I noticed in common on all the machines with this problem is
that datestamp on the automount mount point (/mntpoint) was in the
future - by an hour or two. I guess the hardware clock is an hour or two
ahead of the real time.
ntp runs on all these boxes - but starts after autofs - however if I
change ntp to startup before autofs, then autofs works fine after a
reboot ...
Any idea why autofs fails to read entries from the included NIS map when
the creation date of the map mount point is in the future? - but works
fine when the same NIS map is referenced directly from /etc/auto.master?
James Pearson
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Odd NIS map failure with mount point creation time in the future?
2011-06-17 14:12 Odd NIS map failure with mount point creation time in the future? James Pearson
@ 2011-06-18 10:18 ` Ian Kent
2011-06-18 15:59 ` James Pearson
0 siblings, 1 reply; 6+ messages in thread
From: Ian Kent @ 2011-06-18 10:18 UTC (permalink / raw)
To: James Pearson; +Cc: autofs
On Fri, 2011-06-17 at 15:12 +0100, James Pearson wrote:
> I using CentOS 5 on a large number of boxes with a NIS indirect
> automount map.
>
> I've been using the following syntax in /etc/auto.master:
>
> /mntpoint yp:custom.map
>
> And this has worked fine for ages
>
> Recently, I wanted to provide some custom local overrides to mount
> points in the NIS map, so I've changed /etc/auto.master to be:
>
> /mntpoint custom.map
>
> and created a file called /etc/custom.map which contains something like:
>
> host1 host:/disk1
> +custom.map
>
> i.e. include the NIS map after any local mount point settings
>
> On most machines, this works fine - but on a number of machines, after a
> reboot, the mounts from the NIS map fail to mount - although the other
> mounts from /etc/custom.map mount fine.
>
> One thing I noticed in common on all the machines with this problem is
> that datestamp on the automount mount point (/mntpoint) was in the
> future - by an hour or two. I guess the hardware clock is an hour or two
> ahead of the real time.
>
> ntp runs on all these boxes - but starts after autofs - however if I
> change ntp to startup before autofs, then autofs works fine after a
> reboot ...
>
> Any idea why autofs fails to read entries from the included NIS map when
> the creation date of the map mount point is in the future? - but works
> fine when the same NIS map is referenced directly from /etc/auto.master?
Don't know about the timestamp but there were some included map fixes in
RHEL-5.7, at least one was a fix for a regression.
Versions?
>
> James Pearson
>
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Odd NIS map failure with mount point creation time in the future?
2011-06-18 10:18 ` Ian Kent
@ 2011-06-18 15:59 ` James Pearson
[not found] ` <4DFD05CE.4060905@moving-picture.com>
0 siblings, 1 reply; 6+ messages in thread
From: James Pearson @ 2011-06-18 15:59 UTC (permalink / raw)
To: Ian Kent; +Cc: autofs
Ian Kent wrote:
>>
>>Any idea why autofs fails to read entries from the included NIS map when
>>the creation date of the map mount point is in the future? - but works
>>fine when the same NIS map is referenced directly from /etc/auto.master?
>
>
> Don't know about the timestamp but there were some included map fixes in
> RHEL-5.7, at least one was a fix for a regression.
>
> Versions?
Sorry, I should have said - this is CentOS 5.5 with autofs
5.0.1-0.rc2.143.el5_5.6 - and I've also tried it with
5.0.1-0.rc2.143.el5_6.2 - with the same result.
It is easy to reproduce - with an included NIS map - if I do:
/etc/init.d/autofs stop; date -s "1 minute"; /etc/init.d/autofs start;
date -s "-1 minute"
This creates the automount mount point 1 minute into the future.
Then if I try to access a server defined in the NIS map, the mount fails.
However, if I wait a minute (i.e until the system clock passes the date
stamp of the mount point), the automount of file systems in the NIS map
works fine.
Is it possible to get a copy of the autofs RPM for RHEL-5.7 to test?
Thanks
James Pearson
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-06-20 13:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-17 14:12 Odd NIS map failure with mount point creation time in the future? James Pearson
2011-06-18 10:18 ` Ian Kent
2011-06-18 15:59 ` James Pearson
[not found] ` <4DFD05CE.4060905@moving-picture.com>
2011-06-19 3:18 ` Ian Kent
2011-06-20 10:45 ` James Pearson
2011-06-20 13:40 ` Ian Kent
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.