Do you have an automount configured using systemd (or another autofs-based daemon) with an expiry/timeout and it's not automatically unmounting? i.e., is x-systemd.idle-timeout
or TimeoutIdleSec
not working?
Do you use Prometheus' node_exporter
?
If you answered yes to both questions, you're in luck. After being confused for a while with this problem and furiously Googling about it, I found this issue reported by @huww98 on the systemd repo: systemd/systemd#18445 "Support for autofs "strictexpire" option".
Thanks to their amazing debugging skills, they were able to trace the root cause of the issue to a statfs()
syscall made by node_exporter
on all mountpoints. If the scrape interval of your Prometheus instance is lower than the timeout, your mountpoint will never be unmounted. In their own words: