The first step in configuring your NFS environment is to
configure the NFS server, which functions as the central repository
for all files.
About this task
The following example shows how to configure your NFS server.
Procedure
- Create the directories that you want to mount to the NFS
client directories (for example, /home/machine1, /home/machine2,
and /home/machine3).
Important: Make sure that these directories have write authority.
- Configure the /etc/exports file:
/home/machine1 *(rw, sync)
/home/machine2 *(rw, sync, no_wdelay, nohide)
/home/machine3 *(rw, sync, no_root_squash)
/home/machine4 *(rw, sync, no_root_squash)
In this example, the /home/machine3 and /home/machine4
directories will be mounted to the remote managed-node profile directory.
- Before the NFS service starts, the portmap service must
be running. To check its status, use the following command:
- If the portmap service has stopped, use the following command
to start it:
- To start or restart the NFS service, use one of the following
commands:
# service nfs start
# service nfs restart
- To make the NFS service start automatically with the system,
use the following command:
# chkconfig --level 35 nfs on
- To check the NFS export directories, use the following
command.
# showmount -e <server_ip>
You can use this command on both the NFS server and the NFS
client.
What to do next
Configure the NFS client.
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15