This post will help you with Step by Step NFS Server & NFS Client Configuration in HP-UX.
If you are interested in learning, Request you to go through the below recommended tutorial.
DevOps Full Course Tutorial for Beginners – DevOps Free Training Online
Docker Full Course Tutorial for Beginners – Docker Free Training Online
Kubernetes Full Course Tutorial for Beginners – Kubernetes Free Training Online
Ansible Full Course Tutorial for Beginners – Ansible Free Training Online
Openstack Full Course Tutorial for Beginners – Openstack Free Training Online
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.
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
Change the NFS_SERVER parameter as follow.
Save and exit the file.
5. Add an entry of your share folder in the export file /etc/dfs/dfstab with proper permission.
Add the entry as below.
#/usr/sbin/share -F nfs -o rw -d “Test directory” /mydata
6. Restart nfs service on server.
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
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.
Related Content on Linux might be useful to you to improve your Linux Skills.
How to Access Linux Server from Windows Remotely
Configure SSH Passwordless Login Authentication (SSH-keygen)
How to Create LVM Partition in Linux – LVM Tutorial
Install & Configure Samba Server on Linux (RHEL7 / CentOS7)
Keep practicing and have fun. Leave your comments if any.
Support Us: Share with your friends and groups.
Stay connected with us on social networking sites, Thank you.
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