SlideShare a Scribd company logo
. NETWORK FILE
SYSTEM (NFS) Linux
1. A Network File System (NFS) allows remote hosts to mount file
systems over a network and interact with those file systems as
though they are mounted locally.
2. This enables system administrators to consolidate resources onto
centralized servers on the network.
HOW NFS WORKS
TCP is the default transport protocol for NFS version 2 and 3 under
Red Hat Enterprise Linux. UDP can be used for compatibility purposes
as needed, but is not recommended for wide usage. NFSv4 requires
TCP. All the RPC/NFS daemons have a '-p' command line option that
can set the port, making firewall configuration easier.
After TCP wrappers grant access to the client, the NFS server refers to
the /etc/exports configuration file to determine whether the client is
allowed to access any exported file systems. Once verified, all file and
directory operations are available to the user.
nfs
service nfs start starts the NFS server and the appropriate RPC
processes to service
requests for shared NFS file systems.
nfslock
service nfslock start activates a mandatory service that starts the
appropriate RPC
processes allowing NFS clients to lock files on the server.
rpcbind
rpcbind accepts port reservations from local RPC services. These
ports are then made
available (or advertised) so the corresponding remote RPC services
can access them.
rpcbind responds to requests for RPC services and sets up
connections to the
requested RPC service. This is not used with NFSv4.
THE FOLLOWING RPC
PROCESSES FACILITATE NFS
SERVICES:
rpc.mountd
rpc.nfsd
Lockd
rpc.statd
rpc.rquotad
rpc.idmapd
NFS CLIENT CONFIGURATION
The mount command mounts NFS shares on the client side. Its format
is as follows:
# mount -t nfs -o options host:/remote/export /local/directory
This command uses the following variables:
options
A comma-delimited list of mount options; refer to Section 8.5, “Common NFS Mount
Options” for details on valid NFS mount options.
server
The hostname, IP address, or fully qualified domain name of the server exporting the file
system you wish to mount
/remote/export
The file system or directory being exported from the server, that is, the directory you wish to
mount
/local/directory
The client location where /remote/export is mounted
The NFS protocol version used in Red Hat Enterprise Linux 7 is
identified by the mount options nfsvers or vers. By default, mount will
use NFSv4 with mount -t nfs. If the server does not support NFSv4,
the client will automatically step down to a version supported by the
server. If the nfsvers/vers option is used to pass a particular version
not supported by the server, the mount will fail. The file system type
nfs4 is also available for legacy reasons; this is equivalent to running
mount -t nfs -o nfsvers=4 host:/remote/export /local/directory.
Mounting NFS File Systems using /etc/fstab
An alternate way to mount an NFS share from another machine is to
add a line to the /etc/fstab file. The line must state the hostname of
the NFS server, the directory on the server being exported, and the
directory on the local machine where the NFS share is to be mounted.
You must be root to modify the /etc/fstab file.
Syntax example
The general syntax for the line in /etc/fstab is as follows:
server:/usr/local/pub /pub nfs defaults 0 0
The mount point /pub must exist on the client machine before this
command can be
executed. After adding this line to /etc/fstab on the client system,
use the command
mount /pub, and the mount point /pub is mounted from the server.
The /etc/fstab file is referenced by the netfs service at boot time, so
lines referencing
NFS shares have the same effect as manually typing the mount
command during the
boot process.
A valid /etc/fstab entry to mount an NFS export should contain the
following information:
server:/remote/export /local/directory nfs options 0 0

More Related Content

PPS
Linux06 nfs
PPTX
Network File System in Distributed Computing
PPTX
Linux network file system (nfs)
PPT
PPT
PPTX
Nfs version 4 protocol presentation
Linux06 nfs
Network File System in Distributed Computing
Linux network file system (nfs)
Nfs version 4 protocol presentation

What's hot (20)

PPT
NETWORK FILE SYSTEM
PPT
Nf Sp4
PPTX
Linux System Administration - NFS Server
PDF
The NFS Version 4 Protocol
PDF
Nfs protocol sequence_diagram
PPTX
Sun NFS , Case study
PPTX
SUN Network File system - Design, Implementation and Experience
PDF
Red Hat Enterprise Linux and NFS by syedmshaaf
PPT
Presentation on nfs,afs,vfs
PPT
network filesystem briefs
PDF
Meeting 9 nfs network file system
PDF
NFS(Network File System)
PPT
PPTX
AFS introduction
PPTX
Presentation on samba server
ODP
Linux commands
PPT
Linux commands
PPTX
Linux commands
PPTX
Linux Based Network Proposal
DOCX
Linux basic commands tutorial
NETWORK FILE SYSTEM
Nf Sp4
Linux System Administration - NFS Server
The NFS Version 4 Protocol
Nfs protocol sequence_diagram
Sun NFS , Case study
SUN Network File system - Design, Implementation and Experience
Red Hat Enterprise Linux and NFS by syedmshaaf
Presentation on nfs,afs,vfs
network filesystem briefs
Meeting 9 nfs network file system
NFS(Network File System)
AFS introduction
Presentation on samba server
Linux commands
Linux commands
Linux commands
Linux Based Network Proposal
Linux basic commands tutorial
Ad

Viewers also liked (12)

PPSX
NFS – Network File System
PPTX
Aula 5 (raid)
PPT
Presentation on samba server & apache server
PDF
Nfs, Nis, DHCP
PPT
Samba server configuration
PPT
FILE SERVER
PPT
Samba
PPT
4.file service architecture
PPT
Samba server
PPT
3. distributed file system requirements
PPTX
The Basic Introduction of Open vSwitch
NFS – Network File System
Aula 5 (raid)
Presentation on samba server & apache server
Nfs, Nis, DHCP
Samba server configuration
FILE SERVER
Samba
4.file service architecture
Samba server
3. distributed file system requirements
The Basic Introduction of Open vSwitch
Ad

Similar to Network file system (nfs) (20)

PDF
PPT
NFS.ppt shshsjsjsjssjsjsksksksksksisisisisi
PDF
Access Network Attached Storage in RHEL - RHCSA (RH134).pdf
PPTX
Network File System
PPTX
NFS is an excellent way of sharing files between linux and other unix systems
PPT
Solaris 10 administration 2 Configuring NFS
PPT
Server configuration
PPT
NFS.ppt
PDF
Network File System (NFS)
PDF
sharing-filesystems-using-nfs-slides.pdf
PPT
Chapter 05
ODP
NFS ubuntu Server and windows 7 Client
PDF
How to Install NFS Server and Client on Ubuntu 2404.pdf
PPT
Ch18 system administration
PPTX
Case Study - SUN NFS
PDF
file-storage-100.pdf
PDF
Introduction to distributed file systems
PPTX
Kubecon shanghai rook deployed nfs clusters over ceph-fs (translator copy)
PPT
Distributed File Systems
PPTX
Rhel cluster basics 2
NFS.ppt shshsjsjsjssjsjsksksksksksisisisisi
Access Network Attached Storage in RHEL - RHCSA (RH134).pdf
Network File System
NFS is an excellent way of sharing files between linux and other unix systems
Solaris 10 administration 2 Configuring NFS
Server configuration
NFS.ppt
Network File System (NFS)
sharing-filesystems-using-nfs-slides.pdf
Chapter 05
NFS ubuntu Server and windows 7 Client
How to Install NFS Server and Client on Ubuntu 2404.pdf
Ch18 system administration
Case Study - SUN NFS
file-storage-100.pdf
Introduction to distributed file systems
Kubecon shanghai rook deployed nfs clusters over ceph-fs (translator copy)
Distributed File Systems
Rhel cluster basics 2

More from Raghu nath (20)

PPTX
Mongo db
PDF
Ftp (file transfer protocol)
PDF
MS WORD 2013
PDF
Msword
PDF
Ms word
PDF
Javascript part1
PDF
Regular expressions
PDF
Selection sort
PPTX
Binary search
PPTX
JSON(JavaScript Object Notation)
PDF
Stemming algorithms
PPTX
Step by step guide to install dhcp role
PPTX
Network essentials chapter 4
PPTX
Network essentials chapter 3
PPTX
Network essentials chapter 2
PPTX
Network essentials - chapter 1
PPTX
Python chapter 2
PPTX
python chapter 1
PPTX
Linux Shell Scripting
PPTX
Mongo db
Ftp (file transfer protocol)
MS WORD 2013
Msword
Ms word
Javascript part1
Regular expressions
Selection sort
Binary search
JSON(JavaScript Object Notation)
Stemming algorithms
Step by step guide to install dhcp role
Network essentials chapter 4
Network essentials chapter 3
Network essentials chapter 2
Network essentials - chapter 1
Python chapter 2
python chapter 1
Linux Shell Scripting

