

How To Configure NFS Client on Ubuntu 18. So visit the below link to proceed further

Here client can be any host, remote system or a VM on the same server or even the server itself. So, in our next guide we will cover the remaining progress that how to mount NFS shares on a client system. sudo systemctl restart nfs-server Step 8: Mount NFS Shares on Client MachinesĪs we’ve finish installing the NFS Server along with configuration. You also have the option to restart NFS services rather than using exportfs command. v is used to display the current progresss.It’ll check the other options before its operation. a is used to export or unexport the all directories.r is used to cause all directoried listed in /etc/exports to export them by making a new export list in /etc/lib/nfs/xtab.man exportsĪfter make changes to the settings just type the exportfs utility to selectively export the directories without starting services again.
Ubuntu setup nfs share manual#
You can also read the manual about exports by hitting man exports. It is mostly required for the installation of VM on NFS share. No_root_squash will enable the remote users to have root privileges. Note that it is not more secure but is good for local or private networks. To remove the restriction to the specific network use “*” instead.

To learn more, see our tips on writing great answers. Making statements based on opinion back them up with references or personal experience. Provide details and share your research But avoid Asking for help, clarification, or responding to other answers. A client can be a remote system, a Virtual Machine on the same server or the server itself. Look at the below example /data/nfshare 104.27.130.185/24(rw,no_root_squash) Thanks for contributing an answer to Ask Ubuntu Please be sure to answer the question. Now that we’re done with NFS server configurations, the remaining part is mounting NFS shares on a client system. By allowing them permissions they can easily make changes to the shared data on the file system. In this guide, I’m going to show that how I can allow read and write permissions to the remote hosts. host=host or user to which the export shared.export=directory that is being exported.You can also specify the multiple hosts by choosing each option for each host like the given syntax export host1(options1) export host2(options2) export host3(options3) Follow the below syntax to modify the file. sudo mkdir /data/nfshare Step 7: Configure NFS ExportsĮdit the /etc/exports file to configure NFS share. Now, create the directory on /data/nfshare which will be exported to the client. Then check the setting to confirm $ df -hT | grep /data Now, mount this to the /data directory by sudo mkdir /dataĮcho "/dev/sdb1 /data xfs defaults 0 0" | sudo tee -a /etc/fstab Sudo parted -s - /dev/sda align-check optimal 1 Sudo parted -s -a optimal - /dev/sda mkpart primary 0% 100% Sudo parted -s -a optimal - /dev/sda mklabel gpt
