We are using Red Hat 4.5 with autofs 4.1.3.  We are in a mixed
Solaris/Linux environment.  We have an automountMapName that needs to
support both NFS 3 and NFS4.  To complicate things, the solution must
work on both Solaris and Linux.  Here is what I have:

 

AUTO_MASTER:

dn: Automountkey=/-,automountMapName=auto_master,dc=foo,dc=bar

automountInformation: auto_direct

automountKey: /-

objectClass: top

objectClass: automount

 

 

dn: automountkey=/.hidden,automountMapName=auto_master,dc=foo,dc=bar

automountInformation: auto_hidden

automountKey: /.hidden

objectClass: top

objectClass: automount

 

 

Auto_hidden:

 

dn: automountkey=hiddenNfs4,automountMapName=auto_hidden,dc=foo,dc=bar

automountInformation:  -fstype=nfs4 server:/

automountKey: hiddenNfs4

objectClass: top

objectClass: automount

 

dn: automountkey=*,automountMapName=auto_hidden,dc=foo,dc=bar

automountInformation:  server2,server3,server4,server5:/vol/&

automountKey: hiddenMain

objectClass: top

objectClass: automount

 

 

 

>From above in * of auto_hidden this must be nfs3 as that is all that is
supported by the servers in that automount.  In the hiddenNfs4
automountkey this must be nfs4 as it has to cross a firewall.  

 

The * is working perfectly.  The problem is the hiddenNfs4 automount
map.

 

I can get it to work with Solaris with the following:

 

dn: automountkey=hiddenNfs4,automountMapName=auto_hidden,dc=foo,dc=bar

automountInformation:  -vers=4 server:/

automountKey: hiddenNfs4

objectClass: top

objectClass: automount

 

Linux will work this this:

dn: automountkey=hiddenNfs4,automountMapName=auto_hidden,dc=foo,dc=bar

automountInformation:  -fstype=nfs4 server:/

automountKey: hiddenNfs4

objectClass: top

objectClass: automount

 

Solaris will work with this, but fail for Linux

dn: automountkey=hiddenNfs4,automountMapName=auto_hidden,dc=foo,dc=bar

automountInformation:  -fstype=nfs4,-vers=4 server:/

automountKey: hiddenNfs4

objectClass: top

objectClass: automount

 

Solaris will also work with this:

dn: automountkey=hiddenNfs4,automountMapName=auto_hidden,dc=foo,dc=bar

automountInformation:   server:/

automountKey: hiddenNfs4

objectClass: top

objectClass: automount

 

Solaris looks like it tries nfs4 and then if that fails it will continue
to try 3, 2, etc....  

 

 

What I need is either an automountmap entry that works with both or a
way to have Linux mirror Solaris in trying NFS4 first and not requiring
any options.

 

 

Can anyone please help me out on this.  I have been stumped for a while
on this.

 

Thanks,

Daniel Lohin

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

Reply via email to