Network File System (NFS) is a networking protocol for distributed file sharing.
Configure NFS Client to mount NFS Share on NFS Client. || This example is based on the environment like follows.
+----------------------+ | +----------------------+
| [ NFS Server ] |192.168.1.40 | 192.168.1.50| [ NFS Client ] |
| server.second.com +----------+----------+ server.testbox.com |
_______________________________________________________________________________________________________________________________
Server - Os: Oracle Linux Server 9
__________________________________________________________________________________________________________________________________
cat /etc/system-release ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
192.168.1.40 ||server.second.com
dnf -y install nfs-utils
nano /etc/idmapd.conf
Domain = server.second.com
nano /etc/exports
/home/nfsshare 192.168.1.40/24(rw,no_root_squash)
mkdir /home/nfsshare
systemctl enable --now rpcbind nfs-server
firewall-cmd --add-service=nfs ; firewall-cmd --add-service={nfs3,mountd,rpc-bind} ; firewall-cmd --runtime-to-permanent
__________________________________________________________________________________________________________________________________
Configure NFS Client -Oracle Linux Server 9|||| server.testbox.com|192.168.1.50|
dnf -y install nfs-utils
nano /etc/idmapd.conf
Domain = server.testbox.com
firewall-cmd --add-service=nfs ; firewall-cmd --add-service={nfs3,mountd,rpc-bind} ; firewall-cmd --runtime-to-permanent
mount -t nfs 192.168.1.40:/home/nfsshare /mnt
df -hT
__________________________________________________________________________________________________________________________________
Tuesday, March 14, 2023
Linux NFS Server: How to Set Up Server and Client On Oracle Linux 9
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment