Okay, I posted this a few days ago and I have a couple of updates.
Unfortunately, no solutions yet.  
I have tried autofs3 (kernel) with autofs-3.1.7-14 user tools, autofs4
(kernel) with autofs-4.0.0pre10 user tools, and autofs4 (kernel) with
autofs-3.1.7-14 user tools.  In each case the behavior is the same, autofs
does not mount Solaris filesystems unless I force it to use tcp mode for all
mounts.  This is important since our home directories live on the Solaris
servers, so no one logs in if autofs is broken.

A couple of details that may be relevant:
- autofs is compiled into the kernel, it is not a module
- kernel version is 2.4.12, nfs (v3), knfsd (v3), autofs (v4)
- base system is Red Hat 7.1
- NFS servers I'm trying to reach are Solaris 2.6 and Red Hat Linux 7.1
- Linux NFS servers are using NFSv3
- my automount maps are NIS maps from a Solaris server.  Because of this I
have had to change the autofs init script a bit... all references to the yp
map auto.master have been changed to auto_master.  I have a local
/etc/auto.master file that references some linux filesystems to be mounted.

As I stated in the original message, I can use the 'mount' command to access
the filesystems from Linux or Solaris with no problems.  I can mount using
tcp or udp mode with no difficulty.  However, when I try to mount the same
filesystems through autofs with default options the Linux filesystems are
mounted and Solaris filesystems are not.  If I force autofs to use tcp mode,
the Solaris filesystems are mounted, but the Linux filesystems are not.   It
seems that I can see one world or the other, not both... :-(  

I have worked around this problem by forcing tcp mode so that I can mount
the Solaris filesystems and using /etc/fstab to mount the Linux filesystems.
Ugly, but it works.  I can't understand why I need to force tcp mode though.
If it were a Solaris problem, why am I able to mount it manually?  Why does
it only fail with autofs?

Please help if you can, I have run out of ideas.  :-(

--aaron


> -----Original Message-----
> From: Ogden, Aaron A. 
> Sent: Wednesday, October 24, 2001 4:03 PM
> To:   '[EMAIL PROTECTED]'
> Cc:   Schulte, Rick; Waybright, Robert C.
> Subject:      autofs interoperability problems between linux and solaris
> 
> 
> Hello,
> I'm writing to report a problem with autofs in linux.  We have some
> machines running Red Hat 7.1 and we have configured them to join one of
> our NIS domains run by Solaris 2.6 servers.  Other Solaris 2.6 servers
> provide home directories and other filesystems via NFSv2 and v3.  The
> problem is that autofs (with default options) hangs when trying to
> auto-mount home directories off of the Solaris NFS servers, but it works
> fine when auto-mounting filesystems from linux NFS servers.
> 
> If I force autofs to use tcp mode (ie. localoptions='tcp' in
> /etc/init.d/autofs) I can automount filesystems off of the Solaris servers
> with no problem, but I can't automount filesystems from the linux NFS
> servers anymore.  This makes sense because Linux nfsd does not support TCP
> mode in NFSv3 yet. (any idea when that will happen?)
> 
> So basically I can have autofs working with Solaris, or working with
> Linux, but not both at the same time.  I don't think it's a problem
> with NFS itself, because I can mount filesystems manually without any
> problem using tcp or udp (see transcript below).  There seems to be some
> kind of problem with the way autofs is using mount option arguments.  I
> noticed that when I added options to local automaps, all options were
> cumulative... in other words, if I specify 'tcp' as a mount option in the
> autofs script, and then I specify 'udp' in /etc/auto.master, autofs
> happily uses both options even though they are mutually exclusive.  I
> tried this in an attempt to get all the systems working with each other;
> since I need the tcp option to be able to mount filesystems from Solaris,
> I thought I would specify 'udp' on the linux automount entries to override
> the global options, but because the options are cumulative it doesn't
> work.
> 
> Is there anything that can be done to get autofs working with both Solaris
> and linux?  Are there any patches that I could apply?  Configuration
> changes to be made?  At present I have implemented a work-around by
> mounting the linux filesystems in /etc/fstab, but I still have to force
> autofs to use the tcp option so that I can mount filesystems from Solaris
> NFS servers.  Since the Solaris servers support NFSv3 in either tcp or udp
> mode I'm not sure why this should be necessary, I only know that tcp mode
> is the only way for use to use autofs with the Solaris servers.
> 
> Please write back soon if you have any suggestions.  I would be happy to
> provide further information if that would help.  
> 
> Thanks in advance!
> Aaron Ogden
> Unix/Linux System Administrator
> 
> Note: the machine 'ray' mentioned below is a Solaris 2.6 NFS server.  As
> you can see, no problems mounting filesystems from it using either
> transport protocol.
> [root@dw1 /root]# mkdir /mnt/tmp/tcp
> [root@dw1 /root]# mkdir /mnt/tmp/udp
> [root@dw1 /root]# mount -t nfs -o nfsvers=3,tcp ray:/fb1 /mnt/tmp/tcp
> [root@dw1 /root]# mount -t nfs -o nfsvers=3,udp ray:/fb1 /mnt/tmp/udp
> [root@dw1 /root]# grep ray /etc/mtab
> ray:/fb1 /mnt/tmp/tcp nfs rw,nfsvers=3,tcp,addr=148.89.144.169 0 0
> ray:/fb1 /mnt/tmp/udp nfs rw,nfsvers=3,udp,addr=148.89.144.169 0 0
> 

Reply via email to