What is NFS?
2
Benefits of NFS
Easy to use
3
NFS works ?
NFS
NFS A
B
Server
Server
192.168.0.253
192.168.0.253
/var/zoom
/var/zoom
Linux
Linux Linux
Linux
Client
Client A
Client B
Client
/nfs
/nfs /nfs
/nfs
User1 User2
4
Requirements
Packages
portmap-4.0-63.i386.rpm
nfs-utils-1.0.6-46.i386.rpm
Port Numbers
2049 Nfsd
111 Portmap
Configuration File
/etc/exports
Service
portmap
nfs
Daemons
nfsd
mountd
statd
lockd
5
NFS Configuration
NFS
NFS
Server
Server
192.168.0.253
192.168.0.253
/var/zoom
/var/zoom
Linux
Linux Linux
Linux
Client
Client Client
Client
/nfs
/nfs /nfs
/nfs
6
Configuring NFS Server
Install
Installthe
thepackage
packageby
byusing
usingone
oneof
ofthe
theinstallation
installationmethods
methods
[root@comp1~]#
[root@comp1~]# mount 192.168.0.250:/var/ftp/pub/RedHat/RPMS/ /mnt
mount 192.168.0.250:/var/ftp/pub/RedHat/RPMS/ /mnt
[root@comp1 ~]# cd /mnt
[root@comp1 ~]# cd /mnt
[root@comp1
[root@comp1~]#
~]#rpm
rpm -ivh
-ivh nfs*
nfs* --force
--force --aid
--aid
Create
Createdirectory
directoryto
tobe
beshared
shared
[root@comp1~]#
[root@comp1~]#mkdir
mkdir/var/zoom
/var/zoom
Open
Openconfiguration
configurationfor
forediting
editing
[root@comp1~]# vi /etc/exports
[root@comp1~]# vi /etc/exports
7
/etc/exports
To
Toadd
addthe
thebelow
below
/var/zoom
/var/zoom 192.168.0.0/255.255.255(ro,async)
192.168.0.0/255.255.255(ro,async)
8
NFS Server
To
Torestart
restartthe
theNFS
NFSservices
services
[root@comp1 ~]# service nfs restart
[root@comp1 ~]# service nfs restart
To
Tocheck
checkNFS
NFS server
server
[root@comp1
[root@comp1~]#
~]#showmount
showmount -e-e <servername
<servername or
orserver
serverip>
ip>
9
Configuring Client
Create
CreateMount
Mountpoint
pointon
onclient
client
[root@comp1 ~]# mkdir /nfs
[root@comp1 ~]# mkdir /nfs
Mount
Mountremote
remoteshared
sharedfilesystem
filesystemon
onlocal
localmount
mountpoint
point
[root@comp1
[root@comp1~]#
~]#mount
mount 192.168.0.253:/var/zoom
192.168.0.253:/var/zoom /nfs
/nfs
[root@comp1
[root@comp1~]#
~]#cd
cd /nfs
/nfs
10