1827294 Members
2319 Online
109717 Solutions
New Discussion

Autofs

 
Meijer, H.J.
Occasional Contributor

Autofs

Hi,

We have the following setup:

lan0 1.1.1.1 netmask 255.192.0.0
lan0:1 1.2.1.1 netmask 255.192.0.0

in /etc/hosts
1.1.1.1 sysname1
1.2.1.1 sysname2

Setup of a second box:

/etc/auto_master
/autohome /etc/auto.home

/etc/auto.home
* sysname1:/export/autohome/&

This works fine, but now I would like to use the name: sysname2 instead of sysname1 in the /etc/auto.home directory and that doesn't seem to work. When trying to mount the directory manualy I get permission denied and when I use: /usr/sbin/showmount -e sysname2 I get:
showmount: sysname2: RPC: Miscellaneous tli error - bad flags

I hope there is someone out there who knows the solution to my puzzle.

Cheers,

Harm
4 REPLIES 4
Peter Kloetgen
Esteemed Contributor

Re: Autofs

Hi Harm,

did you take care to set the correct permission for the mounted file system? Be sure, that hostname.2 has the access rights to your file system!

Allways stay on the bright side of life!

Peter
I'm learning here as well as helping
Hartmut Lang
Trusted Contributor

Re: Autofs

Check is a NFS-Server is running on "sysname2" (also check /etc/rc.config.d/nfs.conf).
Check if "sysname2" allows access to the "home"-Filesystems to your NFS-client (/etc/exports, exportfs).

Hardy
Meijer, H.J.
Occasional Contributor

Re: Autofs

Thanks for your responses, but the answer is unfortunatley not there.

sysname1 and sysname2 is/are one and the same system, so if the NFS server is running on sysname1 I don't see howcome I can't access the same physical box with sysname2 (eg.
mount sysname1:/autohome (works fine!)
mount sysname2:/autohome (doesn't work!))
that is available on that same system. I would imagine that such thing is comen in a clustered environment (but then again who am I). Where a logical name is addressed to connect to a typical service.
Hartmut Lang
Trusted Contributor

Re: Autofs

Maybe you can get more information on starting rpc.mountd with higher trace-level.

- On your NFS-server kill the running rpc.mountd process
- /usr/sbin/rpc.mountd -l /var/adm/mountd.log -t2
- Check the file /var/adm/mountd.log

Hardy