From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Shawn Starr" Subject: Automount with a local NFS export and a remote NFS export using the same mount path name over LDAP Date: Fri, 17 Nov 2006 15:45:45 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8436882074869341777==" Return-path: content-class: urn:content-classes:message List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: autofs@linux.kernel.org This is a multi-part message in MIME format. --===============8436882074869341777== content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C70A89.5B01FC04" This is a multi-part message in MIME format. ------_=_NextPart_001_01C70A89.5B01FC04 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi,=20 Does Automount v4 support the ability do the following: 1) A local machine with NFS export /home mounted with a local = /etc/auto.home map. 2) a external machine with NFS export /home and using LDAP to export a = auto.home map to automount. If I set nsswitch.conf on the local machine to: automount: files ldap. = Automount ignores LDAP mounts and only mounts the local files.=20 If I flip the order and use 'ldap files' automount only mounts the = remote NFS /home and clobbers the local NFS /home map. Yet if I try to = pass more than one auto.home mapping via LDAP to automount it ignores = them. If Automount 4 can't do this does version 5? :) Thanks,=20 -- Shawn Starr Software Developer, Open Source Grid Development Center (OSGDC) Platform Computing 3760 14th Avenue Markham, ON L3R3T7 direct: 905.948.4229 http://www.platform.com ------_=_NextPart_001_01C70A89.5B01FC04 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Automount with a local NFS export and a remote NFS export using = the same mount path name over LDAP

Hi,

Does Automount v4 support the ability = do the following:


1) A local machine with NFS export = /home mounted with a local /etc/auto.home map.

2) a external machine with NFS export = /home and using LDAP to export a auto.home map to automount.

If I set nsswitch.conf on the local = machine to:  automount: files ldap. Automount ignores LDAP mounts = and only mounts the local files.

If I flip the order and use 'ldap = files' automount only mounts the remote NFS /home and clobbers the local = NFS /home map. Yet if I try to pass more than one auto.home mapping via = LDAP to automount it ignores them.

If Automount 4 can't do this does = version 5? :)

Thanks,
--
Shawn Starr
Software Developer, Open Source = Grid Development Center (OSGDC)
Platform = Computing
3760 14th Avenue
Markham, ON L3R3T7
direct: 905.948.4229
http://www.platform.com

------_=_NextPart_001_01C70A89.5B01FC04-- --===============8436882074869341777== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ autofs mailing list autofs@linux.kernel.org http://linux.kernel.org/mailman/listinfo/autofs --===============8436882074869341777==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Shawn Starr" Subject: Re: Automount with a local NFS export and a remote NFS export using the same mount path name over LDAP Date: Fri, 17 Nov 2006 17:27:35 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5138934521697432919==" Return-path: content-class: urn:content-classes:message List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: autofs@linux.kernel.org This is a multi-part message in MIME format. --===============5138934521697432919== content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C70A97.949C01E0" This is a multi-part message in MIME format. ------_=_NextPart_001_01C70A97.949C01E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Nevermind, I found an ugly workaround. Just add another entry to auto.home in the LDAP config to map back to = the local machine. > -----Original Message----- > From: Shawn Starr =20 > Sent: Friday, November 17, 2006 3:46 PM > To: 'autofs@linux.kernel.org' > Subject: Automount with a local NFS export and a remote NFS export = using the same mount path name over LDAP >=20 > Hi,=20 >=20 > Does Automount v4 support the ability do the following: >=20 >=20 > 1) A local machine with NFS export /home mounted with a local = /etc/auto.home map. >=20 > 2) a external machine with NFS export /home and using LDAP to export a = auto.home map to automount. >=20 > If I set nsswitch.conf on the local machine to: automount: files = ldap. Automount ignores LDAP mounts and only mounts the local files.=20 >=20 > If I flip the order and use 'ldap files' automount only mounts the = remote NFS /home and clobbers the local NFS /home map. Yet if I try to = pass more than one auto.home mapping via LDAP to automount it ignores = them. >=20 > If Automount 4 can't do this does version 5? :) >=20 > Thanks,=20 > -- > Shawn Starr > Software Developer, Open Source Grid Development Center (OSGDC) > Platform Computing > 3760 14th Avenue > Markham, ON L3R3T7 > direct: 905.948.4229 > http://www.platform.com >=20 ------_=_NextPart_001_01C70A97.949C01E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: Automount with a local NFS export and a remote NFS export = using the same mount path name over LDAP

