Automount not working in HP UX 11.31 (4143 Views)
Reply
Occasional Visitor
sudheerpn
Posts: 3
Registered: ‎05-19-2009
Message 1 of 8 (4,143 Views)

Automount not working in HP UX 11.31

Hi,

I'm trying to automount directories from rhel4 to HP UX 11.31. However this scenarios works in HP UX 11.11 and 11.23. Below are the steps followed

1. auto_master looks as below
/test /etc/ss_automount/auto.test

2. /etc/ss_automount/auto.test looks as below
test1 -ro,hard,vers=3,intr,tcp xx.xxx.xx.xxx:/distro (Machine ip masked intentionally)

3. Created /test directory

4. Did /sbin/init.d/nfs.client start

But didnot see test1 mounted.

I tried restarting autofs but its not working. Please suggest.
Esteemed Contributor
avizen9
Posts: 666
Registered: ‎06-01-2006
Message 2 of 8 (4,143 Views)

Re: Automount not working in HP UX 11.31

hello Please check amd service is running on

linux, can check it through below.

service amd status

at hpux try /sbin/init.d/nfs.client stop and then start

if you dont have any specific requirement to map it auto, can use nfs mapping, thanks,
Trusted Contributor
kemo
Posts: 190
Registered: ‎02-09-2009
Message 3 of 8 (4,143 Views)

Re: Automount not working in HP UX 11.31

Occasional Visitor
sudheerpn
Posts: 3
Registered: ‎05-19-2009
Message 4 of 8 (4,143 Views)

Re: Automount not working in HP UX 11.31

Hi,

Thanks for the response. I tried as suggested
1. Checked the linux 'amd' service, if its running or not. It was not running, so started it
2. Then in hp-unix did /sbin/init.d/nfs.client stop and then started.

4. But still the problem persists. I'm not able to see test1 directory under /test.

Please advice

Regards,
Sudheer
Trusted Contributor
Michael Lampi
Posts: 209
Registered: ‎04-08-1997
Message 5 of 8 (4,143 Views)

Re: Automount not working in HP UX 11.31

The problem is not that amd/automount is not working on the Linux system. That system is fine and is exporting the NFS mounts that he is attempting to mount via automount on HP-UX.

The problem is that automount is not working on HP-UX 11.31 when the same auto*master and auto*test files work on HP-UX 11.11 and 11.23.

What has changed between 11.11/11.23 and 11.31 with respect to automount?
A journey of 1000 steps ends in a mile.
Valued Contributor
nightwich
Posts: 259
Registered: ‎01-02-2007
Message 6 of 8 (4,143 Views)

Re: Automount not working in HP UX 11.31

Hi sudheerpn


Let's cut to the basics:

1 - check if the process automount is up and running ( ps -ef | grep automount )

If not go to /etc/rc.config.d/nfsconf and set the variable AUTOFS to one ( AUTOFS=1 )

Restart nfs.client ( /sbin/init.d/nfs.client stop | /sbin/init.d/nfs.client start

Check if the process is running ( again ps -ef | grep automount )

After that ..

2 - check the configurations of the autmount !!

If you want a direct map it should be like this ex: in the /etc/auto_master put /- /etc/auto_direct

create the file /etc/auto_direct and put your configuration something like this -> <>

If you want a indirect map ex:

eEdit /etc/auto_master and put /home /etc/auto_home

create the file /etc/auto_home and put you configuration something like this -> /opt/project server:/project

Every time you do any change in your /etc/auto_master you should restart the automount process with a kill -TERM and /usr/sbin/automountd or just restart /sbin/init.d/nfs.client

If you have any problem with the steps please reply.

I thing this is all you need to know to a simple automount configuration

Best regards !! ..
Occasional Visitor
sudheerpn
Posts: 3
Registered: ‎05-19-2009
Message 7 of 8 (4,143 Views)

Re: Automount not working in HP UX 11.31

Hi,

1. I made sure automountd is running
2. I have the auto_master file as
test /etc/ss_automount/auto.test
3. /etc/ss_automount/auto.test looks as below
test1 -ro,hard,vers=3,intr,tcp xx.xxx.xx.xxx:/distro (Machine ip masked intentionally)

4. Restarted the daemon nfs.client (start and stop)

5. But still the problem persists. I'm not able to see nfs mounts

6. Is there any differences between 11.11 to 11.31? because the same configuration is working in 11.11 but not in 11.31

Regards,
Sudheer
Valued Contributor
nightwich
Posts: 259
Registered: ‎01-02-2007
Message 8 of 8 (4,143 Views)

Re: Automount not working in HP UX 11.31

Hi sudheerpn


Yes, you are right there is a different in 11iv3 but didn't concert with configurations, they are exactaly the same.

The main difference is that in 11iv3 the automount have they one script to stop and start the automount deamon.

So the different is that to update the autmount configurations on 11iv1 you have to restart the service nfs.client. And in 11iv3 you have to restart the service S435autofs.

I try a basic setup of the automount in 11iv3 and worked here is some basic example:

more /etc/auto_master
/net -hosts -nosuid,soft,nobrowse
/as /etc/auto_home -nosuid,soft,nobrowse

more /etc/auto_home

abcd xxxxx:/home/&
efhil xxxxx:/home

I hope this will help you !! ...

Please reply if you have any doubt !!

Regards !! ..


The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.