This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
hpc:installnfs [2020/01/29 09:33] miriel@uclv |
hpc:installnfs [2020/01/29 10:17] miriel@uclv [Mouting NFS Share on the Client] |
||
---|---|---|---|
Line 76: | Line 76: | ||
<code> | <code> | ||
yum -y install nfs-utils | yum -y install nfs-utils | ||
+ | </code> | ||
+ | ===== Mouting NFS Share on the Client ===== | ||
+ | We need to create a folder on clients where we are going to mount the remote NFS folder | ||
+ | |||
+ | <code> | ||
+ | mkdir /opt/apps | ||
+ | </code> | ||
+ | |||
+ | <code> | ||
+ | mount -t nfs -o nfsvers=4 10.10.2.242:/opt/apps /opt/apps | ||
+ | </code> | ||
+ | |||
+ | Verifying its all ok | ||
+ | |||
+ | <code> | ||
+ | df -hT | grep /opt/apps | ||
+ | </code> | ||
+ | |||
+ | To persist the changes across system reboots, Configure NFS mounting on /etc/fstab. | ||
+ | |||
+ | <code> | ||
+ | vi /etc/fstab | ||
+ | </code> | ||
+ | |||
+ | Add a line like with the following syntax to the end of file. | ||
+ | |||
+ | <code> | ||
+ | 10.10.2.242:/opt/apps /opt/apps nfs defaults 0 0 | ||
+ | </code> | ||
+ | |||
+ | Test your settings. | ||
+ | |||
+ | <code> | ||
+ | $ sudo umount /mnt | ||
+ | $ sudo mount -a | ||
+ | $ df -hT | grep /mnt | ||
</code> | </code> | ||