Trying to set NFS server may turn to be an unnecessary “excitement” if you forget that on some LINUXes (like RHEL, Centos, ULN version 6 and above)
portmap does no longer exist because it is now a part and it is now controlled by
# service portmap start portmap: unrecognized service
NFS server can be set configured and activated as long as these two rpms are loaded:
# rpm -q | grep nfs nfs-utils-lib-1.1.5-11.el6.x86_64 nfs-utils-1.2.3-64.el6.x86_64
All that need to be done are the following steps.
# service rpcbind start Starting rpcbind: [ OK ] # # service nfs start Starting NFS services: [ OK ] Starting NFS quotas: [ OK ] Starting NFS mountd: [ OK ] Starting NFS daemon: [ OK ] Starting RPC idmapd: [ OK ]
To start NFS services at the boot time, we need to make it known with the next two commands.
# chkconfig rpcbind on # chkconfig nfs on
Well, you have to designate a file system that you will be exporting and edit the
/etc/exports followed by execution of the command
exportfs -a. On the client, you should be able to “see” this file system executing the command
showmount -e nfs_servername where the last is the name or IP address of the nfs server you will be exporting from.