![]() ![]() The files that you see will have some comments that will show you the general structure of each configuration line. Now that we have our directories created and assigned, we can dive into the NFS configuration file to set up the sharing of these resources.Open theįile in your text editor with root privileges: Configure the NFS Exports on the Host Server We wouldn't want to change the ownership of our:ĭirectory, for instance, because it would cause a great number of problems for any users we have on our host server. We only need to change the ownership on our directories that are used specifically for sharing. We should give the group ownership to a group on our system namedĪs well.We can do that by typing this command: We should give the user ownership to a user on our system named However, the directory ownership is not ideal. Now, we have a new directory designated specifically for sharing with remote hosts. ![]() This will be located at:ĭirectory already exists, go ahead and start by creating the: ![]() The first directory we're going to share is theĭirectory that contains user data.The second is a general purpose directory that we're going to create specifically for NFS so that we can demonstrate the proper procedures and settings. We're going to experiment with sharing two separate directories during this guide. Sudo apt-get update sudo apt-get install nfs-common Create the Share Directory on the Host Server Once these packages are installed, you can switch over to the client computer.On the client computer, we're going to have to install a package called "nfs-common": Sudo apt-get update sudo apt-get install nfs-kernel-server On the host server, we need to install the nfs-kernel-server: Download and Installīefore we can begin, we need to install the necessary components on both our host and client servers. You should substitute the values above with your own host and client values. For each of these servers, you will have to have an account set up with sudo privileges.For the purposes of this guide, we are going to refer to the server that is going to be sharing its directories the host and the server that will mount these directories as the client.In order to keep these straight throughout the guide, I will be using the following IP addresses as stand-ins for the host and server values: In this guide, we will be configuring directory sharing between two servers. NFS works well for directories that will have to be accessed regularly. This allows you to leverage storage space in a different location and to write to the same space from multiple servers easily. NFS (Network File System) is a distributed filesystem protocol that allows you to mount remote directories on your server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |