definitions
NFS is one of the network filesystems available on Linux. An NFS server has the NFS service installed and enabled. It hosts the mounted filesystem that shall be made available to remote systems. This action is called export and involves these files:
- /etc/exports: where I configure the mounted filesystems that need to be remotely available to the defined machines,
- /var/lib/nfs/etab: is called the master export table. It is populated as soon as an entry, in a correct format, is recorded in the /etc/exports file and
exportnfs -ais run. Theexportnfs -acommand reads the entries of /etc/exports to do its job. I am simplifying these steps with the expression create an NFS share.
establish a NFS export
Here is my lab topology: rhel10-vm1 (192.168.122.216): NFS server <—> rhel10-vm2 (192.168.122.6): NFS client.