Linux – Installing NFS module on a dedicated server

linuxnfsredhat

I've got a dedicated server which does not have the NFS module installed on it. How can I install it?

It was not listed in /proc/filesystems

root@server [~]# cat /proc/filesystems | grep 'nfs'

And I wasn’t able to install it as a module

root@server [~]# insmod nfs
insmod: can't read 'nfs': No such file or directory

Best Answer

Assuming you are using RHEL/CentOS 5 and you want to setup an NFS CLIENT in that box:

  1. yum install nfs-utils
  2. service portmap start (or bounce the server)

and you are ready to go.

Assuming you are using RHEL/CentOS 5 and you want to setup an NFS SERVER in that box:

  1. yum install nfs-utils
  2. chkconfig nfs on (to activate the service when booting)
  3. service portmap start
  4. service nfs start

the last 2 are not required if you reboot the server. You don't need to load modules manually for this to work.