Nevermind, I found an = ugly workaround.

Just add another = entry to auto.home in the LDAP config to map back to the local = machine.

     -----Original = Message-----
    From: =   Shawn Starr  =
    Sent:   Friday, November 17, 2006 3:46 PM
    To:     'autofs@linux.kernel.org'
    Subject:       = Automount with a local NFS export = and a remote NFS export using the same mount path name over = LDAP

    Hi,

    Does Automount v4 = support the ability do the following:


    1) A local machine = with NFS export /home mounted with a local /etc/auto.home = map.

    2) a external = machine with NFS export /home and using LDAP to export a auto.home map = to automount.

    If I set = nsswitch.conf on the local machine to:  automount: files ldap. = Automount ignores LDAP mounts and only mounts the local files. =

    If I flip the = order and use 'ldap files' automount only mounts the remote NFS /home = and clobbers the local NFS /home map. Yet if I try to pass more than one = auto.home mapping via LDAP to automount it ignores = them.

    If Automount 4 = can't do this does version 5? :)

    Thanks, =
    --
    Shawn Starr
    Software Developer, Open Source = Grid Development Center (OSGDC)
    Platform = Computing
    3760 14th Avenue
    Markham, ON L3R3T7
    direct: 905.948.4229
    http://www.platform.com

------_=_NextPart_001_01C70A97.949C01E0-- --===============5138934521697432919== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ autofs mailing list autofs@linux.kernel.org http://linux.kernel.org/mailman/listinfo/autofs --===============5138934521697432919==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Moyer Subject: Re: Automount with a local NFS export and a remote NFS export using the same mount path name over LDAP Date: Mon, 20 Nov 2006 10:27:36 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: (Shawn Starr's message of "Fri, 17 Nov 2006 17:27:35 -0500") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: Shawn Starr Cc: autofs@linux.kernel.org For some reason, I can't find your original post in my mailbox... ==> On Fri, 17 Nov 2006 17:27:35 -0500, "Shawn Starr" said: Shawn> Nevermind, I found an ugly workaround. Just add another entry Shawn> to auto.home in the LDAP config to map back to the local Shawn> machine. Shawn> > -----Original Message----- > From: Shawn Starr > Sent: Shawn> Friday, November 17, 2006 3:46 PM > To: Shawn> 'autofs@linux.kernel.org' > Subject: Automount with a local NFS Shawn> export and a remote NFS export using the same mount path name Shawn> over LDAP Shawn> > Shawn> > Hi, Shawn> > Shawn> > Does Automount v4 support the ability do the following: Shawn> > Shawn> > Shawn> > 1) A local machine with NFS export /home mounted with a local Shawn> /etc/auto.home map. Shawn> > Shawn> > 2) a external machine with NFS export /home and using LDAP to Shawn> export a auto.home map to automount. Shawn> > Shawn> > If I set nsswitch.conf on the local machine to: automount: Shawn> files ldap. Automount ignores LDAP mounts and only mounts the Shawn> local files. Shawn> > Shawn> > If I flip the order and use 'ldap files' automount only Shawn> mounts the remote NFS /home and clobbers the local NFS /home Shawn> map. Yet if I try to pass more than one auto.home mapping via Shawn> LDAP to automount it ignores them. For the RHEL variants, add this to your /etc/sysconfig/autofs ONE_AUTO_MASTER=1 Shawn> > If Automount 4 can't do this does version 5? :) Yes, but in the v5 case no special settings are necessary. -Jeff From mboxrd@z Thu Jan 1 00:00:00 1970 From: jmoyer@redhat.com Subject: Re: Automount with a local NFS export and a remote NFS export using the same mount path name over LDAP Date: Tue, 21 Nov 2006 14:13:52 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: (Shawn Starr's message of "Tue, 21 Nov 2006 13:58:53 -0500") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: Shawn Starr Cc: autofs@linux.kernel.org ==> Regarding RE: [autofs] Automount with a local NFS export and a remote NFS export using the same mount path name over LDAP; "Shawn Starr" adds: sstarr> Hi Jeff, This didn't work on RHEL4 U4. sstarr> It again skipped mounting the remote LDAP NFS map. sstarr> It is clobbering the two NFS exports sharing /home sstarr> I noticed you made a patch this month for LDAP and automount, that sstarr> seems to be what I'm trying to do. sstarr> basically, If my nssswitch.conf has: automount: files ldap sstarr> Automount should respect *both* file and LDAP automounts. Right now sstarr> only one is expected Even If I use the option you mentioned below. I re-read your original problem statement, and I am officially confused. What, exactly, are you trying to accomplish? Do you want to merge the contents of two master maps? If so, set ONE_AUTO_MASTER=0. Do you want to merge the contents of two indirect maps? If so, try reading up on multi-maps. This allows one to merge the contents of two or more maps, potentially from different sources. If neither of these is what you are trying to do, then please provide a better explanation of the problem. Post your maps, and give concrete examples with machine names, exports, and intended use. -Jeff From mboxrd@z Thu Jan 1 00:00:00 1970 From: jmoyer@redhat.com Subject: Re: Automount with a local NFS export and a remote NFS export using the same mount path name over LDAP Date: Tue, 21 Nov 2006 15:37:14 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: (Shawn Starr's message of "Tue, 21 Nov 2006 15:12:46 -0500") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: Shawn Starr Cc: autofs@linux.kernel.org ==> Regarding RE: [autofs] Automount with a local NFS export and a remote NFS export using the same mount path name over LDAP; "Shawn Starr" adds: ==> Regarding RE: [autofs] Automount with a local NFS export and a remote NFS export using the same mount path name over LDAP; "Shawn Starr" >> I re-read your original problem statement, and I am officially confused. >> What, exactly, are you trying to accomplish? >> Do you want to merge the contents of two master maps? If so, set >> ONE_AUTO_MASTER=0. >> Do you want to merge the contents of two indirect maps? If so, try reading >> up on multi-maps. This allows one to merge the contents of two or more >> maps, potentially from different sources. >> If neither of these is what you are trying to do, then please provide a >> better explanation of the problem. Post your maps, and give concrete >> examples with machine names, exports, and intended use. >> -Jeff sstarr> Hi Jeff, Here's what I'm trying to do: sstarr> On a local machine (10.1.1.75) I have the following configuration: sstarr> /etc/exports: sstarr> ========= sstarr> /export 10.0.0.0/255.0.0.0(rw,async) sstarr> /etc/auto.home: sstarr> =========== sstarr> install 10.1.1.75:/export/home/& sstarr> +auto.home sstarr> /etc/auto.master: sstarr> ============ sstarr> /home /etc/auto.home --ghost sstarr> On the local machine, /home is NFS exported so: /home/install is sstarr> visible when using automount. sstarr> On a remote machine (somehostname.platform.com) I have the sstarr> following configuration: sstarr> /etc/exports: sstarr> ========= sstarr> /home *(rw,async) sstarr> auto.master: LDAP map sstarr> =============== sstarr> dn: ou=autofs,dc=platform,dc=com sstarr> objectClass: top sstarr> objectClass: organizationalUnit sstarr> ou: autofs sstarr> dn: ou=auto.master,ou=autofs,dc=platform,dc=com sstarr> objectClass: top sstarr> objectCLass: automountMap sstarr> ou: auto.master sstarr> dn: cn=/home,ou=auto.master,ou=autofs,dc=platform,dc=com sstarr> objectClass: top sstarr> objectClass: automount sstarr> cn: /home sstarr> automountInformation: ldap:ou=auto.home,ou=autofs,dc=platform,dc=com sstarr> auto.home: LDAP map sstarr> =============== sstarr> dn: ou=auto.home,ou=autofs,dc=platform,dc=com sstarr> objectClass: top sstarr> objectClass: automountMap sstarr> ou: auto.home sstarr> dn: cn=sstarr,ou=auto.home,ou=autofs,dc=platform,dc=com sstarr> objectClass: top sstarr> objectClass: automount sstarr> cn: sstarr sstarr> automountInformation: -fstype=nfs,hard,intr,nodev,nosuid somehostname.platform.com:/home:& is this supposed to be /home/& ? sstarr> The goal is to be able to share /home from *both* NFS exports and sstarr> combine them like NIS does (with +auto.home). sstarr> So on the local machine: if I do cd /home/install or cd sstarr> /home/sstarr I can see both as if they were one mounted point. sstarr> I can do this if I add the following to my LDAP maps: sstarr> dn: cn=install,ou=auto.home,ou=autofs,dc=platform,dc=com sstarr> objectClass: top sstarr> objectClass: automount sstarr> cn: install sstarr> automountInformation: 10.1.1.75:/export/home/install sstarr> Which basically does what I'm trying to do, but its a hack since I sstarr> have to use an LDAP entry instead of using the local 10.1.1.75 sstarr> /etc/auto.home mapping sstarr> On the 10.1.1.75 local machine I have the /etc/nsswitch.conf as: sstarr> automount: files ldap sstarr> If it finds valid automounts in the 10.1.1.75's local sstarr> /etc/auto.master it ignores the LDAP maps so I only get one sstarr> automount set up. This isn't the behavour I'm looking for. I need a sstarr> way to tell automount that even though it found valid maps in sstarr> /etc/auto.master, look for additional maps from LDAP also. sstarr> I hope this clears things up :-) Ok, so you basically want included map support. You are right, I did post a patch to implement this, but it is quite a beast, so I wouldn't expect it to get released straight away (these things require gobs of testing). In the interim, you can use something like the following local master map entry: /etc/auto.master: /home multi:file /etc/auto.home -- ldap auto.home I think that will do what you need. If not, I'll give it another try. ;) -Jeff From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Shawn Starr" Subject: Re: Automount with a local NFS export and a remote NFS export using the same mount path name over LDAP Date: Mon, 20 Nov 2006 15:03:18 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1395968908417933818==" Return-path: content-class: urn:content-classes:message List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: Jeff Moyer Cc: autofs@linux.kernel.org This is a multi-part message in MIME format. --===============1395968908417933818== content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C70CDE.EBBD848C" This is a multi-part message in MIME format. ------_=_NextPart_001_01C70CDE.EBBD848C Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable =3D=3D> On Mon, 20 Nov 2006 10:27 AM, "Jeff Moyer" said: >For some reason, I can't find your original post in my mailbox... > >For the RHEL variants, add this to your /etc/sysconfig/autofs > >ONE_AUTO_MASTER=3D1 > >Shawn> > If Automount 4 can't do this does version 5? :) > >Yes, but in the v5 case no special settings are necessary. > >-Jeff Yes, I am using RHEL4 at present. I just found the errata page this = should solve the issue. Thank you! Shawn. ------_=_NextPart_001_01C70CDE.EBBD848C Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable RE: [autofs] Automount with a local NFS export and a remote NFS = export using the same mount path name over LDAP

