Setup nfs server centos




















The -a option implies that all the directories will be exported, -r stands for re-exporting all directories and finally -v flag displays verbose output. Our export list exists. So far so good. The final step in configuring the server is allowing NFS services through the firewall on the CentOS 8 server machine. These services are nfs, rpc-bind , and mountd. So, execute the commands below. To display the mounted NFS shares on the server, use the showmount command:.

Next, we need to mount the remote NFS share directory sitting on the local client system. To mount the NFS share, execute the command below. Recall that At this point, we are done with all the configurations. However, we need to test our setup and ensure everything works. From the output, we can clearly see that the file exists. Create a directory for our first export.

Open the NFS exports file into a text editor. Export the directory defined above. This improves performance at the cost of data integrity. This prevents root access to exports. Open the NFS network configuration file. Define which protocol versions mountd will advertise. See rpc. The default is 8. Restart the rpcbind service. The nfs. Will this affect the nfs working properly? Just start the nfs-server services as shown in the tutorial.

The other services does not need to be started. It will grab the defaults used when mounting determined by exportfs from the server. This feature is only available to subscribers. Get your subscription here. Log in or Sign up.



0コメント

  • 1000 / 1000