1,381
edits
Changes
From IGEP - ISEE Wiki
no edit summary
Before you can actually use the new shares, however, you’ll need to be sure that traffic to the shares is permitted by firewall rules
Now that the host server is configured and serving its shares, we’ll prepare our client.
sudo mkdir -p /nfs/general
sudo mkdir -p /nfs/home
===Step 6 5 — Mounting the Directories on the Client===
Now that we have some place to put the remote shares and we've opened the firewall, we can mount the shares by addressing our host server, which in this guide is 203.0.113.0, like this:
sudo mount 203.0.113.0:/var/nfs/general /nfs/general<br>sudo mount 203.0.113.0:/home /nfs/home
These commands should mount the shares from the host computer onto the client machine. You can double-check that they mounted successfully in several ways. You can check this with a plain mount or findmnt command, but df -h will give you more human readable output illustrates how disk usage is displayed differently for the nfs shares:
Output
<code>
Filesystem Size Used Avail Use% Mounted on
udev 238M 0 238M 0% /dev
203.0.113.0:/home 20G 1.2G 18G 7% /nfs/home
203.0.113.0:/var/nfs/general 20G 1.2G 18G 7% /nfs/general
</code>
Both of the shares we mounted appear at the bottom. Because they were mounted from the same file system, they show the same disk usage. To see how much space is actually being used under each mount point, use the disk usage command du and the path of the mount. The -s flag will provide a summary of usage rather than displaying the usage for every file. The -h will print human readable output.