Operating System - HP-UX
1830044 Members
6694 Online
109998 Solutions
New Discussion

Performing NFS Mount to HP-UX 11 from Linux 7.1

 
Michael Blanford
New Member

Performing NFS Mount to HP-UX 11 from Linux 7.1

I have set up a virtual machine on an NT 4.0 Box, and it is running Linux 7.1. I need to be able to access the file system on the HP server. I am attempting to do this using NFS mount. Does anyone know how to set this up correctly, or where I can get some info on how to perform this ?
2 REPLIES 2
Sachin Patel
Honored Contributor

Re: Performing NFS Mount to HP-UX 11 from Linux 7.1

Hi Michael,
For example you are trying to mount /home from hp to linux.

On HP side
add line in file /etc/exports
/home (This will gives rw acess to everyone)

#/usr/sbin/exportfs -va
(Export all file systems listed on /etc/exports)
#/usr/sbin/showmount -e (to see what is exported from this system)

On linux system
#cd /
#mkdir tmp_mnt (you can give anyname you want)
#mount hpserver:/home /tmp_mnt
And it is done.
If you want this to mount at boot time edit /etc/fstab file.
This is hard mount. If you want to use automounter then there are couple files involve. I don't know how it works in 7.1 but in 6.2

#vi /etc/auto.master
/auto /etc/autofs/auto.hosts --timeout 60

#vi /etc/autofs/auto.hosts
tmp_mnt -fstype=autofs file:/etc/autofs/hpname.auto
#vi /etc/autofs/hpname.auto
home -rw,suid,soft,intr hpservername:/home

And start the autofs
#/etc/rc.d/init.d/autofs start

Sachin

Is photography a hobby or another way to spend $
linuxfan
Honored Contributor

Re: Performing NFS Mount to HP-UX 11 from Linux 7.1

Hi Michael,

The procedure Sachin gave would allow you to mount a HP filesystem onto linux, but from what i understand you are trying to do the reverse, mount a filesystem from your linux machine onto the HP.

On your linux machine do
chkconfig --list |egrep "nfs|portmap"
By default the init level is 3, so the above command should say on for on for nfs,nfslock and portmap(this would start daemons on reboots).

But in any case you can start them manually
/etc/rc.d/init.d/portmap start
/etc/rc.d/init.d/nfslock start
/etc/rc.d/init.d/nfs start

Also update your /etc/exports on your linux machine to

/exported/dir hphost(rw)

once you save the file, run exportfs -a

now on your hp machine
you should be able to mount the filesystem.

BTW, There is an excellent HOW-TO to set up your linux box as an NFS-Server.

http://www.linuxdoc.org/HOWTO/NFS-HOWTO/server.html

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates