Re: NFS Configuration (2391 Views)
Reply
Frequent Contributor
Abubakkar
Posts: 57
Registered: ‎04-09-2010
Message 1 of 6 (2,391 Views)
Accepted Solution

NFS Configuration

Dear all,
Please explain how to configure the nfs server and client in hpux 11iv3.
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,762
Registered: ‎03-06-2006
Message 2 of 6 (2,391 Views)

Re: NFS Configuration

Have you looked at share_nfs(1M) and mount_nfs(1M)?
You may want to use SMH to configure it for you.
Please use plain text.
Respected Contributor
P Arumugavel
Posts: 328
Registered: ‎02-16-2010
Message 3 of 6 (2,391 Views)

Re: NFS Configuration

Please use plain text.
Frequent Advisor
suvy12
Posts: 43
Registered: ‎11-16-2010
Message 4 of 6 (2,391 Views)

Re: NFS Configuration

For NFS Server you need to edit the File /etc/rc.config.d/nfsconf and make entries look like below
NFS_CORE=1
NFS_SERVER=1
START_MOUNTD=1
To start NFS server daemons :
# /etc/init.d/nfs.server start

Configuration Files :
/etc/exports - Contains a list of exportable file systems. This file is available in upto HP-UX 11i v2
/etc/dfs/dfstab - Contains a list of sharable file systems. This file is available from HP-UX 11i v3

To export or share a file system :
# exportfs /data <--- Upto HP-UX 11i v2
# share /data <--- From HP-UX 11i v3

To unexport or unshaer a file system :
# exportfs -u /data <--- Upto HP-UX 11i v2
# unshare /data <--- From HP-UX 11i v3

To export or share all the filesystems defined in /etc/exports or /etc/dfs/dfstab :
# exportfs -a <--- Upto HP-UX 11i v2
# shareall <--- From HP-UX 11i v3

On the client Side

edit the file /etc/rc.config.d/nfsconf and make the entry look like below
NFS_CLIENT=1

start the service

/sbin/init.d/nfs.client start








Please use plain text.
Regular Advisor
Mike Miller_8
Posts: 89
Registered: ‎02-24-2003
Message 5 of 6 (2,391 Views)

Re: NFS Configuration

make sure that you also look at the dfstab file and restrict the share to only those servers that you want to have access.

Doing a man on "share" and then looking at the dfstab file will help explain.
Please use plain text.
Esteemed Contributor
Ismail Azad
Posts: 487
Registered: ‎11-09-2010
Message 6 of 6 (2,391 Views)

Re: NFS Configuration

Hi AbuBakkar,

Suvvvy..
> # /etc/init.d/nfs.server start

Well I guess there is a typo there.

/sbin/init.d/nfs.server start is the script...

Regards!
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
Please use plain text.
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