NFS

dnf list nfs-utils nfs-utils-lib

Example of NFS server (name it esx-gsi)

configuration file

/etc/exports
#/dirpath/dirname          server.or.ip.or.netmask(options)
# name or ip
/mnt/data01               10.0.2.3(sync,rw,no_root_squash)
/mnt/data01               jamaica.ibcg.biotoul.fr(sync,rw,no_root_squash)
# subnet 192.168.0.*
/mnt/data01               192.168.0.0/255.255.255.0(sync,rw,no_root_squash)

start/restart/status service

systemctl start nfs

start service at boot time

systemctl enable nfs

reload configuration after /etc/exports modification

exportfs -ra

mount nfs / autmount

dnf list nfs-utils nfs-utils-lib

manual one-time mount

mount name.or.IP:/dirpath/dirname /mnt/path
# with mount options
mount -o ro name.or.IP:/dirpath/dirname /mnt/path

automount

dnf list autofs

files:

to automount in /share, e.g. for the server example data01 to mount data01 as /share/data01:

/etc/auto.share
data01		esx-gsi:/mnt/data01

manually start the service:

systemctl start autofs

start the service at boot:

systemctl enable autofs