How to make NFS share
NFS- It is stand for Network File System and used for sharing data between linux to linux.NFS requires rpcbind, which dynamically assigns ports for RPC services and can cause problems for configuring firewall rules. To allow clients to access NFS shares behind a firewall, edit the /etc/sysconfig/nfs configuration file to control which ports the required RPC services run on.
Step1- Server side configuration.
# yum install nfs*
# Make a directory which need to be share or we can also share existing directory.
# mkdir /nfsshare
# vi /etc/exports
/nfsshare *(rw,sync)
(Save file)
Step2- service nfs start
# service rpcbind start
# checking nfs server by below command
# exportfs
/nfsshare <world>
Step3-Client side configuration
# mkdir /Servernfsshare
# mount.nfs4 serveraddress: /nfsshare /Servernfsshare
Comments
Post a Comment