Additions:
/data 192.168.0.2(rw,no_root_squash,async)
Deletions:
/data 192.168.0.2(rw,no_root_squash)
Additions:
Make the mount permanent, edit /etc/fstab
192.168.0.1:/data /nfs.data nfs defaults 0 0
Setting up NFS server
Edit the export file in /etc/exports
/data 192.168.0.2(rw,no_root_squash)
Enable and start NFS service
chkconfig --level 35 portmap on
chkconfig --level 35 nfs on
service portmap start
service nfs start
If portmap is not started, you will get an error similiar to the following:
Cannot register service: RPC: Unable to receive; errno = Connection refused
rpc.rquotad: unable to register
Mounting the NFS share on remote machine
Create the mount point directory, then mount the NFS share
mkdir /nfs.data
mount 192.168.0.1:/data /nfs.data