Professional Documents
Culture Documents
Install and Configure Nfs
Install and Configure Nfs
Install and Configure Nfs
NFS is about sharing your disk, drives and files with other systems
there are diff types of file systems: ext2-3,xfs,ntfs (windows),fat (windows) etc.
NFS is not local to your computer, NFS is part of NAS
It was developed by sun microsystem
its a client /server system that allow users to access file accross a network and
treat them
as if its mounted locally. e.g you can access files in machine2 from machine1
client machine ----- NFS request ------> server (this server has all the policy)
<---- approved ------- who is authorised and who is not
# config explanation #
my NFS share is the directory "mynfsdir"
give client rw access
sync ==> all changes to the FS are imediately flushed to disk
no_root_squash ==> root on the client machine will have same level of access on the
sytem as root on this serv.
of coursse use another machine (in my case i used the clone of my master machine)
yum install nfs-utils libnfsidmap -y
yum install nfs-utils rpcbind
service rpcbind start
ps -ef | egrep "firewall| iptable" ==> make sure firewall & iptables services are
stopped
disable firewalld from both the nfs server and the client with the below commands
systemctl stop <service_name>
systemctl disable <service_name>
create a file on the client side and check if it shows up on the server side
unmount /mnt/mynfsdir ==> if you do need it anymore or just using it for testing
puposes