LDAP-based auto.master and --ghost option
Hi folks - I have our auto.master configuration stored in LDAP as an "nisMap", with "nisObjects" beneath it describing our various mount points. I'm trying to get the --ghost option to work from this LDAP-based auto.master, but am not having any luck (the mounts DO work without the --ghost option).
This is on a SuSE 10.1-based system, running autofs 4.1.4 and the 2.6.18 vanilla kernel (with SuSE 10.1 /proc/config.gz)...
For example, one of my working nisObjects under the auto.master:
cn=/proj
nisMapEntry=ldap:nisMapName=auto.proj,ou=autofs,dc=fake
...would report this line from "Configured Mount Points" after starting autofs (and also as an active mount point):
/usr/sbin/automount /proj ldap "nisMapName=auto.proj,ou=autofs,dc=fake"
...
When I add the --ghost option to my nisMapEntry...
cn=/proj
nisMapEntry=ldap:nisMapName=auto.proj,ou=autofs,dc=fake --ghost
...I get this back when starting autofs (and the mount point is missing from the "active" mounts list):
/usr/sbin/automount /proj ldap:nisMapName=auto.proj,ou=autofs,dc=fake "--ghost"
The quotes appear to shift over to the "--ghost" option, and the ldap:nisMapName is no longer parsed correctly (ie: split on the ":" separator).
Seems like I'm using invalid syntax when specifying additional automount options via the nisMapEntry field... can anyone shed some light on what I'm doing wrong here?
(I've also tried adding the "--ghost" before the "ldap:nisMapName..." string, without success)
Thanks for any tips out there.
-----------------------------------------------------------
Robert Giles Group System Administrator
SPD/ARL:UT (512) 835-3077 � Fax (512) 490-4244
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs
Ian Kent
maintainerQuoted 19 lines · Robert Giles
Hi folks - I have our auto.master configuration stored in LDAP as an "nisMap", with "nisObjects" beneath it describing our various mount points. I'm trying to get the --ghost option to work from this LDAP-based auto.master, but am not having any luck (the mounts DO work without the --ghost option).
This is on a SuSE 10.1-based system, running autofs 4.1.4 and the 2.6.18 vanilla kernel (with SuSE 10.1
/proc/config.gz)...For example, one of my working nisObjects under the auto.master:
cn=/proj
nisMapEntry=ldap:nisMapName=auto.proj,ou=autofs,dc=fake...would report this line from "Configured Mount Points" after starting autofs (and also as an active mount point):
Quoted 8 lines
/usr/sbin/automount/proj ldap "nisMapName=auto.proj,ou=autofs,dc=fake"...
When I add the --ghost option to my nisMapEntry...
cn=/proj
nisMapEntry=ldap:nisMapName=auto.proj,ou=autofs,dc=fake --ghost
This should be correct but obviously not.
Quoted 6 lines
...I get this back when starting autofs (and the mount point is missing from the "active" mounts list):
/usr/sbin/automount/proj ldap:nisMapName=auto.proj,ou=autofs,dc=fake "--ghost"
And should end up like:
/usr/sbin/automount --ghost /proj ldap nisMapName=auto.proj,ou=autofs,dc=fake
Quoted 5 lines
The quotes appear to shift over to the "--ghost" option, and the ldap:nisMapName is no longer parsed correctly (ie: split on the ":" separator).
Quoted 8 lines
Seems like I'm using invalid syntax when specifying additional automount options via the nisMapEntry field... can anyone shed some light on what I'm doing wrong here?
(I've also tried adding the "--ghost" before the "ldap:nisMapName..." string, without success)
Thanks for any tips out there.
This has to be the init script or the ldap master map parser program. I'll have a look when I get a chance.
Ian
Ian Kent
maintainerQuoted 1 line · Robert Giles
Thanks for any tips out there.
Maybe a workaround would be to set DAEMONOPTIONS equal to "--ghost" in the startup configuration file. Wherever that may be on your distro.
This would add the option to all mounts.
Ian
Quoted 2 lines · Ian Kent
Maybe a workaround would be to set DAEMONOPTIONS equal to "--ghost" in the startup configuration file. Wherever that may be on your distro.
That worked perfectly, thanks for the tip.
(for future reference / folks searching through list archives...)
SuSE 10.1/etc/sysconfig/autofs:
AUTOFS_OPTIONS="--ghost"
(yeah, it'd be nice to have --ghost pushed out via LDAP, but this does the trick)
-----------------------------------------------------------
Robert Giles Group System Administrator
SPD/ARL:UT (512) 835-3077 � Fax (512) 490-4244
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs