[opensuse] automount 12.2: anything changed concerning wildcard keys?
Hi, I'm updating a 11.4 system to 12.2, so the change of behavior mentioned below might have happened in between. But I don't have appropriate systems with intermediate distributions to check, so I ask here... I use autofs (a.k.a. automount), with an entry in auto.master /net /etc/auto.net -soft,intr /etc/auto.net reads: * &:/ I.e., any host's root file system shall be available as an NFS share via /net/$HOST. In 11.4, this works. In 12.2, it doesn't. Starting automount with debug/foreground/verbose options (or calling autofs with -m) explains that the respective key (the host name) for /net is not known. Well, it shall be looked up and mounted by automount, but isn't... :-( There are no further error messages in automount output; not anything that would supply a lead for the root cause. I'm not yet ready to debug automount to get further information. ;-) I googled and didn't find any documented change of semantics for autofs/automount. Is this an expected change of behavior, or is this a bug? Here's hoping for more information, Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod, Roedermark, Germany Email: jschrod@acm.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Joachim Schrod said the following on 18/12/12 08:23 PM:
I googled and didn't find any documented change of semantics for autofs/automount. Is this an expected change of behavior, or is this a bug?
Here's hoping for more information,
I've mentioned this before on the list; With 12.x you are running systemd and with systemd the ability to do mount on demand is inherent in the way systemd parses /etc/fstab and set up the mounts. So now you make entries under "options" in /etc/fstab. Start with "man systemd.special" and see "local fs-target". That's the first clue! Next up "man systemd.automount". Of course if you'd do what I always recommend and tried "apropos", then 'apropos automount' would have led you there :-) If "google is your friend" on the net the "apropos is your friend" for system documentation. Neither gives you absolute answers but they both give clues and hints as to where to look. You still have to research and try things. -- Two wrongs don't make a right, but three lefts do. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Anton Aylward wrote:
Joachim Schrod said the following on 18/12/12 08:23 PM:
I googled and didn't find any documented change of semantics for autofs/automount. Is this an expected change of behavior, or is this a bug?
Here's hoping for more information,
I've mentioned this before on the list; With 12.x you are running systemd and with systemd the ability to do mount on demand is inherent in the way systemd parses /etc/fstab and set up the mounts. So now you make entries under "options" in /etc/fstab.
Start with "man systemd.special" and see "local fs-target". That's the first clue!
Next up "man systemd.automount".
Of course if you'd do what I always recommend and tried "apropos", then 'apropos automount' would have led you there :-)
If "google is your friend" on the net the "apropos is your friend" for system documentation. Neither gives you absolute answers but they both give clues and hints as to where to look. You still have to research and try things.
And an existing automount ought to also still work. -- Per Jessen, Zürich (2.2°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen said the following on 19/12/12 01:44 AM:
If "google is your friend" on the net the "apropos is your friend" for system documentation. Neither gives you absolute answers but they both give clues and hints as to where to look. You still have to research and try things.
And an existing automount ought to also still work.
Indeed, but the OP says it doesn't and he seems to have 'researched' (or experimented) with that. But he *is* running under systemd and I know for sure since I've been 'automounting' using the setup I describe for a while. Over a year. More, I didn't diarise it. YMMV. "Works for me" -- There are two rules for success in life: Rule 1: Don't tell people everything you know. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Anton Aylward wrote:
Joachim Schrod said the following on 18/12/12 08:23 PM:
I googled and didn't find any documented change of semantics for autofs/automount. Is this an expected change of behavior, or is this a bug?
Here's hoping for more information,
I've mentioned this before on the list; With 12.x you are running systemd and with systemd the ability to do mount on demand is inherent in the way systemd parses /etc/fstab and set up the mounts. So now you make entries under "options" in /etc/fstab.
Start with "man systemd.special" and see "local fs-target". That's the first clue!
Next up "man systemd.automount".
I know about systemd's automount capabilities and have read its man page. AFAIK, systemd does not support wild card automounting as mentioned in my post -- in the part where I write about my problem, the part that you deleted. I.e., to my knowledge it is not possible to write a systemd automount unit file that automounts $HOST:/ on /net/$HOST. That's why I continue to use automount and not systemd. If my understanding of systemd's capabilities is not correct, I'm open for more pointers; but neither the man page of systemd.automount nor those of systemd.unit or systemd.mount give any hint about wild card unit names. I can't see how I would describe the equivalent of autofs config * &:/ in a net.automount file. In a later post you write
YMMV. "Works for me"
Do you really have wild card automounting working, as mentioned above? If not, something else works for you, not the automount capability that I asked for. Best, Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod, Roedermark, Germany Email: jschrod@acm.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am Sonntag, 23. Dezember 2012, 19:47:38 schrieb Joachim Schrod:
[...] I can't see how I would describe the equivalent of autofs config
* &:/
in a net.automount file. [...]
Works for me using 12.1. By any chance, do you made /etc/auto.net executable? Because, /etc/auto.net is owned by the autofs package and it is actually a script and, thus, executable. But your simple file /etc/auto.net is not! Gruß Jan -- You cannot lift up the wage-earner up by pulling down the wage-payer. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Anton Aylward
-
Jan Ritzerfeld
-
Joachim Schrod
-
Per Jessen