=3D=3D> On Mon, 20 Nov 2006 10:27 AM, "Jeff = Moyer" said:

>For some reason, I can't find your original post in my = mailbox...
>
>For the RHEL variants, add this to your /etc/sysconfig/autofs
>
>ONE_AUTO_MASTER=3D1
>
>Shawn> > If Automount 4 can't do this does version 5? :)
>
>Yes, but in the v5 case no special settings are necessary.
>
>-Jeff

Yes, I am using RHEL4 at present. I just found the errata page this = should solve the issue.

Thank you!
Shawn.

------_=_NextPart_001_01C70CDE.EBBD848C-- --===============1395968908417933818== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ autofs mailing list autofs@linux.kernel.org http://linux.kernel.org/mailman/listinfo/autofs --===============1395968908417933818==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Shawn Starr" Subject: Re: Automount with a local NFS export and a remote NFS export using the same mount path name over LDAP Date: Tue, 21 Nov 2006 13:58:53 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: content-class: urn:content-classes:message List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: Jeff Moyer Cc: autofs@linux.kernel.org Hi Jeff, This didn't work on RHEL4 U4. It again skipped mounting the remote LDAP NFS map. It is clobbering the two NFS exports sharing /home I noticed you made a patch this month for LDAP and automount, that seems to be what I'm trying to do. basically, If my nssswitch.conf has: automount: files ldap Automount should respect *both* file and LDAP automounts. Right now only one is expected Even If I use the option you mentioned below. Thanks, Shawn. -----Original Message----- From: Jeff Moyer [mailto:jmoyer@redhat.com] Sent: Monday, November 20, 2006 10:28 AM To: Shawn Starr Cc: autofs@linux.kernel.org Subject: Re: [autofs] Automount with a local NFS export and a remote NFS export using the same mount path name over LDAP For some reason, I can't find your original post in my mailbox... ==> On Fri, 17 Nov 2006 17:27:35 -0500, "Shawn Starr" said: Shawn> Nevermind, I found an ugly workaround. Just add another entry Shawn> to auto.home in the LDAP config to map back to the local Shawn> machine. Shawn> > -----Original Message----- > From: Shawn Starr > Sent: Shawn> Friday, November 17, 2006 3:46 PM > To: Shawn> 'autofs@linux.kernel.org' > Subject: Automount with a local NFS Shawn> export and a remote NFS export using the same mount path name Shawn> over LDAP Shawn> > Shawn> > Hi, Shawn> > Shawn> > Does Automount v4 support the ability do the following: Shawn> > Shawn> > Shawn> > 1) A local machine with NFS export /home mounted with a local Shawn> /etc/auto.home map. Shawn> > Shawn> > 2) a external machine with NFS export /home and using LDAP to Shawn> export a auto.home map to automount. Shawn> > Shawn> > If I set nsswitch.conf on the local machine to: automount: Shawn> files ldap. Automount ignores LDAP mounts and only mounts the Shawn> local files. Shawn> > Shawn> > If I flip the order and use 'ldap files' automount only Shawn> mounts the remote NFS /home and clobbers the local NFS /home Shawn> map. Yet if I try to pass more than one auto.home mapping via Shawn> LDAP to automount it ignores them. For the RHEL variants, add this to your /etc/sysconfig/autofs ONE_AUTO_MASTER=1 Shawn> > If Automount 4 can't do this does version 5? :) Yes, but in the v5 case no special settings are necessary. -Jeff From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Shawn Starr" Subject: Re: Automount with a local NFS export and a remote NFS export using the same mount path name over LDAP Date: Tue, 21 Nov 2006 16:35:18 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: content-class: urn:content-classes:message List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: jmoyer@redhat.com Cc: autofs@linux.kernel.org >Ok, so you basically want included map support. You are right, I did post >a patch to implement this, but it is quite a beast, so I wouldn't expect it >to get released straight away (these things require gobs of testing). >In the interim, you can use something like the following local master map >entry: >/etc/auto.master: >/home multi:file /etc/auto.home -- ldap auto.home >I think that will do what you need. If not, I'll give it another try. ;) >-Jeff Nov 21 16:31:04 rocksfe1 automount[10044]: nsswitch: couldn't find map auto.home Nov 21 16:31:04 rocksfe1 automount[10044]: lookup(ldap): query failed for (objectclass=nisObject) Nov 21 16:31:04 rocksfe1 automount[10044]: lookup(ldap): query failed for (objectclass=automount) It seems it can't find what the automount is, yet I'm not sure why its not able to find the automount maps (ignoring NIS objects which I don't have) My nsswitch.conf has files only since multi:file would also check a remote ldap for its auto.home LDAP entry. # ldapsearch -x "(&(objectclass=automount))" # extended LDIF # # LDAPv3 # base <> with scope sub # filter: (&(objectclass=automount)) # requesting: ALL # # /home, auto.master, autofs, platform.com dn: cn=/home,ou=auto.master,ou=autofs,dc=platform,dc=com objectClass: top objectClass: automount cn: /home automountInformation: ldap:ou=auto.home,ou=autofs,dc=platform,dc=com # sstarr, auto.home, autofs, platform.com dn: cn=sstarr,ou=auto.home,ou=autofs,dc=platform,dc=com objectClass: top objectClass: automount cn: sstarr automountInformation: -fstype=nfs,hard,intr,nodev,nosuid somehostname.lsf.platform .com:/home:& # search result search: 2 result: 0 Success # numResponses: 3 # numEntries: 2 Thanks, Shawn. From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Shawn Starr" Subject: Re: Automount with a local NFS export and a remote NFS export using the same mount path name over LDAP Date: Tue, 21 Nov 2006 15:12:46 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: content-class: urn:content-classes:message List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: jmoyer@redhat.com Cc: autofs@linux.kernel.org ==> Regarding RE: [autofs] Automount with a local NFS export and a remote NFS export using the same mount path name over LDAP; "Shawn Starr" >I re-read your original problem statement, and I am officially confused. >What, exactly, are you trying to accomplish? >Do you want to merge the contents of two master maps? If so, set >ONE_AUTO_MASTER=0. >Do you want to merge the contents of two indirect maps? If so, try reading >up on multi-maps. This allows one to merge the contents of two or more >maps, potentially from different sources. >If neither of these is what you are trying to do, then please provide a >better explanation of the problem. Post your maps, and give concrete >examples with machine names, exports, and intended use. >-Jeff Hi Jeff, Here's what I'm trying to do: On a local machine (10.1.1.75) I have the following configuration: /etc/exports: ========= /export 10.0.0.0/255.0.0.0(rw,async) /etc/auto.home: =========== install 10.1.1.75:/export/home/& +auto.home /etc/auto.master: ============ /home /etc/auto.home --ghost On the local machine, /home is NFS exported so: /home/install is visible when using automount. On a remote machine (somehostname.platform.com) I have the following configuration: /etc/exports: ========= /home *(rw,async) auto.master: LDAP map =============== dn: ou=autofs,dc=platform,dc=com objectClass: top objectClass: organizationalUnit ou: autofs dn: ou=auto.master,ou=autofs,dc=platform,dc=com objectClass: top objectCLass: automountMap ou: auto.master dn: cn=/home,ou=auto.master,ou=autofs,dc=platform,dc=com objectClass: top objectClass: automount cn: /home automountInformation: ldap:ou=auto.home,ou=autofs,dc=platform,dc=com auto.home: LDAP map =============== dn: ou=auto.home,ou=autofs,dc=platform,dc=com objectClass: top objectClass: automountMap ou: auto.home dn: cn=sstarr,ou=auto.home,ou=autofs,dc=platform,dc=com objectClass: top objectClass: automount cn: sstarr automountInformation: -fstype=nfs,hard,intr,nodev,nosuid somehostname.platform.com:/home:& The goal is to be able to share /home from *both* NFS exports and combine them like NIS does (with +auto.home). So on the local machine: if I do cd /home/install or cd /home/sstarr I can see both as if they were one mounted point. I can do this if I add the following to my LDAP maps: dn: cn=install,ou=auto.home,ou=autofs,dc=platform,dc=com objectClass: top objectClass: automount cn: install automountInformation: 10.1.1.75:/export/home/install Which basically does what I'm trying to do, but its a hack since I have to use an LDAP entry instead of using the local 10.1.1.75 /etc/auto.home mapping On the 10.1.1.75 local machine I have the /etc/nsswitch.conf as: automount: files ldap If it finds valid automounts in the 10.1.1.75's local /etc/auto.master it ignores the LDAP maps so I only get one automount set up. This isn't the behavour I'm looking for. I need a way to tell automount that even though it found valid maps in /etc/auto.master, look for additional maps from LDAP also. I hope this clears things up :-) Thanks, Shawn. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Kent Subject: Re: Automount with a local NFS export and a remote NFS export using the same mount path name over LDAP Date: Wed, 22 Nov 2006 17:18:48 +0800 Message-ID: <1164187128.9969.7.camel@localhost> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: Shawn Starr Cc: autofs@linux.kernel.org On Tue, 2006-11-21 at 15:12 -0500, Shawn Starr wrote: > Hi Jeff, Here's what I'm trying to do: > > On a local machine (10.1.1.75) I have the following configuration: > > /etc/exports: > ========= > /export 10.0.0.0/255.0.0.0(rw,async) > > > /etc/auto.home: > =========== > > install 10.1.1.75:/export/home/& > +auto.home > > /etc/auto.master: > ============ > /home /etc/auto.home --ghost > > On the local machine, /home is NFS exported so: /home/install is visible when using automount. > > > On a remote machine (somehostname.platform.com) I have the following configuration: > > /etc/exports: > ========= > /home *(rw,async) > > > auto.master: LDAP map > =============== > > dn: ou=autofs,dc=platform,dc=com > objectClass: top > objectClass: organizationalUnit > ou: autofs > > dn: ou=auto.master,ou=autofs,dc=platform,dc=com > objectClass: top > objectCLass: automountMap > ou: auto.master > > dn: cn=/home,ou=auto.master,ou=autofs,dc=platform,dc=com > objectClass: top > objectClass: automount > cn: /home > automountInformation: ldap:ou=auto.home,ou=autofs,dc=platform,dc=com > > auto.home: LDAP map > =============== > > dn: ou=auto.home,ou=autofs,dc=platform,dc=com > objectClass: top > objectClass: automountMap > ou: auto.home > > dn: cn=sstarr,ou=auto.home,ou=autofs,dc=platform,dc=com > objectClass: top > objectClass: automount > cn: sstarr > automountInformation: -fstype=nfs,hard,intr,nodev,nosuid somehostname.platform.com:/home:& -----------------------------------------------------------------------------------------^ What's this? I don't understand what your trying to do either! Tell me, on "remote machine" how should the exported /home filesystem be accessible after an autofs filesystem is mounted over the top of it. Or am I missing something in this description. Ian