On Nov 6, 2007, at 10:10 PM, Ian Kent wrote:
On Mon, 2007-11-05 at 12:43 -0500, Scott Leerssen wrote:
Hi,
A google search and scan of the archives didn't reveal an answer,
so I
apologize in advance if this subject has been beaten to death
already. Here are a few version numbers for reference:
CentOS 5
kernel: 2.6.18-8.1.15.el5
autofs: autofs-5.0.1-0.rc2.43.0.2
SElinux: disabled
I have a stock, yum updated CentOS 5 installation on which autofs
works fine as long as the mount points are pre-existing. However, if
I stop the automounter with 'service autofs stop' (or by rebooting),
the automounter deletes my /net and /misc mount points and then fails
to recreate them on 'service autofs start'.
One caveat to the "normal" CentOS 5 install, is that I'm running off
of an NFS root. Is there anything in particular about having a mount
point inside another NFS mounted directory that would make automount
want to remove my mount points and fail to recreate them?
Yes.
Does pre-creating them within the NFS mounted root work OK?
Ian
Yes, if the mounts are pre-existing, they mount up fine. When the
system reboots, however, they go away. An obvious workaround is to
write a script that scans /etc/auto.master, parse out the mount
points and create them before autofs starts, but I was hoping there
was a less "cave man" solution.
Scott
PS: no offense to cave men. That seems to be a sensitive subject
these days._______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs