All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Automount with a local NFS export and a remote NFS export using the same mount path name over LDAP
@ 2006-11-21 18:58 Shawn Starr
  2006-11-21 19:13 ` jmoyer
  0 siblings, 1 reply; 10+ messages in thread
From: Shawn Starr @ 2006-11-21 18:58 UTC (permalink / raw)
  To: Jeff Moyer; +Cc: autofs

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" <sstarr@platform.com> 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

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Automount with a local NFS export and a remote NFS export using the same mount path name over LDAP
@ 2006-11-21 21:35 Shawn Starr
  0 siblings, 0 replies; 10+ messages in thread
From: Shawn Starr @ 2006-11-21 21:35 UTC (permalink / raw)
  To: jmoyer; +Cc: autofs


>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.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Automount with a local NFS export and a remote NFS export using the same mount path name over LDAP
@ 2006-11-21 20:12 Shawn Starr
  2006-11-21 20:37 ` jmoyer
  2006-11-22  9:18 ` Ian Kent
  0 siblings, 2 replies; 10+ messages in thread
From: Shawn Starr @ 2006-11-21 20:12 UTC (permalink / raw)
  To: jmoyer; +Cc: autofs

==> 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.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Automount with a local NFS export and a remote NFS export using the same mount path name over LDAP
@ 2006-11-17 22:27 Shawn Starr
  2006-11-20 15:27 ` Jeff Moyer
  0 siblings, 1 reply; 10+ messages in thread
From: Shawn Starr @ 2006-11-17 22:27 UTC (permalink / raw)
  To: autofs


[-- Attachment #1.1: Type: text/plain, Size: 1292 bytes --]

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
> 

[-- Attachment #1.2: Type: text/html, Size: 3294 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Automount with a local NFS export and a remote NFS export using the same mount path name over LDAP
@ 2006-11-17 20:45 Shawn Starr
  0 siblings, 0 replies; 10+ messages in thread
From: Shawn Starr @ 2006-11-17 20:45 UTC (permalink / raw)
  To: autofs


[-- Attachment #1.1: Type: text/plain, Size: 862 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 1920 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-11-22  9:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-21 18:58 Automount with a local NFS export and a remote NFS export using the same mount path name over LDAP Shawn Starr
2006-11-21 19:13 ` jmoyer
  -- strict thread matches above, loose matches on Subject: below --
2006-11-21 21:35 Shawn Starr
2006-11-21 20:12 Shawn Starr
2006-11-21 20:37 ` jmoyer
2006-11-22  9:18 ` Ian Kent
2006-11-17 22:27 Shawn Starr
2006-11-20 15:27 ` Jeff Moyer
2006-11-20 20:03   ` Shawn Starr
2006-11-17 20:45 Shawn Starr

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.