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 firewalld

enabling firewall:

for i in nfs mountd rpc-bind; do firewall-cmd --add-service $i --permanent; done
firewall-cmd --reload
firewall-cmd --list-all

verifying mounts:

showmount -e

Mounting 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?