From: Prakash Velayutham <prakash.velayutham@cchmc.org>
To: Ian Kent <raven@themaw.net>
Cc: autofs@linux.kernel.org
Subject: Re: autofs-4.1.3 not working properly
Date: Mon, 28 Nov 2005 09:22:28 -0500 [thread overview]
Message-ID: <438B12A4.1040106@cchmc.org> (raw)
In-Reply-To: <Pine.LNX.4.63.0511271725001.2406@donald.themaw.net>
Ian Kent wrote:
> On Sat, 26 Nov 2005, Prakash Velayutham wrote:
>
>
>>>>> Ian Kent <raven@themaw.net> 11/25/05 1:47 PM >>>
>>>>>
>> On Thu, 24 Nov 2005, Prakash Velayutham wrote:
>>
>>
>>> Hi,
>>>
>>> I am new to this list, so please forgive my ignorances.
>>> I had a SuSE Pro 9.0 system running autofs (v3) running earlier. The
>>> autofs itself did not have any issues at all until I decided to
>>>
>> upgrade
>>
>>> the system to SuSE 9.3. It was a clean install, and autofs4-4.1.3
>>>
>> became
>>
>>> the default kernel autofs module. My autofs master map comes from a
>>> OpenLDAP server and it contains 3 different mount maps.
>>> /users (LDAP map)
>>> /protein/users (LDAP map)
>>> /import/users (LDAP map)
>>> I also have a file-based map in this server (/export/users).
>>>
>>> Recently I was trying to move a user's home dir from server1 to
>>>
>> server2.
>>
>>> After moving his home dir and making the relevant changes to his LDAP
>>> entry (homeDirectory attribute), I tried to restart autofs in the
>>> above-mentioned server. The server already had several users logged in
>>>
>>> under /protein/users. Though the restart did not complain, I noticed
>>> that autofs status showed "Configured mount points" correctly and
>>> removed the currently mounted mount points from "Active mount points".
>>>
>>> Is there a reason why? Also strangely the ownerships of the previously
>>>
>>> mounted dirs had been changed to root:root.
>>>
>> I'm not sure what is not working or what has been broken.
>> What is the actual problem and symptom?
>>
>> Ian
>>
>> Thanks Ian for a reply. What if I restart autofs when a user whose home
>> dir is mounted through autofs is already logged into the system (and
>> hence at least one of the automount entries is being used)? What will
>> the system do in that case?
>>
>
> On runing "reload" it should, depending on version and patch levels
> re-read and update the map, leave the mounted directory mounted and leave
> the stale map entry for cleanup next time the map is reloaded and the
> entry isn't mounted.
>
> "Restart"ing is much more agressive and I wouldn't recommend it if you
> have mount that are in use. To restart you really need to have nothing
> actually in use.
>
>
>> And also if I change the ldap attribute "homeDirectory" for a user, do I
>> have to restart autofs in a system for that change to be seen. Because I
>> sometimes see that the system has cached the user's attributes from LDAP
>> and tries to use that and fails.
>>
>
> autofs doesn't use that attribute so no, but you'll need to be sure that
> the automount map entry that is used to access that directory is still
> valid following the change and if it also had to be changed then you might
> need to "reload" autofs. It's worth pointing out that later versions (most
> RedHat versions and 4.1.4 I think) of autofs should recognise this change
> on access without needing to re-load the map.
>
> The other thing I noticed about your query was the question about the root
> owned directory. At variuos times in the past development autofs has been
> (mostly intentionally) lazy about cleaning up mount point directories.
> When autofs directories don't have a filesystem mounted on them they will
> appear root owned. It shouldn't make a difference to operation.
>
> Ian
Thanks Ian. I tried out autofs reload and there seems to be a small
glitch. It says "checking for changes in auto.master" and then stops
some of the automount daemons. But stays there forever. If I do Ctrl-C,
then it immediately shows "Starting XXX" for the different automount
daemons (except 1 for some reason). Is there a reason for this
behaviour. The system I am trying out is SuSE Linux 10.0, autofs-4.1.4-6
with automount master map and the entries coming from a OpenLDAP server.
Thanks,
Prakash
next prev parent reply other threads:[~2005-11-28 14:22 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <s388370e.056@n6mcgw16.cchmc.org>
2005-11-27 9:49 ` autofs-4.1.3 not working properly Ian Kent
2005-11-28 14:22 ` Prakash Velayutham [this message]
2005-11-28 15:33 ` Ian Kent
2005-11-29 16:36 ` Prakash Velayutham
2005-11-30 14:34 ` Ian Kent
2005-11-30 0:54 Prakash Velayutham
-- strict thread matches above, loose matches on Subject: below --
2005-11-30 0:26 Prakash Velayutham
2005-11-30 15:18 ` Ian Kent
2005-11-30 0:24 Prakash Velayutham
2005-11-30 15:12 ` Ian Kent
2005-11-29 23:30 Prakash Velayutham
2005-11-26 15:20 Prakash Velayutham
2005-11-24 19:28 Prakash Velayutham
2005-11-25 18:47 ` Ian Kent
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=438B12A4.1040106@cchmc.org \
--to=prakash.velayutham@cchmc.org \
--cc=autofs@linux.kernel.org \
--cc=raven@themaw.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.