Hi All, I''ve been following the Autofs Tutorial and it works great, however I have one last thing to do to fully emulate in LDAP what I had in the auto.master file. How do I add autofs options like "--ghost"? http://directory.fedoraproject.org/wiki/Howto:Automount Any help would be greatly appreciated. Brian
I should clarify... My original looked like this: dn: cn=internal,ou=auto.software,dc=corp,dc=mxlogic,dc=com cn: internal objectClass: automount automountInformation: -soft,intr,nodev,tcp,ro itchy.corp.mxlogic.com:/var/qa Which worked but I want to use the --ghost option so I tried.... dn: cn=internal,ou=auto.software,dc=corp,dc=mxlogic,dc=com cn: internal objectClass: automount automountInformation: -soft,intr,nodev,tcp,ro itchy.corp.mxlogic.com:/var/qa --ghost Which broke it. Brian On Tue, 2009-01-13 at 16:09 -0700, Brian Kosick wrote:> Hi All, > > I''ve been following the Autofs Tutorial and it works great, however I > have one last thing to do to fully emulate in LDAP what I had in the > auto.master file. How do I add autofs options like "--ghost"? > > http://directory.fedoraproject.org/wiki/Howto:Automount > > Any help would be greatly appreciated. > Brian > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users
I found this, but I do not want to enable --ghost on all autofs maps, just the ones that I have configured in /software... http://www.mail-archive.com/autofs@linux.kernel.org/msg05452.html Brian On Tue, 2009-01-13 at 16:26 -0700, Brian Kosick wrote:> I should clarify... My original looked like this: > > dn: cn=internal,ou=auto.software,dc=corp,dc=mxlogic,dc=com > cn: internal > objectClass: automount > automountInformation: -soft,intr,nodev,tcp,ro > itchy.corp.mxlogic.com:/var/qa > > Which worked but I want to use the --ghost option so I tried.... > > dn: cn=internal,ou=auto.software,dc=corp,dc=mxlogic,dc=com > cn: internal > objectClass: automount > automountInformation: -soft,intr,nodev,tcp,ro > itchy.corp.mxlogic.com:/var/qa --ghost > > Which broke it. > Brian > > > > On Tue, 2009-01-13 at 16:09 -0700, Brian Kosick wrote: > > Hi All, > > > > I''ve been following the Autofs Tutorial and it works great, however I > > have one last thing to do to fully emulate in LDAP what I had in the > > auto.master file. How do I add autofs options like "--ghost"? > > > > http://directory.fedoraproject.org/wiki/Howto:Automount > > > > Any help would be greatly appreciated. > > Brian > > > > -- > > Fedora-directory-users mailing list > > Fedora-directory-users@redhat.com > > https://www.redhat.com/mailman/listinfo/fedora-directory-users > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users
On Tue, 13 Jan 2009, Brian Kosick wrote:> I should clarify... My original looked like this: > > dn: cn=internal,ou=auto.software,dc=corp,dc=mxlogic,dc=com > cn: internal > objectClass: automount > automountInformation: -soft,intr,nodev,tcp,ro > itchy.corp.mxlogic.com:/var/qa > > Which worked but I want to use the --ghost option so I tried.... > > dn: cn=internal,ou=auto.software,dc=corp,dc=mxlogic,dc=com > cn: internal > objectClass: automount > automountInformation: -soft,intr,nodev,tcp,ro > itchy.corp.mxlogic.com:/var/qa --ghost > > Which broke it. > BrianAs far as I know this is an unresolved bug in autofs''s LDAP support. There may be workarounds depending on which OS/distribution you''re on.
Hello all, A little more info.. I''m using the 75autofs.ldif schema.... I tried adding --ghost to both the end and the beginning of the automountinformation entry... automountInformation: -soft,intr,nodev,tcp,ro itchy.corp.mxlogic.com:/var/qa --ghost causes autofs not to mount at all... automountInformation: --ghost -soft,intr,nodev,tcp,ro itchy.corp.mxlogic.com:/var/qa Causes autofs to mount like so: itchy.qa.mxlogic.com:/var/qa on /software/internal type nfs (ro,nodev,-ghost,soft,intr,tcp,addr=10.70.0.185) -ghost should not be a NFS mount option.... Would using a different Schema help? There seems to be at least 2 schemas floating around the nis one and the 2307bis one. and one that has a automountKey entry (Though this one may be part of one of the other two) Thanks, Brian On Tue, 2009-01-13 at 16:37 -0700, Brian Kosick wrote:> I found this, but I do not want to enable --ghost on all autofs maps, > just the ones that I have configured in /software... > > http://www.mail-archive.com/autofs@linux.kernel.org/msg05452.html > > Brian > > On Tue, 2009-01-13 at 16:26 -0700, Brian Kosick wrote: > > I should clarify... My original looked like this: > > > > dn: cn=internal,ou=auto.software,dc=corp,dc=mxlogic,dc=com > > cn: internal > > objectClass: automount > > automountInformation: -soft,intr,nodev,tcp,ro > > itchy.corp.mxlogic.com:/var/qa > > > > Which worked but I want to use the --ghost option so I tried.... > > > > dn: cn=internal,ou=auto.software,dc=corp,dc=mxlogic,dc=com > > cn: internal > > objectClass: automount > > automountInformation: -soft,intr,nodev,tcp,ro > > itchy.corp.mxlogic.com:/var/qa --ghost > > > > Which broke it. > > Brian > > > > > > > > On Tue, 2009-01-13 at 16:09 -0700, Brian Kosick wrote: > > > Hi All, > > > > > > I''ve been following the Autofs Tutorial and it works great, however I > > > have one last thing to do to fully emulate in LDAP what I had in the > > > auto.master file. How do I add autofs options like "--ghost"? > > > > > > http://directory.fedoraproject.org/wiki/Howto:Automount > > > > > > Any help would be greatly appreciated. > > > Brian > > > > > > -- > > > Fedora-directory-users mailing list > > > Fedora-directory-users@redhat.com > > > https://www.redhat.com/mailman/listinfo/fedora-directory-users > > > > -- > > Fedora-directory-users mailing list > > Fedora-directory-users@redhat.com > > https://www.redhat.com/mailman/listinfo/fedora-directory-users > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users
Hrrrm thanks, I believe that it is an unresolved bug, based on the info regarding this issue that I''ve already found via google.... It looks like the autofs author back in 2006 came _real close_ to looking into this, but a workaround seemed to have put this issue back into the deep dark corners of his mind. In fact he probably has dreams that he forgot about something to this day because of it. I''m joining the list to see if I can''t get anyone to look into this.... Brian On Tue, 2009-01-13 at 17:27 -0700, Patrick Morris wrote:> On Tue, 13 Jan 2009, Brian Kosick wrote: > > > I should clarify... My original looked like this: > > > > dn: cn=internal,ou=auto.software,dc=corp,dc=mxlogic,dc=com > > cn: internal > > objectClass: automount > > automountInformation: -soft,intr,nodev,tcp,ro > > itchy.corp.mxlogic.com:/var/qa > > > > Which worked but I want to use the --ghost option so I tried.... > > > > dn: cn=internal,ou=auto.software,dc=corp,dc=mxlogic,dc=com > > cn: internal > > objectClass: automount > > automountInformation: -soft,intr,nodev,tcp,ro > > itchy.corp.mxlogic.com:/var/qa --ghost > > > > Which broke it. > > Brian > > As far as I know this is an unresolved bug in autofs''s LDAP support. > > There may be workarounds depending on which OS/distribution you''re on. > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users
Hi All, Sorry for the top post but I wanted to put the solution first... It turns out that I need to lay off the crack pipe a little bit. As soon as I added --ghost to the correct place everything started working fine. This was a little frustrating as everything that I found on the Net seemed to indicate that the --ghost option goes in the wrong place. Example: I WAS trying combinations of this, which doesn''t work. dn: cn=internal,ou=auto.software,dc=corp,dc=example,dc=com cn: internal objectClass: automount automountInformation: -soft,intr,nodev,tcp,ro nfs.example.com:/var/qa --ghost It works just fine when you add it here: dn: cn=/software,ou=auto.master,dc=corp,dc=example,dc=com objectClass: automount cn: /software automountInformation: ldap:qapxe.qa.mxlogic.com:ou=auto.software,dc=corp,dc=example,dc=com --ghost I apologize for wasting everyones time, Brian On Tue, 2009-01-13 at 17:53 -0700, Brian Kosick wrote:> Hrrrm thanks, > > I believe that it is an unresolved bug, based on the info regarding this > issue that I''ve already found via google.... > > It looks like the autofs author back in 2006 came _real close_ to > looking into this, but a workaround seemed to have put this issue back > into the deep dark corners of his mind. In fact he probably has dreams > that he forgot about something to this day because of it. > > I''m joining the list to see if I can''t get anyone to look into this.... > > Brian > > On Tue, 2009-01-13 at 17:27 -0700, Patrick Morris wrote: > > On Tue, 13 Jan 2009, Brian Kosick wrote: > > > > > I should clarify... My original looked like this: > > > > > > dn: cn=internal,ou=auto.software,dc=corp,dc=mxlogic,dc=com > > > cn: internal > > > objectClass: automount > > > automountInformation: -soft,intr,nodev,tcp,ro > > > itchy.corp.mxlogic.com:/var/qa > > > > > > Which worked but I want to use the --ghost option so I tried.... > > > > > > dn: cn=internal,ou=auto.software,dc=corp,dc=mxlogic,dc=com > > > cn: internal > > > objectClass: automount > > > automountInformation: -soft,intr,nodev,tcp,ro > > > itchy.corp.mxlogic.com:/var/qa --ghost > > > > > > Which broke it. > > > Brian > > > > As far as I know this is an unresolved bug in autofs''s LDAP support. > > > > There may be workarounds depending on which OS/distribution you''re on. > > > > -- > > Fedora-directory-users mailing list > > Fedora-directory-users@redhat.com > > https://www.redhat.com/mailman/listinfo/fedora-directory-users > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users
Brian Kosick wrote:> Hi All, > > Sorry for the top post but I wanted to put the solution first... > It turns out that I need to lay off the crack pipe a little bit. As > soon as I added --ghost to the correct place everything started working > fine. This was a little frustrating as everything that I found on the > Net seemed to indicate that the --ghost option goes in the wrong place. > > Example: I WAS trying combinations of this, which doesn''t work. > > dn: cn=internal,ou=auto.software,dc=corp,dc=example,dc=com > cn: internal > objectClass: automount > automountInformation: -soft,intr,nodev,tcp,ro nfs.example.com:/var/qa > --ghost > > It works just fine when you add it here: > > dn: cn=/software,ou=auto.master,dc=corp,dc=example,dc=com > objectClass: automount > cn: /software > automountInformation: > ldap:qapxe.qa.mxlogic.com:ou=auto.software,dc=corp,dc=example,dc=com > --ghost > > I apologize for wasting everyones time,Apologize!? Heck, thanks for tracking this down! Do you know if this works without the ldap syntax in automountInformation? E.g. can you use just: automountInformation: auto.software --ghost cheers rob> Brian > > On Tue, 2009-01-13 at 17:53 -0700, Brian Kosick wrote: >> Hrrrm thanks, >> >> I believe that it is an unresolved bug, based on the info regarding this >> issue that I''ve already found via google.... >> >> It looks like the autofs author back in 2006 came _real close_ to >> looking into this, but a workaround seemed to have put this issue back >> into the deep dark corners of his mind. In fact he probably has dreams >> that he forgot about something to this day because of it. >> >> I''m joining the list to see if I can''t get anyone to look into this.... >> >> Brian >> >> On Tue, 2009-01-13 at 17:27 -0700, Patrick Morris wrote: >>> On Tue, 13 Jan 2009, Brian Kosick wrote: >>> >>>> I should clarify... My original looked like this: >>>> >>>> dn: cn=internal,ou=auto.software,dc=corp,dc=mxlogic,dc=com >>>> cn: internal >>>> objectClass: automount >>>> automountInformation: -soft,intr,nodev,tcp,ro >>>> itchy.corp.mxlogic.com:/var/qa >>>> >>>> Which worked but I want to use the --ghost option so I tried.... >>>> >>>> dn: cn=internal,ou=auto.software,dc=corp,dc=mxlogic,dc=com >>>> cn: internal >>>> objectClass: automount >>>> automountInformation: -soft,intr,nodev,tcp,ro >>>> itchy.corp.mxlogic.com:/var/qa --ghost >>>> >>>> Which broke it. >>>> Brian >>> As far as I know this is an unresolved bug in autofs''s LDAP support. >>> >>> There may be workarounds depending on which OS/distribution you''re on. >>> >>> -- >>> Fedora-directory-users mailing list >>> Fedora-directory-users@redhat.com >>> https://www.redhat.com/mailman/listinfo/fedora-directory-users >> -- >> Fedora-directory-users mailing list >> Fedora-directory-users@redhat.com >> https://www.redhat.com/mailman/listinfo/fedora-directory-users > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users
On Wed, 2009-01-14 at 13:30 -0700, Rob Crittenden wrote:> Brian Kosick wrote: > > Hi All, > > > > Sorry for the top post but I wanted to put the solution first... > > It turns out that I need to lay off the crack pipe a little bit. As > > soon as I added --ghost to the correct place everything started working > > fine. This was a little frustrating as everything that I found on the > > Net seemed to indicate that the --ghost option goes in the wrong place. > > > > Example: I WAS trying combinations of this, which doesn''t work. > > > > dn: cn=internal,ou=auto.software,dc=corp,dc=example,dc=com > > cn: internal > > objectClass: automount > > automountInformation: -soft,intr,nodev,tcp,ro nfs.example.com:/var/qa > > --ghost > > > > It works just fine when you add it here: > > > > dn: cn=/software,ou=auto.master,dc=corp,dc=example,dc=com > > objectClass: automount > > cn: /software > > automountInformation: > > ldap:qapxe.qa.mxlogic.com:ou=auto.software,dc=corp,dc=example,dc=com > > --ghost > > > > I apologize for wasting everyones time, > > Apologize!? Heck, thanks for tracking this down! > > Do you know if this works without the ldap syntax in > automountInformation? E.g. can you use just: > > automountInformation: auto.software --ghost > > cheers > > rob<snip> Hrrm I don''t know. From my understanding of how it works, wouldn''t that be using LDAP to point back to the local /etc/auto.software file? Or just break it entirely? I can probably give it a try a little later... Brian