automount mountpoints disappearing
Or edit thread subject: add "not appearing at all" at the end of the title.
Hi all, I'm playing around with automounter in Debian Jessie but I'm seeing some unexpected behaviour I can't quiet understand. I have a few hard disks that I connect with a backplane to my workstation. So my setup would be to automount them and refer to them with UUID's since the device mapping sometimes changes. So far so good but upon every exit of autofs, I see all the subdirectories under the main /media/backplane mount point disappearing. Also after a reboot I no longer see them. I can work around it by manually stopping autofs, recreating the sub directory (/media/backplane/raidbackup-a) and restarting autofs, then it works. But like that, there's not much auto in automounter ... . Another strange thing, I rebooted in single user mode and low and behold, I can see the sub directories :confused: . Applying an immutable flag to them also did not help. I get the feeling automount is mounting some sort of file system over /media/backplane which could explain why directories get lost. But not why they are not created by automount. (OK, while writing this and copy-pasting /etc/mtab here, it seems to me like that's exactly what autofs is doing :-) ) Things I have tried so far: * leaving out the UUID referrer so that I put /dev/md0 in the last field of /etc/auto.backplane. * rebooting in the stock Debian kernel (I've compiled a stripped down kernel 4.3.0 myself) * chown-ed the /media/backplane directory to my unprivileged user account * made /etc/auto.master refer to a new directory /backplane in the root directory instead of /media/backplane. If the /backplane in root does not exist, it's not created when I start autofs, when I created it manually, it does not generate sub mount points. But to no avail. I don't see what I'm doing wrong here. /etc/auto.master: Code:
/media/backplane /etc/auto.backplane Code:
backup -fstype=ext4 :/dev/disk/by-uuid/de3dc8cc-ac19-46a6-9f4a-ec9e2019e0b4 Code:
root@ganeymedes:/home/user# /etc/init.d/autofs stop Code:
/etc/auto.backplane /media/backplane autofs rw,relatime,fd=-1,pgrp=1272,timeout=300,minproto=5,maxproto=5,indirect 0 0 |
I commented out the directive:
Code:
+dir:/etc/auto.master.d/ Still, does not work. Code:
root@ganeymedes:/etc# automount -f -v -d |
And here's what happens if I manually create a subdirectory "argentastick" in /backplane (/backplane/argentastick, that is.
After having done the above, if I CTRL-C and autofs shuts down, I change nothing, restart automount as shown below, I no longer see /backplane/argentastick. Code:
root@ganeymedes:/etc# automount -f -v -d |
Adding --ghost to the main directories as an option in /etc/auto.master fixed this.
I assumed autofs would create directories for the maps, mounted or not. Apparently that's not true. This lead me to see empty directories. Also <Tab> completion does not work. The thing that made me realize this is to manually type the entire directory. All of a sudden, the directory appeared to be there. My /etc/auto.master looks something like this now: Code:
/media/backplane auto.backplane --ghost |
All times are GMT -5. The time now is 10:09 AM. |