Recently uploaded (20)

PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
RMMM.pdf make it easy to upload and study
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Classroom Observation Tools for Teachers
PPTX
Cell Structure & Organelles in detailed.
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Pre independence Education in Inndia.pdf
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
master seminar digital applications in india
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
Institutional Correction lecture only . . .
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Insiders guide to clinical Medicine.pdf
PDF
Business Ethics Teaching Materials for college
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
human mycosis Human fungal infections are called human mycosis..pptx
RMMM.pdf make it easy to upload and study
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Classroom Observation Tools for Teachers
Cell Structure & Organelles in detailed.
Module 4: Burden of Disease Tutorial Slides S2 2025
Abdominal Access Techniques with Prof. Dr. R K Mishra
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Pre independence Education in Inndia.pdf
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
master seminar digital applications in india
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Institutional Correction lecture only . . .
Microbial diseases, their pathogenesis and prophylaxis
Insiders guide to clinical Medicine.pdf
Business Ethics Teaching Materials for college

Network file system (nfs)

  • 1. . NETWORK FILE SYSTEM (NFS) Linux
  • 2. 1. A Network File System (NFS) allows remote hosts to mount file systems over a network and interact with those file systems as though they are mounted locally. 2. This enables system administrators to consolidate resources onto centralized servers on the network.
  • 3. HOW NFS WORKS TCP is the default transport protocol for NFS version 2 and 3 under Red Hat Enterprise Linux. UDP can be used for compatibility purposes as needed, but is not recommended for wide usage. NFSv4 requires TCP. All the RPC/NFS daemons have a '-p' command line option that can set the port, making firewall configuration easier. After TCP wrappers grant access to the client, the NFS server refers to the /etc/exports configuration file to determine whether the client is allowed to access any exported file systems. Once verified, all file and directory operations are available to the user.
  • 4. nfs service nfs start starts the NFS server and the appropriate RPC processes to service requests for shared NFS file systems. nfslock service nfslock start activates a mandatory service that starts the appropriate RPC processes allowing NFS clients to lock files on the server.
  • 5. rpcbind rpcbind accepts port reservations from local RPC services. These ports are then made available (or advertised) so the corresponding remote RPC services can access them. rpcbind responds to requests for RPC services and sets up connections to the requested RPC service. This is not used with NFSv4.
  • 6. THE FOLLOWING RPC PROCESSES FACILITATE NFS SERVICES: rpc.mountd rpc.nfsd Lockd rpc.statd rpc.rquotad rpc.idmapd
  • 7. NFS CLIENT CONFIGURATION The mount command mounts NFS shares on the client side. Its format is as follows: # mount -t nfs -o options host:/remote/export /local/directory
  • 8. This command uses the following variables: options A comma-delimited list of mount options; refer to Section 8.5, “Common NFS Mount Options” for details on valid NFS mount options. server The hostname, IP address, or fully qualified domain name of the server exporting the file system you wish to mount /remote/export The file system or directory being exported from the server, that is, the directory you wish to mount /local/directory The client location where /remote/export is mounted
  • 9. The NFS protocol version used in Red Hat Enterprise Linux 7 is identified by the mount options nfsvers or vers. By default, mount will use NFSv4 with mount -t nfs. If the server does not support NFSv4, the client will automatically step down to a version supported by the server. If the nfsvers/vers option is used to pass a particular version not supported by the server, the mount will fail. The file system type nfs4 is also available for legacy reasons; this is equivalent to running mount -t nfs -o nfsvers=4 host:/remote/export /local/directory.
  • 10. Mounting NFS File Systems using /etc/fstab An alternate way to mount an NFS share from another machine is to add a line to the /etc/fstab file. The line must state the hostname of the NFS server, the directory on the server being exported, and the directory on the local machine where the NFS share is to be mounted. You must be root to modify the /etc/fstab file.
  • 11. Syntax example The general syntax for the line in /etc/fstab is as follows: server:/usr/local/pub /pub nfs defaults 0 0 The mount point /pub must exist on the client machine before this command can be executed. After adding this line to /etc/fstab on the client system, use the command mount /pub, and the mount point /pub is mounted from the server.
  • 12. The /etc/fstab file is referenced by the netfs service at boot time, so lines referencing NFS shares have the same effect as manually typing the mount command during the boot process. A valid /etc/fstab entry to mount an NFS export should contain the following information: server:/remote/export /local/directory nfs options 0 0