Tuesday, March 22, 2011

NFS Mount :- sharing a partition on a different host

On nfsserver (192.168.10.5)


# cat /etc/exports
/home 192.168.10.4/24(rw,sync)

Note:-192.168.10.4 is the NFS client where you want to see /home

restart nfs server or restart below services.
#service rpcbind restart
#service nfs restart
#service nfslock restart


On nfsclient (192.168.10.4)

[root@nfsclient /]# mount 192.168.10.5:/home/ /test/

[root@nfsclient /]# cd /test/

[root@nfsclient test]# ls
1         backup_plan    idmcerts.jks  lost+found        oraInventory
APP_home  env_sriram.sh  logs          oraInst.loc.orig  repos

For permanent Mount:
Edit /etc/fstab:
192.168.10.5:/home /test nfs defaults 0 0

Reload the fstab file by:
#mount -a


FYI: 


Some of the important nfs daemons are:
.rpcbind
.nfs
.netfs
.nfslock
.portmapper

No comments:

Post a Comment