Configure NFS share on CentOS 7
In the server
=============
1.Install nfs
yum -y install nfs-utils nfs-utils-lib
2.Enable nfs
chkconfig nfs on
3.start services
service rpcbind start
service nfs start
4.mention which directory to export
vim /etc/exports
/home/directfn/app/taxinovice 192.168.13.65(rw,sync,no_root_squash,no_subtree_check)
5.save exports
exportfs -a
6.restart nfs
service nfs restart
In the client
==============
1.Install nfs
yum install nfs-utils nfs-utils-lib
2.create mount point
mkdir /home/directfn/taxinovice
3.mount remote share
mount -t nfs 192.168.14.100:/home/directfn/app/taxinovice /home/directfn/taxinovice/
4.verify
df -h
cd /home/directfn/taxinovice/
touch testfile
5.mount permanently
vim /etc/fstab
192.168.14.100:/home/directfn/app/taxinovice /home/directfn/taxinovice/ nfs defaults 0 0
6.check fstab entry is correct
mount -a
=============
1.Install nfs
yum -y install nfs-utils nfs-utils-lib
2.Enable nfs
chkconfig nfs on
3.start services
service rpcbind start
service nfs start
4.mention which directory to export
vim /etc/exports
/home/directfn/app/taxinovice 192.168.13.65(rw,sync,no_root_squash,no_subtree_check)
5.save exports
exportfs -a
6.restart nfs
service nfs restart
In the client
==============
1.Install nfs
yum install nfs-utils nfs-utils-lib
2.create mount point
mkdir /home/directfn/taxinovice
3.mount remote share
mount -t nfs 192.168.14.100:/home/directfn/app/taxinovice /home/directfn/taxinovice/
4.verify
df -h
cd /home/directfn/taxinovice/
touch testfile
5.mount permanently
vim /etc/fstab
192.168.14.100:/home/directfn/app/taxinovice /home/directfn/taxinovice/ nfs defaults 0 0
6.check fstab entry is correct
mount -a
Comments
Post a Comment