Mount NFS drive in CentOS
The NAS has NFS enabled as one of the services. It's locked down to 2 IPs and *.z22se.org.uk
The router is port forwarding 2049, 717 and 111 to the NAS

Install the NFS services on the server
root@vps [~]# yum install nfs-utils nfs-utils-lib
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.nl.leaseweb.net
* extras: mirror.nl.leaseweb.net
* rpmforge: mirror.nl.leaseweb.net
* updates: mirror.i3d.net
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
rpmforge | 1.9 kB 00:00
updates | 3.4 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package nfs-utils.x86_64 1:1.2.3-36.el6 will be installed
--> Processing Dependency: keyutils >= 1.4-4 for package: 1:nfs-utils-1.2.3-36.el6.x86_64
--> Processing Dependency: rpcbind for package: 1:nfs-utils-1.2.3-36.el6.x86_64
--> Processing Dependency: libtirpc for package: 1:nfs-utils-1.2.3-36.el6.x86_64
--> Processing Dependency: libgssglue.so.1(libgssapi_CITI_2)(64bit) for package: 1:nfs-utils-1.2.3-36.el6.x86_64
--> Processing Dependency: libgssglue for package: 1:nfs-utils-1.2.3-36.el6.x86_64
--> Processing Dependency: libevent for package: 1:nfs-utils-1.2.3-36.el6.x86_64
--> Processing Dependency: libtirpc.so.1()(64bit) for package: 1:nfs-utils-1.2.3-36.el6.x86_64
--> Processing Dependency: libgssglue.so.1()(64bit) for package: 1:nfs-utils-1.2.3-36.el6.x86_64
--> Processing Dependency: libevent-1.4.so.2()(64bit) for package: 1:nfs-utils-1.2.3-36.el6.x86_64
---> Package nfs-utils-lib.x86_64 0:1.1.5-6.el6 will be installed
--> Running transaction check
---> Package keyutils.x86_64 0:1.4-4.el6 will be installed
---> Package libevent.x86_64 0:1.4.13-4.el6 will be installed
---> Package libgssglue.x86_64 0:0.1-11.el6 will be installed
---> Package libtirpc.x86_64 0:0.2.1-6.el6_4 will be installed
---> Package rpcbind.x86_64 0:0.2.0-11.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================
Installing:
nfs-utils x86_64 1:1.2.3-36.el6 base 319 k
nfs-utils-lib x86_64 1.1.5-6.el6 base 67 k
Installing for dependencies:
keyutils x86_64 1.4-4.el6 base 39 k
libevent x86_64 1.4.13-4.el6 base 66 k
libgssglue x86_64 0.1-11.el6 base 23 k
libtirpc x86_64 0.2.1-6.el6_4 updates 78 k
rpcbind x86_64 0.2.0-11.el6 base 51 k
Transaction Summary
=====================================================================================================================================================
Install 7 Package(s)
Total download size: 644 k
Installed size: 1.7 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): keyutils-1.4-4.el6.x86_64.rpm | 39 kB 00:00
(2/7): libevent-1.4.13-4.el6.x86_64.rpm | 66 kB 00:00
(3/7): libgssglue-0.1-11.el6.x86_64.rpm | 23 kB 00:00
(4/7): libtirpc-0.2.1-6.el6_4.x86_64.rpm | 78 kB 00:00
(5/7): nfs-utils-1.2.3-36.el6.x86_64.rpm | 319 kB 00:00
(6/7): nfs-utils-lib-1.1.5-6.el6.x86_64.rpm | 67 kB 00:00
(7/7): rpcbind-0.2.0-11.el6.x86_64.rpm | 51 kB 00:00
-----------------------------------------------------------------------------------------------------------------------------------------------------
Total 2.6 MB/s | 644 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libgssglue-0.1-11.el6.x86_64 1/7
Installing : libtirpc-0.2.1-6.el6_4.x86_64 2/7
Installing : rpcbind-0.2.0-11.el6.x86_64 3/7
Installing : keyutils-1.4-4.el6.x86_64 4/7
Installing : libevent-1.4.13-4.el6.x86_64 5/7
Installing : nfs-utils-lib-1.1.5-6.el6.x86_64 6/7
Installing : 1:nfs-utils-1.2.3-36.el6.x86_64 7/7
Verifying : rpcbind-0.2.0-11.el6.x86_64 1/7
Verifying : 1:nfs-utils-1.2.3-36.el6.x86_64 2/7
Verifying : libevent-1.4.13-4.el6.x86_64 3/7
Verifying : nfs-utils-lib-1.1.5-6.el6.x86_64 4/7
Verifying : libgssglue-0.1-11.el6.x86_64 5/7
Verifying : keyutils-1.4-4.el6.x86_64 6/7
Verifying : libtirpc-0.2.1-6.el6_4.x86_64 7/7
Installed:
nfs-utils.x86_64 1:1.2.3-36.el6 nfs-utils-lib.x86_64 0:1.1.5-6.el6
Dependency Installed:
keyutils.x86_64 0:1.4-4.el6 libevent.x86_64 0:1.4.13-4.el6 libgssglue.x86_64 0:0.1-11.el6 libtirpc.x86_64 0:0.2.1-6.el6_4
rpcbind.x86_64 0:0.2.0-11.el6
Complete!
Start rpcbind
root@vps [~]# /etc/init.d/rpcbind start
Starting rpcbind: [ OK ]
root@vps [~]#
Enable at boot
root@vps [~]# chkconfig rpcbind on
Make the NFS directory
root@vps [~]# mkdir -p /mnt/nfs/home
Mount the directory
root@vps [~]# mount home.z22se.com:/nfs/Websites /mnt/nfs/home/
df -h to see if it's visible
root@vps [~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda 40G 16G 22G 42% /
none 1004M 0 1004M 0% /dev/shm
/usr/tmpDSK 485M 11M 449M 3% /tmp
home.z22se.com:/nfs/Websites
930G 420G 511G 46% /mnt/nfs/home
To enable it to mount during boot up, add an entry to /etc/fstab
home.z22se.com:/nfs/Websites /mnt/nfs/home nfs auto,noatime,nolock,bg,nfsvers=3,intr,tcp,actimeo=1800 0 0
This is now working as a mounted drive
root@vps [~]# cd /mnt/nfs/home/
root@vps [/mnt/nfs/home]# ls -hl
total 316M
drwxrwx---+ 7 root users 4.0K Oct 24 18:28 ./
drwxr-xr-x 3 root root 4.0K Oct 24 18:27 ../
drwxrwx---+ 2 root users 21 Sep 26 2012 .AppleDesktop/
drwxrwx---+ 3 root users 4.0K Oct 7 03:31 Databases/
drwxrwx---+ 3 root users 25 Sep 26 2012 Network\ Trash\ Folder/
drwxrwx---+ 3 root users 25 Sep 26 2012 Temporary\ Items/
drwxrwx---+ 2 root root 6 Oct 24 18:32 VPSBackup/
-rw-rwx---+ 1 root users 316M Sep 17 08:59 backup-9.17.2013_08-58-42_pure1.tar.gz*
root@vps [/mnt/nfs/home]#