I have also tried the multi feature with autofs-5.0.2-7 on a RHEL 5
workstation.  The auto.master entry I used on RHEL 3 autofs-4.1.3--184
was:

/pa  multi:file /etc/auto.pa -- yp auto.pa

The /etc/auto.pa and the yp map auto.pa were single line entries:

*  server:/local/foo/&
and
*  server:/local/foo1/&
 
I modified the auto.master entry for autofs-5.0.2-7:

/pa multi file /etc/auto.pa -- yp auto.pa

And tried to use the same /etc/auto.pa and nis auto.pa.  This did not
work, it would not search the second entry.  If I added +auto.pa to the
/etc/auto.pa file, it would only search the yp map.  If I changed the
file /etc/auto.pa from using a wildcard to specifying each directory
things started working.  Is this the problem you are seeing?  Is there
anyway to allow wildcards in both maps?

Wayne

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lukas Kolbe
Sent: Wednesday, August 01, 2007 8:14 AM
To: Ian Kent
Cc: [email protected]
Subject: Re: [autofs] using both nfs3 and nfs4 in a single mount map

Hi Ian,

> > figaro:/users/xxx /homes/xxx nfs 
> > rw,nosuid,vers=3,rsize=32768,wsize=32768,hard,intr,proto=tcp,timeo=6
> > 00,retrans=2,sec=sys,addr=figaro 0 0 bongossi:/export/yyy /homes/yyy

> > nfs 
> > rw,nosuid,vers=3,rsize=1048576,wsize=1048576,hard,intr,proto=tcp,tim
> > eo=600,retrans=2,sec=sys,addr=bongossi 0 0
> > 
> > where figaro only exports nfs v3, bongossi exports both v4 and v3 
> > and we really would like to use v4.
> 
> Actually, a multi map entry in the master map would probably work.
> Initially I missed this out of version 5 (by accident) so you'll need 
> the patch on kernel.org that adds it. In fact I'd recommend applying 
> all the 5.0.2 patches.
> 
> So forget the last suggestion and patch and apply all the 5.0.2 
> patches on kernel.org and try a line in the master map like:

Ok, done that :).

> /homes  multi yp auto_homes
-fstype=nfs4,nosuid,grpid,nobrowse,proto=tcp,port=2049 -- \
>               yp auto_homes
-fstype=nfs,nosuid,grpid,nobrowse,proto=tcp,port=2049
> 
> and see if that gets what you need. The nfs4 one needs to be first 
> because the v4 servers provide both v4 and v3.

This only gives me the nfs4 mounts, it seems like the second part of the
multimount is not evaluated when the first one says "I don't have that
directory you asked me about":

[EMAIL PROTECTED]:/# ls -la /homes/yyy
ls: /homes/yyy: Permission denied

Which is correct and comes from bongossi,

[EMAIL PROTECTED]:/# ls -la /homes/xxx
ls: /homes/xxx: No such file or directory

which should also say permission denied and should come from figaro.

> Ian

--
Lukas


_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to