All of lore.kernel.org
 help / color / mirror / Atom feed
* Help on nfs4 interpolarity between Solaris 10 and Linux
@ 2008-12-17 15:42 Lohin, Daniel
  2008-12-23  6:18 ` Ian Kent
  0 siblings, 1 reply; 3+ messages in thread
From: Lohin, Daniel @ 2008-12-17 15:42 UTC (permalink / raw)
  To: autofs


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

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


[-- Attachment #1.2: Type: text/html, Size: 9447 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] 3+ messages in thread

end of thread, other threads:[~2008-12-23  7:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-17 15:42 Help on nfs4 interpolarity between Solaris 10 and Linux Lohin, Daniel
2008-12-23  6:18 ` Ian Kent
2008-12-23  7:45   ` Ondrej Valousek

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.