Before Start Configure NFS you have to Understand When to use it ? and What is it ?
NFS file system usually read from Source Called Server , If this server goes down, it will not be available for the other resource, From this we understand that i should configure NFS On both Side Server and Client.
Read More About it Here.
Note :
Server IP : 192.168.1.100
Client IP : 192.168.1.101
In this Blog I will Use NFSV4
1- You need to install two Package ( as root user )
**nfs-ultis-lib
**portmap ( if you are asking nfs4 this is not needed anymore )
2- As Root Run the below Command to Start nfs Serivces :
[root@TEST share]# /etc/init.d/nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS mountd: [ OK ]
Stopping RPC idmapd: [ OK ]
Starting RPC idmapd: [ OK ]
Starting NFS daemon: [ OK ]
3- Create folder under /u01/app/shared , give permission to oracle and chmod 775
4- on NFS Server ( you will own the folder ) , vi /etc/exports add the below line :
/u01/app/shared [Client-IP] (rw,sync,no_root_squash)
5- NFS Server is done , Go to NFS Client ( Node 2 ) as root user run the below command :
#/etc/init.d/nfs start
#showmount -e 192.168.1.101
The Output Will be like the below :
Export list for 192.168.1.100:
/u01/app/shared 192.168.1.101
6-On Node 2 ( As Root User ) –> # mount -t nfs 192.168.1.100:/u01/app/shared/ /u01/app/shared/
7- Check using df -h
**Remove:-
8- umount /u01/app/shared ( on Node 2 )
Important Command :
showmount -e : Shows the available shares on your local machine
exportfs -v : Displays a list of shares files and options on a server
Thank you
Osama Mustafa
I extremely like your site and its updates!!! These are truly inspiring and invigorating. I would suggest remain keeping by updating us with this sort of highly informative and productive articles in future either. Cloud hosting services Karachi
LikeLike
Linux can be safer and it is equipped to handle multiple procedures during a period.Thin Client Hardware & Citrix Thin Client
LikeLike
Useful information like this one must be kept and maintained so I will put this one on my bookmark list! Thanks for this wonderful post and hoping to post more of this!Refurbished Laptops & Laptop Distributor
LikeLike