Wednesday, 3 October 2012

Create NFS (Newtwork File system)


Machine A
rpm -ivh nfs*
rpm -ivh system-config-nfs*

Note: make the dir where to share the directory i have to use /u01/oracle/

--on terminal type
system-config-nfs //share directory
then after
ADD >
Directory - /u01/oracle >
hosts - * >
read/write permission then ok


service portmap restart
service nfs restart
chkconfig nfs on
chkconfig portmap on

--Permanent method
vim etc/fstab
192.168.220.2:/oracle /u01 nfs defaults 0 0
showmount -e 192.168.220.2

client Machine B:
--Permanent method
vim etc/fstab
192.168.220.2:/oracle /u01 nfs defaults 0 0
mount -t 192.168.220.2:/u01/oracle /u01/oracle

No comments: