systemd automount expiration
We use a lot of automounts at school, as our myriad of students roam from system to system, and were using the automounter to automount their home directory on a LAN using the automounter. No problem. Under RHEL6, the mounts cycled through and went away eventually after the student had logged off. Just what we needed.
As we switch to 7 I notice that the automounted directories do not timeout and get un-mounted. In fact, even if the system is rebooted the automounted directory is remounted. This results in many machines having 20 or 30 unused mounted directories, all from our same server. Not so good.
I thought this might have been a local bug in some configuration I was missing. Then I saw this line on a posting to the systemd-devel list:
Hmm? The systemd automount logic so far does not support mount expiration,...
So, I have a few questions:
-
I am afraid of letting these mounts accumulate, as I worry about the server. Is this a problem ("What, me worry?")
-
I can write a script that umounts all the unneeded directories nightly. That shouldn't be a problem, except for the fact that I have to do it.
-
Can I still use the automounter (which supports mount expiration nicely) directly on 7, or does systemd always convert the autmount configuration into a systemd.automount unit?
Is there anything else I'm missing?
Thanks for any input.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
