Jul
19
2021
0
If you are working with shared storage technology. Perhaps this feature also will be useful which allow you to map NFS into your either workstation/server.
NFS Server [Use below command to make your own NFS server]
# rpm -qa | grep nfs-utils # yum install nfs-utils rpcbind
Enable permanent start at boot:
# systemctl enable nfs-server # systemctl enable rpcbind # systemctl enable nfs-lock # systemctl enable nfs-idmap
Start NFS service
# systemctl start rpcbind # systemctl start nfs-server # systemctl start nfs-lock # systemctl start nfs-idmap
Check service status
# systemctl status nfs
Allowing the Firewall
# firewall-cmd --add-service=nfs --zone=internal --permanent # firewall-cmd --add-service=mountd --zone=internal --permanent # firewall-cmd --add-service=rpc-bind --zone=internal --permanent
Create a shared directory
# mkdir /share # vi /etc/exports /share *(rw) # exportfs -r
Auto-mount NFS client
Nowadays, in order to auto-mount NFS/shared directory you can just simply follow below command. An example shared folder located in 192.168.201.5:/share
