Exporting File Systems Temporarily

When the NFS server is activated, it keeps a list of exported file systems in the /var/lib/nfs/xtab file. This file is initialized with the list of all directories exported in the /etc/exports file by invoking the exportfs -a command when the NFS server initializes. With the exportfs command, it is possible to add a file system to this list without editing the /etc/exports file or restarting the NFS server. For example, the following exports the directory /srv to all the servers in the network


The exported file system will become available immediately but will be available only until the next reboot of your NFS server. If you want it to be available after a reboot as well, make sure to include it in the /etc/exports file.

Was this article helpful?

0 0

Post a comment