Operating System - HP-UX
1753665 Members
5547 Online
108798 Solutions
New Discussion юеВ

Re: Autofs is not working on HP-UX 11.31

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

Autofs is not working on HP-UX 11.31

Hi All,

I would like to configure autofs on HP-UX 11.31.

I would like auto mount server1:/var to /data of client1.

/var of server1 has shared in /etc/dfs/dfstab.

I have done following configurations in client1

1)#more /etc/auto_master

/net -hosts -nosuid,soft,nobrowse
/- /etc/auto_direct


2)# more /etc/auto_direct

/data -nosuid server1:/var

3)# /sbin/init.d/autofs stop
# /sbin/init.d/autofs start

4)# cd /data

Here the system is hanging.

Are the above stpes correct?

How to solve this issue?



9 REPLIES 9
OldSchool
Honored Contributor

Re: Autofs is not working on HP-UX 11.31

what happens if you attempt to manually mount server11:/var someplace, does it hang or succeed?

If hangs, the problem is most likely with server1. Did share it out after updating the dfstab?
Steven E. Protter
Exalted Contributor

Re: Autofs is not working on HP-UX 11.31

Shalom,

Check permissions on the configuration files for autofs.

It has been known to cause problems on this platform and OS if execute (x) permissions are on the auto* files.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Albert Smith_1
Regular Advisor

Re: Autofs is not working on HP-UX 11.31

Did you happen to start/restart the nfs services on the client?

Also is NFS started on the source machine?
senthil_kumar_1
Super Advisor

Re: Autofs is not working on HP-UX 11.31

Hi All,

I am able to mount manually.

Is above configurations are correct?
Pete Randall
Outstanding Contributor

Re: Autofs is not working on HP-UX 11.31

> 4)# cd /data

Try "cd /net/data" instead. Also take a look at bdf output - you should be able to see /data mounted.


Pete

Pete
senthil_kumar_1
Super Advisor

Re: Autofs is not working on HP-UX 11.31

Hi Pete,

I am able to access "cd /net/server1/var".

Pete Randall
Outstanding Contributor
Solution

Re: Autofs is not working on HP-UX 11.31

That is the way automounter - sorry, autofs - works. A reference to a file system on another host causes autofs to automatically mount this file system on the mount point specified in /etc/auto_master - in your case /net.


Pete

Pete
OldSchool
Honored Contributor

Re: Autofs is not working on HP-UX 11.31

of course, you could simply mount it, via NFS, at boot time, if that suits our needs.
Steven E. Protter
Exalted Contributor

Re: Autofs is not working on HP-UX 11.31

Seems to be working after a fashion.

did permissions on the auto* files have any impact?

Can you post the files, there may be something that we can work out for you with configuration syntax.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com