Chapter 9
NFS Storage
Deploying NFS server:
dnf install nfs-utils -y
mkdir -p /nfsdata /home/ldap/ldapuser{1..9}Editing exports file to state which folders we are sharing as NFS:
vim /etc/exports
/nfsdata *(rw,no_root_squash)
/home/ldap *(rw,no_root_squash)starting nfs server:
systemctl enable --now nfs-server
systemctl enable --now firewalldenabling firewall:
for i in nfs mountd rpc-bind; do firewall-cmd --add-service $i --permanent; done
firewall-cmd --reload
firewall-cmd --list-allverifying mounts:
showmount -eMounting NFS share:
Mounting NFS with automount:
Creating auto file:
Bundan sonra /nfsdata mountu ilə bağlı configlər hamısı /etc/auto.nfsdata üzərindən ediləcək.
enabling autofs service:
Automounting home folders:
edit homes file:
restart the service:
Last updated
Was this helpful?