CONFIGURE NFS SERVER
IN RHEL6
SERVER SIDE
CONFIGURATION
[root@gagan ~]# yum –y install nfs*
[root@gagan ~]# vi /etc/exports
#(Insert the following
entry)
/home
192.168.0.0/24(rw,sync,no_root_squash,no_all_squash)
# options
# /home = shared directory.
# 192.162.0.0/24 = Range of the network which nfs will
# grant access to.
# rw = Read and write
access.
# ro = Read only
access.
# sync = synchronize
# no_root_squash = enables root access and privilege.
# no_all_squash = enables user access.
[root@gagan ~]# service nfslock restart
[root@gagan ~]# service nfs restart
[root@gagan ~]# chkconfig nfslock on
[root@gagan ~]# chkconfig nfs on
CLIENT
CONFIGURATION
[root@anjana ~]# yum –y install nfs*
[root@anjana ~]# service nfslock restart
[root@anjana ~]# service netfs restart
[root@anjana ~]# chkconfig nfslock on
[root@anjana ~]# chkconfig netfs on
[root@anjana ~]# mount –t nfs 192.168.0.63:/home /home
[root@anjana ~]# df –h
o nfs — (/sbin/service nfs start)
starts the NFS server and the appropriate RPC processes to service requests for
shared NFS file systems.
o nfslock — (/sbin/service nfslock start) is a
mandatory service that starts the appropriate RPC processes to allow NFS
clients to lock files on the server.
[root@anjana ~]# vi /etc/fstab
# insert the following
entry in the fstab file
192.168.0.63:/home /home
nfs
defaults,_netdev 1
1
[root@anjana ~]# mount-a
No comments:
Post a Comment