NFS installation and Mounting
1. Install NFS using the below command on the server side.
$ yum install nfs-utils libnfsidmap
2. start the service's and verify service's started.
$ systemctl start nfs-server.service rpc-statd.service nfs-idmapd.service
$ systemctl status nfs-server.service rpc-statd.service nfs-idmapd.service
3. Create a Directory for NFS and provide all permission to directory's
$ mkdir -p /server-side/nfs-drive
$ chmod 777 server-side && chmod 777 /server-side/nfs-drive
4. modify the /etc/exports file and add new shared filesystem
/server-side/nfs-drive/ * (rw,sync,no_root_squash)
5. exportfs -rv
Client side configaration...
7. Install NFS package using below command.
$ yum install nfs-utils rpcbind -y
8. Enable and start the rpcbind service
$ systemctl enable rpcbind && systemctl status rpcbind
9. Show mount from NFS host server
$ showmount -e 192.168.15.226(NFS host server ip)
10.Create mount point in Client server.
$ mkdir /etc/share-drive
11.Mount file system in Client server.
mount 192.168.15.226:/server-side/nfs-drive /var/share-drive
12. verify the mount point is mounted.
$df -h
Comments
Post a Comment