Operating System - HP-UX
1833494 Members
2688 Online
110052 Solutions
New Discussion

Re: HP-UX can't NFS mount Linux

 
David Epp
Occasional Advisor

HP-UX can't NFS mount Linux

I can get RH Linux 7.3 to NFS mount an HP-UX 10.20 system, but I cannot get HP-UX to NFS mount the Linux system. And automount didn't seem to work in either case. Any ideas??
7 REPLIES 7
Patrick Wallek
Honored Contributor

Re: HP-UX can't NFS mount Linux

What errors are you getting when you try to NFS mount a RH Linux filesystem from HP-UX?

A bit more information would be helpful.
Pete Randall
Outstanding Contributor

Re: HP-UX can't NFS mount Linux

Is the RH system set up as a server AND client?


Pete

Pete
Arockia Jegan
Trusted Contributor

Re: HP-UX can't NFS mount Linux

Can you check the /var/log/messages file on Linux and /var/adm/syslog/syslog.log and post the messages associated with this NFS issue?
Shannon Petry
Honored Contributor

Re: HP-UX can't NFS mount Linux

This is not a HP-UX issue, but a Linux configuration issue. Most people do not realize that by default, even if you install the NFS Server package NFS server systems do not start.

You need to start the NFS server, make sure your exports is formatted correctly, and then mount on HP-UX.

Test this by manually firing up NFS.

/etc/rc.d/init.d/nfs start
/etc/rc.d/init.d/nfslock start

Read the man pages on the /etc/exports file via.
man exports

Or use linuxconf and let it build for you.

Then export your file system with
exportfs -a

Use the run level editor to put nfs and nfslock into the appropriate run levels (I.E. 3-5)

Regards,
Shannon
Microsoft. When do you want a virus today?
Shannon Petry
Honored Contributor

Re: HP-UX can't NFS mount Linux

I forgot to mention, if you have nfs already running and are running ipchains or iptables, remove the entries and see if it works. By default NFS ports are blocked.
lsmod will show which modules are loaded, pick one of the two following.


rmmod ip_tables
or
rmmod ip_chains



You will have to learn how to allow hosts full access if you need the firewall packages "AND" NFS.
Microsoft. When do you want a virus today?
Jose Antonio Orozco
Frequent Advisor

Re: HP-UX can't NFS mount Linux

As Shannon wrote, you must configure /etc/exports to specify host access to directories.
For example, my exports reads this way
/mnt/datos hostname1(rw,secure,sync,insecure_locks,no_root_squash)
/mnt/datos hostname2(rw,secure,sync,insecure_locks,no_root_squash)

You could use async option to improve performance, buy at high risk.

Again, read the exports man page for the options.

What is not backed up, it not exists
David Epp
Occasional Advisor

Re: HP-UX can't NFS mount Linux

Thanks very much to all who replied!! Actually, the problem existed on a RH Linux 6.2 system and did not occur after the system was upgraded to 7.3 (which needed to be done for other reasons).

I did still have problems with automount on the HP-UX side and it had something to do with the map files not being correct. To correct the problem, I set AUTOFS=1 (use new AUTOFS rather than old automount (=0)) in /etc/rc.config.d/nfsconf and did
/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.client start
and everything began to work properly.

Again, Thanks very much for the responses!!