Operating System - HP-UX
1833995 Members
2890 Online
110063 Solutions
New Discussion

Re: How to configure NFS automouter...

 
Abel Berger
Regular Advisor

How to configure NFS automouter...

Hello all !

Which are steps to configure one NFS SERVER
and one or more NFS clients, in the same network segment, so that the clients
mount the /home ( nfs server ) automatically after boot ?

NFS Server : K580 HP-UX 10.20
NFS Client : K360 HP-UP 10.20

Could anybody help me !???

My best Regards,

Abel Berger
5 REPLIES 5
eran maor
Honored Contributor

Re: How to configure NFS automouter...

Hi

to config nfs :

edit /etc/rc.config.d/nfsconf
change the param :
NFS_SERVER=1
START_MOUNTD=1
NUM_NFSD=4
NUM_NFSIOD=4

edit the file

/etc/exports

adit line
/home

to start it
/sbin/init.d/nfs.client stop

/sbin/init.d/nfs.server start
/sbin/init.d/nfs.client start

and after that you can mount the /home from any other unix computer .

mount nfsserver:/home /home_nfsserver

you can change the name of course !

if you will do a reboot to the server the nfs demons is go up auto.

if you have any que please ask

good luck
love computers
Abel Berger
Regular Advisor

Re: How to configure NFS automouter...

Hi Eran,

About this case, you did not talk about
auto_master variable and file. Why ??

Regards,

Abel Berger
Abel Berger
Regular Advisor

Re: How to configure NFS automouter...

Hi again Eran,

I have a NFS server as below :

In /etc/nfsconf exist :

AUTOMOUNT=1
AUTO_MASTER="/etc/auto_master"
AUTO_OPTIONS="-f $AUTO_MASTER"

# pg /etc/exports

/home -access=10.11.24.130:besup:beest:beres:
feacc1:feacc2:feacc3:feacc4:pr_treal

# pg /etc/auto_master
/- /etc/auto_directo

# pg /etc/auto_directo
/home2.beest -bg,soft,intr,rw,suid,retry=10 beest_2:/home2


In NFS client exist in /etc/nfsconf :

AUTO_MASTER=/etc/auto_master
AUTO_OPTIONS="-f $AUTO_MASTER -tm 10 -tl 300 -tw 60"

# pg /etc/auto_master
/- /etc/auto_directo

# pg /etc/auto_directo
/home.beprin -bg,soft,intr,rw,suid,retry=10 beprin_2:/home

So that serve this files ? Do you know ?

Regards,

Abel Berger



eran maor
Honored Contributor

Re: How to configure NFS automouter...

Hi

if i understand rigth you want to mount the file system at boot time ?

because all the config file look o.k

if you mean to that i advise is to write a script that will do it ob startup of the computer .

i m putting a file att to how to do it .

but if the automounter is config rigth the first time that someone will cd to this fs the fs will be mount
love computers
Wieslaw Krajewski
Honored Contributor

Re: How to configure NFS automouter...

Hi,

As I've understood well the problem is to configure
NFS server and NFS client to mount during boot what the server exported.

As concerns server it looks OK. Just add a line in /etc/exports as Eran answered. But in this case any node can be NFS client. If you want to restrct access to only specified clients add:

/home -access=client1:client2:...

And remember that in this case root at any client has only nobody accewss.
If root on the client machine should have root access to NFS mounted file system, it must be exportedd with root access.

As concerns mounting every time when client boots it
is neccessary to add a line to /etc/fstab file:

NFS_server:/home /local_mount_point nfs defaults 0 0

This is just an example.

You also mentioned automounter. This allows NFS file systems to be mounted on demand, and this requires automounter map to be prepared: master map, direct maps and indirect maps if possible.

I recommend HP manual "Installing and administering NFS services" available in PDF format, where you can find everything what you need.

Rgds.
Permanent training makes master