Network File System (NFS)
Network File System (NFS) is a popular distributed filesystem protocol that enables users to mount remote directories on their server. The system lets you leverage storage space in a different location and write onto the same space from multiple servers in an effortless manner.Lets configure NIC Server
Step 1:
install the NIC# yum install ypserver rpcbind
change the domain
# ypdomainname "naveen.in"
edit the network conf as mentioned below
# vi /etc/sysconfig/network
NISDOMAIN="naveen.in"
edit the network conf as mentioned below
# vi /var/yp/securenets
(netmask)255.255.255.0 192.168.1.0
# /usr/lib64/yp/ypinit -m
6.1 press ctrl+d
6.2 y
Step2:
create an new user
# useradd naveen
# passwd naveen
# cd /var/yp/
# make
# systemctl restart rpcbind ypserv ypxfrd yppasswdd
# iptables -F
NIC client
Step 1:
install the NIC at client Machine# yum install ypbind rpcbind
change the network configuration as mentioned below
# authconfig-tui
only enable * use nic and * use shadow passwords options
space bar = check or uncheck
tab = for next option
Domain - naveen.in
server - 192.168.1.179 /server ip address
Step 2:
# ypcat passwd
restart client machine and login with new user name ,user name - naveen and enter password
NFS install on server side
after creating NIC then install NFS on server sideStep 1:
# yum install nfs-utils
Step 2:
yp # vi /etc/exports/home 192.168.1.0/24(rw,sync)
yp # systemctl start nfs
yp # iptables -F
NFS client side
# mount -t nfs 192.168.1.179:/home /homenote: first /home = export from this location
second /home = here mounting was done
192.168.1.179 = server ip address
Comments
Post a Comment