Step by Step NFS Server and Client Configuration in HP-UX

nfs configuration hpux, HPUX NFS server Configuration, Step by Step NFS configuration in HP-UX, hp ux nfs configuration, configure nfs server hpux

Step by Step NFS Server and Client Configuration in HP-UX

NFS allows a client computer to access a file system that resides on another computer’s disks, as though the file system were installed locally.

The NFS server is the computer to which the disk is physically attached. NFS clients are the computers that use the file system remotely. Before an NFS client can mount a file system that resides on the NFS server’s disks, the NFS server must share it.

My Scenario:
NFS Server : 192.168.2.1 and share folder /mydata
NFS Client : 192.168.2.2 and mount point /mnt

Steps involved to configure the NFS Server:

1. Make sure both server(192.168.2.1) and client(192.168.2.2) are accessible.
Make an entry in /etc/hosts or Configure it in DNS to resolve the IP if you use server name instead of IP address.
But we use IP Address for reference.

2. Identify the folder to be export from server to the client.
For example: As per my scenario, I am going to export the folder /mydata.

3. Change full permission (777) to the share folder.
#chmod 777 /mydata
4. Change the NFS_SERVER=1 to enable your server to act as a NFS Server in the configuration file /etc/rc.config.d/nfsconf
#vi /etc/rc.config.d/nfsconf
Change the NFS_SERVER parameter as follow.
NFS_SERVER=1
PCNFS_SERVER=0
START_NFSLOGD=0
START_MOUNTD=1
MOUNTD_OPTIONS=""
Save and exit the file.

5. Add an entry of your share folder in the export file /etc/dfs/dfstab  with proper permission.
#vi /etc/dfs/dfstab
Add the entry as below.
#/usr/sbin/share -F nfs -o rw -d “Test directory” /mydata
6. Restart the nfs service on server.
#/sbin/init.d/nfs.server stop
#/sbin/init.d/nfs.server start
#/usr/sbin/exportfs -av

Steps involved to access the NFS volumes or shares to the NFS clients:

1. Login into the client.

2. Decide the mount point to where we have to mount the NFS volume /mydata which we exported from NFS Server 192.168.2.1.
For example, we will mount it on /mnt.

3. Verify the list of shares available.
#showmount -e 192.168.2.1
export list for 192.168.2.1
/mydata
If we get the output, server side export configuration doesnt have any problem between nfs server and client.

3. Mount the nfs share locally on your desintation mount point folder.
#mount 192.168.2.1:/mydata /mnt
4. Final step is to check the 'bdf' output and try to create any file on /mnt.
Leave your comments if any. nfs configuration hpux, HP-UX NFS Configuration, Step by Step NFS configuration in HP-UX, hp ux nfs configuration, configure nfs hpux, Steps to configure a NFS server on hpunix, how to configure the nfs server and client in hpux, hpux 11iv3, hpux 11iv1
Subscribe us on youtube channel for practical video tutorials and follow us on social networking sites to not miss any updates. hpux 11iv2 nfs, NFS Configuration, HP-UX, Configuring the Network File System, Exporting a File System, NFS in HP-UX, Restart NFS in HP UX, hp ux nfs share, hp ux nfs export, hp ux nfs mount, hp ux nfs mount options, hpux nfs
October 05, 2015

Post a Comment

[disqus][facebook][blogger]

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget