NFS
Introduction:- NFS means Network File System used for
distributed file system protocol at whichwe allow acess to files from multiple
hosts sharing via a computer network NFS is developed by sun microsystem it allowing a user on client
computer to access files over a network in a manner similar to how local
storage is access
Steps how to configure
a NFS server
To configure the NFS service we required the
three type of service nfs service,portmap service,xinetd service first check
that there are all three service is install in the system or not if there are
not install all these services the you will copy the service folder from ur
redhat iso image or DVD
Following steps is used
to configure the NFS server
Step1:- mount the
pendrive into system
a)
To check whether a pendrive is attaced with system mount
/dev/sd
b) now select the port of
external device mount
/dev/sdb1 /mnt
c) Copy-Paste the
services folder from redhat into
system named as /dump
cp
-rf /mnt/server/* /dump
Step2:-
a)
now install all the
createrepo Package from ur /dump Directory by rpm command
rpm -ivh /dump/createrepo-0.4.4-2.fc6.noarch.rpm
b)
after install type command createrepo –v /dump
b)
Step3:- now install the
nfs service,portmap service,xinetd service from /dump directory rpm
–ivh /dump/nfs*
Step4:- also install
the xinetd service from /dump directory
rpm –ivh /dump/xinetd*
Step5:- Restart the nfs
service
Step6:- Restart the
portmap service
Step7:- Now restart the
xinetd sevice
Step8:- After reboot it
check the configuration on
chkconfig
portmap on
chkconfig
xinetd on
chkconfig
nfs on
Step8:-Now you check
that all the sevices all running or not
a)
Service nfs status
b) Service portmap status
c) Service xinetd status
Step9:- Create a
directory /data and provide full acess to it
mkdir /data
Step10:- now edit the
exports file using vi editer
vi /etc/exports
Step11:-
Open the configuration file and type the line
/data *(rw,sync)
And save this by type shift+:+wqa
Step12:- Now restart
all the services nfs,portmap,xinetd
Step13:- exportfs –r used to restart the nfs daemons
Step14:- Showmount
command is used to display all the directories from the specific host machine
Showmount -e