1834988 Members
2294 Online
110073 Solutions
New Discussion

Re: NFS and its setup?

 
SOLVED
Go to solution
u856100
Frequent Advisor

NFS and its setup?

All,

If possible, could someone provide a whistle stop crib sheet for what I need to look at for a crash lesson in using nfs.

I am trying to mount/provide a mount point for a server disk so that I can get remote access.

I have been looking at some of the relevant files i.e
/etc/exports (/etc/xtab)
/var/adm/inetd.sec
/etc/fstab

ecetera

thanks in advance guru's

John
chicken or egg first?
3 REPLIES 3
Emiel van Grinsven
Valued Contributor
Solution

Re: NFS and its setup?

Victor BERRIDGE
Honored Contributor

Re: NFS and its setup?

Hi I didnt quite understand your question...
What do yo need to be able to mount an exported FS?
1) the server exporting FS is in /etc/hosts? or can you ping its name successfully
2) HAs he really started his NFS server?
3) HAve you startes your NFS client services (If not: /sbin/init.d/nfs.client start)?

All the best

Victor
sven verhaegen
Respected Contributor

Re: NFS and its setup?

ok here 's a cookbook for you :

ther are 2 sides , the server , which ios going to excp[prt te directories you specified and the client which is going to mount them , I will now refer to the server setup and the client setup separately

SERVER:

edit the file /etc/rc.config.d/nfsconf and set following parameters

NFS_SERVER=1
START_MOUNTD=1

or go into SAM to the file systems submenu and activate the NFS server , if you duidn't do it with SAM then you need to reboot the server

then edit /etc/exports

in there you specify the directories to export in following format

/usr
/var/adm

you can use specific export options but I'm keeping it simple here , I refer to man pages of exportfs , nfs , mount and mount_nfs for more info , also the manuals of HP_UX can help here

If nfs server is already running then execute

/usr/sbin/exportfs -ua
/usr/sbin/exportfs -a

the filesystems in exports will be exported , check this with following command

/usr/sbin/exportfs

this generates a list of the exported filesystems with possible export options



CLIENT :

if filesystems are available on the NFS server edit /etc.rc.config.d/nfsconf

alter following line

NFS_CLIENT=1

or use SAM to activate the NFS client , again going in the disks and filesystems submenus or if you didn't use SAM to launch the client restart the NFS Client reboot the cleint

edit /etc/fstab , put in lines like

nfsservername:/var/adm /localdirectory

and have the system re-read the fstab file
or manually mount the filesystem e.g.

mount nfsservername:/var/adm /localdirectory


This is the simples way to do it , most of this can be done from SAM , from the disk and filesystems submenue , it conatinf a NFS subsection which allows you to activate both server and client and export and mount filesystems , hope this help and is clear enough
...knowing one ignores a greath many things is the first step to wisdom...