SlideShare a Scribd company logo
LINUX Network File System(NFS)
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
USING LDAP TO STORE
AUTOMOUNTER MAPS
LDAP client libraries must be installed on all systems configured to
retrieve automounter maps from LDAP. On Red Hat Enterprise Linux,
the openldap package should be installed automatically as a
dependency of the automounter. To configure LDAP access, modify
/etc/openldap/ldap.conf. Ensure that BASE, URI, and schema are set
appropriately for your site.
The most recently established schema for storing automount maps in
LDAP is described by rfc2307bis. To use this schema it is necessary
to set it in the autofs configuration (/etc/sysconfig/autofs) by
removing the comment characters from the schema definition.
Setting autofs configuration
DEFAULT_MAP_OBJECT_CLASS="automountMap"
DEFAULT_ENTRY_OBJECT_CLASS="automount"
DEFAULT_MAP_ATTRIBUTE="automountMapName"
DEFAULT_ENTRY_ATTRIBUTE="automountKey"
DEFAULT_VALUE_ATTRIBUTE="automountInformation"
Ensure that these are the only schema entries not commented in the
configuration. The
automountKey replaces the cn attribute in the rfc2307bis schema. An
LDIF of a sample configuration is described below:
LDF CONFIGURATION
# extended LDIF
#
# LDAPv3
# base <> with scope subtree
# filter: (&(objectclass=automountMap)(automountMapName=auto.master))
# requesting: ALL
#
# auto.master, example.com
dn: automountMapName=auto.master,dc=example,dc=com
objectClass: top
objectClass: automountMap
automountMapName: auto.master
# extended LDIF
#
# LDAPv3
# base <automountMapName=auto.master,dc=example,dc=com>
with scope
subtree
# filter: (objectclass=automount)
# requesting: ALL
#
COMMON NFS MOUNT OPTIONS
Beyond mounting a file system with NFS on a remote host, it is also
possible to specify other options at mount time to make the mounted
share easier to use. These options can be used with manual mount
commands, /etc/fstab settings, and autofs
The following are options commonly used for NFS mounts:
intr
Allows NFS requests to be interrupted if the server goes down or
cannot be reached.
lookupcache= mode
Specifies how the kernel should manage its cache of directory entries for a
given mount point. Valid arguments for mode are all, none, or pos/positive.
nfsvers= version
Specifies which version of the NFS protocol to use, where version is 2, 3, or
4. This is useful for hosts that run multiple NFS servers. If no version is
specified, NFS uses the highest version supported by the kernel and mount
command.
The option vers is identical to nfsvers, and is included in this release for
compatibility reasons.
Noacl Turns off all ACL processing. This may be needed when interfacing
with older versions of
Red Hat Enterprise Linux, Red Hat Linux, or Solaris, since the most recent
nolock
Disables file locking. This setting is occasionally required when
connecting to older NFS servers.
noexec
Prevents execution of binaries on mounted file systems. This is useful
if the system is mounting a non-Linux file system containing
incompatible binaries.
nosuid
Disables set-user-identifier or set-group-identifier bits. This
prevents remote users from gaining higher privileges by running a
setuid program.
port=num
port=num — Specifies the numeric value of the NFS server port. If num is 0 (the
default), then mount queries the remote host's rpcbind service for the port
number to use. If the remote host's NFS daemon is not registered with its
rpcbind service, the standard NFS port number of TCP 2049 is used instead.
rsiz e=num and wsiz e=num
These settings speed up NFS communication for reads (rsize) and writes (wsize)
by
setting a larger data block size (num, in bytes), to be transferred at one time. Be
careful
when changing these values; some older Linux kernels and network cards do not
work well
with larger block sizes. For NFSv3, the default values for both parameters is set
to 8192.
sec= mode
Its default setting is sec=sys, which uses local UNIX UIDs and GIDs. These
use AUTH_SYS
to authenticate NFS operations.“
sec=krb5 uses Kerberos V5 instead of local UNIX UIDs and GIDs to
authenticate users.
sec=krb5i uses Kerberos V5 for user authentication and performs integrity
checking of
NFS operations using secure checksums to prevent data tampering.
sec=krb5p uses Kerberos V5 for user authentication, integrity checking, and
encrypts NFS
traffic to prevent traffic sniffing. This is the most secure setting, but it also
tcp
Instructs the NFS mount to use the TCP protocol.
udp
Instructs the NFS mount to use the UDP protocol.
For a complete list of options and more detailed information on each
one, refer to man mount and man nfs.
Starting and Stopping NFS
To run an NFS server, the rpcbind
[1] service must be running. To verify that rpcbind is active, use the
following command:
# service rpcbind status
If the rpcbind service is running, then the nfs service can be started.
To start an NFS server, use the following command:
# service nfs start
nfslock must also be started for both the NFS client and server to function
properly. To start NFS locking, use the following command:
# service nfslock start
If NFS is set to start at boot, ensure that nfslock also starts by running
chkconfig --list
nfslock. If nfslock is not set to on, this implies that you will need to manually
run the service
nfslock start each time the computer starts. To set nfslock to automatically
start on boot, use
chkconfig nfslock on.
nfslock is only needed for NFSv3.
To stop the server, use:
# service nfs stop
The restart option is a shorthand way of stopping and then starting
NFS. This is the most efficient way to make configuration changes
take effect after editing the configuration file for NFS. To restart the
server type:
# service nfs restart
The condrestart (conditional restart) option only starts nfs if it is
currently running. This option is useful for scripts, because it does
not start the daemon if it is not running. To conditionally restart the
server type:
# service nfs condrestart
To reload the NFS server configuration file without restarting the
service type:
# service nfs reload
NFS SERVER CONFIGURATION
There are two ways to configure an NFS server:
Manually editing the NFS configuration file, that is, /etc/exports, and
through the command line, that is, by using the command exportfs.
1. T he /etc/exports Configuration File
The /etc/exports file controls which file systems are exported to remote
hosts and specifies options. It follows the following syntax rules:
Blank lines are ignored. To add a comment, start a line with the hash
mark (#). You can wrap long lines with a backslash ().
Each exported file system should be on its own individual line. Any lists
of authorized hosts placed after an exported file system must be
separated by space characters. Options for each of the hosts must be
placed in parentheses directly after the host identifier, without any
spaces separating the host and the first parenthesis.
Each entry for an exported file system has the following structure:
export host(options)
The aforementioned structure uses the following variables:
Export: The directory being exported
Host: The host or network to which the export is being shared
Options: The options to be used for host
It is possible to specify multiple hosts, along with specific options for
each host. To do so, list them on the same line as a space-delimited
list, with each hostname followed by its respective options (in
parentheses), as in:
export host1(options1) host2(options2) host3(options3)
In its simplest form, the /etc/exports file only specifies the exported
directory and the hosts permitted to access it, as in the following
example:
The /etc/exports file
/exported/directory bob.example.com
The format of the /etc/exports file is very precise, particularly in regards to
use of the space character. Remember to always separate exported file
systems from hosts and hosts from one another with a space character.
However, there should be no other space characters in the file except on
comment lines.
For example, the following two lines do not mean the same thing:
/home bob.example.com(rw)
/home bob.example.com (rw)
The first line allows only users from bob.example.com read/write access to
the /home
directory. The second line allows users from bob.example.com to mount the
directory as
THE EXPORTFS COMMAND
Every file system being exported to remote users with NFS, as well as
the access level for those file systems, are listed in the /etc/exports
file. When the nfs service starts, the /usr/sbin/exportfs command
launches and reads this file, passes control to rpc.mountd (if NFSv2
or NFSv3) for the actual mounting process, then to rpc.nfsd where the
file systems are then available to remote users.
When issued manually, the /usr/sbin/exportfs command allows the
root user to selectively export or unexport directories without
restarting the NFS service. When given the proper options, the
/usr/sbin/exportfs command writes the exported file systems to
/var/lib/nfs/xtab. Since rpc.mountd refers to the xtab file when
deciding access privileges to a file system, changes to the list of
exported file systems take effect immediately.
The Network Information Service (NIS) and Network File System (NFS)
are services that allow you to build distributed computing systems
that are both consistent in their appearance and transparent in the
way files and data are shared.
The Network File System (NFS) is a distributed filesystem that provides
transparent access to remote disks.
NFS is also built on the RPC protocol and imposes a client-server
relationship on the hosts
that use it. An NFS server is a host that owns one or more filesystems and
makes them
available on the network; NFS clients mount filesystems from one or more
servers. This
follows the normal client-server model where the server owns a resource
that is used by the
client. In the case of NFS, the resource is a physical disk drive that is shared
There are two aspects to system administration using NFS: choosing a
filesystem naming and mounting scheme, and then configuring the servers
and clients to adhere to this scheme. The goal of any naming scheme should
be to use network transparency wisely. Being able to mount filesystems from
any server is useful only if the files are presented in a manner that is
consistent with the users' expectations.
If NFS has been set up correctly, it should be transparent to the user. For
example, if locally developed applications were found in /usr/local/bin
before NFS was installed, they should
continue to be found there when NFS is running, whether /usr/local/bin is
on a local filesystem or a remote one. To the user, the actual disk holding
/usr/local/bin isn't important as long as the executables are accessible and
built for the right machine architecture. If user smust change their
environments to locate files accessed through NFS, they will probably dislike
the new network architecture because it changes the way things work.
An environment with many NFS servers and hundreds of clients can quickly
become
overwhelming in terms of management complexity. Successful system
administration of a
large NFS network requires adding some intelligence to the standard
procedures. The cost of
consistency on the network should not be a large administrative overhead.
One tool that
greatly eases the task of running an NFS network is the automounter, which
applies NIS
management to NFS configuration. This chapter starts with a quick look at
how to get NFS up
SETTING UP NFS
On an NFS client, you need to have the lockd and statd daemons
running in order to use NFS.
These daemons are generally started in a boot script (Solaris uses
/etc/init.d/nfs.client):
if [ -x /usr/lib/nfs/statd -a -x /usr/lib/nfs/lockd ]
then
/usr/lib/nfs/statd > /dev/console 2>&1
/usr/lib/nfs/lockd > /dev/console 2>&1
fi
On most NFS servers, there is a file that contains the list of
filesystems the server will allow clients to mount via NFS. Many
servers store this list in /etc/exports file.
The nfsd daemon accepts NFS RPC requests and executes them on
the server. Some servers run multiple copies of the daemon so that
they can handle several RPC requests at once. In Solaris, a single copy
of the daemon is run, but multiple threads run in the kernel to
provide parallel NFS service.
EXPORTING FILESYSTEMS
Usually, a host decides to become an NFS server if it has filesystems
to export to the network. A server does not explicitly advertise these
filesystems; instead, it keeps a list of currently exported filesystems
and associated access restrictions in a file and compares incoming
NFS mount requests to entries in this table. It is up to the server to
decide if a filesystem can be mounted by a client. You may change
the rules at any time by rebuilding its exported filesystem table.
RULES FOR EXPORTING
FILESYSTEMS
There are four rules for making a server's filesystem available to NFS:
1. Any filesystem, or proper subset of a filesystem, can be exported from a
server. A
proper subset of a filesystem is a file or directory tree that starts below the
mount point
of the filesystem. For example, if /usr is a filesystem, and the /usr/local
directory is
part of that filesystem, then /usr/local is a proper subset of /usr.
2. You cannot export any subdirectory of an exported filesystem unless the
subdirectory
is on a different physical device.
3. You cannot export any parent directory of an exported filesystem unless
the parent is
on a different physical device.
MOUNTING FILESYSTEMS
NFS filesystems appear to be "normal" filesystems on the client, which
means that they can be mounted on any directory on the client. It's
possible to mount an NFS filesystem over all or part of another
filesystem, since the directories used as mount points appear the
same no matter where they actually reside. When you mount a
filesystem on top of another one, you obscure whatever is "under" the
mount point. NFS clients see the most recent view of the filesystem.
HARD AND SOFT MOUNTS
The hard and soft mount options determine how a client behaves
when the server is
excessively loaded for a long period or when it crashes. By default, all
NFS
filesystems are mounted hard, which means that an RPC call that
times out will be
retried indefinitely until a response is received from the server. This
makes the NFS
server look as much like a local disk as possible — the request that
needs to go to
disk completes at some point in the future. An NFS server that
crashes looks like a disk
SYMBOLIC LINKS
Symbolic links are both useful and confusing when used with NFS-
mounted filesystems.
They can be used to "shape" a filesystem arbitrarily, giving the system
administrator
freedom to organize filesystems and pathnames in convenient ways.
When used
badly, symbolic links have unexpected and unwanted side effects,
including poor
performance and "missing" files or directories.
Symbolic links differ from hard links in several ways, but the salient
distinction is that hard
links duplicate directory entries, while symbolic links are new directory
entries of a special
type. Using a hard link to a file is no different from using the original file,
but referencing a
symbolic link requires reading the link to find out where it points and then
referencing that
file or directory. It is possible to create a loop of symbolic links, but the
kernel routines that
read the links and build up pathnames eventually return an error when too
many links have
RESOLVING SYMBOLIC LINKS IN
NFS
When an NFS client does a stat( ) of a directory entry and finds it is a
symbolic link, it issues an RPC call to read the link (on the server) and
determine where the link points. This is the equivalent of doing a local
readlink( ) system call to examine the contents of a symbolic link. The server
returns a pathname that is interpreted on the client, not on the server.
The pathname may point to a directory that the client has mounted, or it
may not make sense
on the client. If you uncover a link that was made on the server that points to
a filesystem not
exported from the server, you will have either trouble or confusion if you
resolve the link. If
the link accidentally points to a valid file or directory on the client, the
results are often
An example here helps explain how links can point in unwanted directions.
Let's say that you install a new publishing package, marker, in the tools
filesystem on an NFS server. Once it's loaded, you realize that you need to
free some space on the /tools filesystem, so you move the font directory
used by marker to the /usr filesystem, and make a symbolic link to redirect
the fonts subdirectory to its new location:
# mkdir /usr/marker
# cd /tools/marker
# tar cf - fonts | ( cd /usr/marker; tar xbBfp 20 - )
# rm -rf fonts
# ln -s /usr/marker/fonts fonts
Using symbolic links to reduce the number of directories in a
pathname is beneficial only if
users are not tempted to cd from one link to another:
# ln -s /minnow/fred /u/fred
# ln -s /alewife/lucy /u/lucy
The unsuspecting user tries to use the path-compressed names, but
finds that relative
pathnames aren't relative to the link directory:
Mount points, exports, and links
Symbolic links have strange effects on mounting and exporting
filesystems. A good general rule to remember is that filesystem
operations apply to the target of a link, not to the link itself. The
symbolic link is just a pointer to the real operand.
If you mount a filesystem on a symbolic link, the actual mount occurs
on the directory pointed to by the link. The following sequence of
operations produces the same net result:
# mkdir -p /users/hal
# ln -s /users/hal /usr/hal
# mount bitatron:/export/home/hal /usr/hal
MOUNTING A SERVER'S SYMBOLIC
LINK
A potential problem arises if the symbolic link and the directory it
points to are on
different filesystems: it's possible that the server has exported the
link's filesystem but
not the filesystem containing the link's target. In this example,
/usr/man and
/usr/share/man could be in two distinct filesystems, which would
require two entries in
the server's dfstab file.

More Related Content

What's hot

Linux command ppt
Linux command pptLinux command ppt
Linux command ppt
kalyanineve
 
User Administration in Linux
User Administration in LinuxUser Administration in Linux
User Administration in Linux
SAMUEL OJO
 
Server configuration
Server configurationServer configuration
Server configuration
Aisha Talat
 
UNIX Operating System ppt
UNIX Operating System pptUNIX Operating System ppt
Linux standard file system
Linux standard file systemLinux standard file system
Linux standard file system
Taaanu01
 
Linux Introduction
Linux IntroductionLinux Introduction
Linux Introduction
Libsoul Technologies Pvt. Ltd.
 
NAS Concepts
NAS ConceptsNAS Concepts
NAS Concepts
Ramkaliyaperumal
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
Nikhil Jain
 
Unix ppt
Unix pptUnix ppt
Unix ppt
sudhir saurav
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
subhsikha
 
Introduction to linux ppt
Introduction to linux pptIntroduction to linux ppt
Introduction to linux ppt
Omi Vichare
 
Course 102: Lecture 14: Users and Permissions
Course 102: Lecture 14: Users and PermissionsCourse 102: Lecture 14: Users and Permissions
Course 102: Lecture 14: Users and Permissions
Ahmed El-Arabawy
 
Job Automation using Linux
Job Automation using LinuxJob Automation using Linux
Job Automation using Linux
Jishnu Pradeep
 
Linux basics
Linux basicsLinux basics
Linux basics
Santosh Khadsare
 
IT system and network administrator
IT system and network administratorIT system and network administrator
IT system and network administrator
Muhammad Nasir ( MCSA/ MCTS / MCITP)
 
Topic # 12 of outline Configuring Local Services.pptx
Topic # 12 of outline Configuring Local Services.pptxTopic # 12 of outline Configuring Local Services.pptx
Topic # 12 of outline Configuring Local Services.pptx
AyeCS11
 
Linux Memory Management
Linux Memory ManagementLinux Memory Management
Linux Memory Management
Anil Kumar Pugalia
 
Files and directories in Linux 6
Files and directories  in Linux 6Files and directories  in Linux 6
Files and directories in Linux 6
Meenakshi Paul
 
Network File System in Distributed Computing
Network File System in Distributed ComputingNetwork File System in Distributed Computing
Network File System in Distributed Computing
Chandan Padalkar
 
Nfs
NfsNfs

What's hot (20)

Linux command ppt
Linux command pptLinux command ppt
Linux command ppt
 
User Administration in Linux
User Administration in LinuxUser Administration in Linux
User Administration in Linux
 
Server configuration
Server configurationServer configuration
Server configuration
 
UNIX Operating System ppt
UNIX Operating System pptUNIX Operating System ppt
UNIX Operating System ppt
 
Linux standard file system
Linux standard file systemLinux standard file system
Linux standard file system
 
Linux Introduction
Linux IntroductionLinux Introduction
Linux Introduction
 
NAS Concepts
NAS ConceptsNAS Concepts
NAS Concepts
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
 
Unix ppt
Unix pptUnix ppt
Unix ppt
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
 
Introduction to linux ppt
Introduction to linux pptIntroduction to linux ppt
Introduction to linux ppt
 
Course 102: Lecture 14: Users and Permissions
Course 102: Lecture 14: Users and PermissionsCourse 102: Lecture 14: Users and Permissions
Course 102: Lecture 14: Users and Permissions
 
Job Automation using Linux
Job Automation using LinuxJob Automation using Linux
Job Automation using Linux
 
Linux basics
Linux basicsLinux basics
Linux basics
 
IT system and network administrator
IT system and network administratorIT system and network administrator
IT system and network administrator
 
Topic # 12 of outline Configuring Local Services.pptx
Topic # 12 of outline Configuring Local Services.pptxTopic # 12 of outline Configuring Local Services.pptx
Topic # 12 of outline Configuring Local Services.pptx
 
Linux Memory Management
Linux Memory ManagementLinux Memory Management
Linux Memory Management
 
Files and directories in Linux 6
Files and directories  in Linux 6Files and directories  in Linux 6
Files and directories in Linux 6
 
Network File System in Distributed Computing
Network File System in Distributed ComputingNetwork File System in Distributed Computing
Network File System in Distributed Computing
 
Nfs
NfsNfs
Nfs
 

Viewers also liked

NFS(Network File System)
NFS(Network File System)NFS(Network File System)
NFS(Network File System)
udamale
 
Presentation on samba server
Presentation on samba serverPresentation on samba server
Presentation on samba server
Veeral Bhateja
 
Samba server
Samba serverSamba server
Samba server
Santosh Khadsare
 
Presentation on samba server & apache server
Presentation on samba server & apache serverPresentation on samba server & apache server
Presentation on samba server & apache server
Manoz Kumar
 
Introduction to samba
Introduction to samba Introduction to samba
Introduction to samba
Jackie Schneider
 
Samba
SambaSamba
Samba
Raghu nath
 
Linux startup
Linux startupLinux startup
Linux startup
Amin Hashemi
 
Life without FTP would be cool
Life without FTP would be coolLife without FTP would be cool
Life without FTP would be cool
jgatrell
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
Teja Bheemanapally
 
IPTABLES
IPTABLESIPTABLES
IPTABLES
Tan Huynh Cong
 
Aula 5 (raid)
Aula 5 (raid)Aula 5 (raid)
Aula 5 (raid)
Evandro Júnior
 
NFS – Network File System
NFS – Network File SystemNFS – Network File System
NFS – Network File System
Marlon Munhoz
 
Anton Chuvakin FTP Server Intrusion Investigation
Anton Chuvakin FTP Server Intrusion InvestigationAnton Chuvakin FTP Server Intrusion Investigation
Anton Chuvakin FTP Server Intrusion Investigation
Anton Chuvakin
 
Solaris 10 administration 2 Configuring NFS
Solaris 10 administration 2 Configuring NFSSolaris 10 administration 2 Configuring NFS
Solaris 10 administration 2 Configuring NFS
AhmedEidNassef
 
Linux booting procedure
Linux booting procedureLinux booting procedure
Linux booting procedure
Dhaval Kaneria
 
Rhel4
Rhel4Rhel4
Linux booting process!!
Linux booting process!!Linux booting process!!
Linux booting process!!
sourav verma
 
linux file system
linux file systemlinux file system
linux file system
AryaTadbir Network Designers
 
Network file system (nfs)
Network file system (nfs)Network file system (nfs)
Network file system (nfs)
Raghu nath
 
Linux file system
Linux file systemLinux file system
Linux file system
Burhan Abbasi
 

Viewers also liked (20)

NFS(Network File System)
NFS(Network File System)NFS(Network File System)
NFS(Network File System)
 
Presentation on samba server
Presentation on samba serverPresentation on samba server
Presentation on samba server
 
Samba server
Samba serverSamba server
Samba server
 
Presentation on samba server & apache server
Presentation on samba server & apache serverPresentation on samba server & apache server
Presentation on samba server & apache server
 
Introduction to samba
Introduction to samba Introduction to samba
Introduction to samba
 
Samba
SambaSamba
Samba
 
Linux startup
Linux startupLinux startup
Linux startup
 
Life without FTP would be cool
Life without FTP would be coolLife without FTP would be cool
Life without FTP would be cool
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
 
IPTABLES
IPTABLESIPTABLES
IPTABLES
 
Aula 5 (raid)
Aula 5 (raid)Aula 5 (raid)
Aula 5 (raid)
 
NFS – Network File System
NFS – Network File SystemNFS – Network File System
NFS – Network File System
 
Anton Chuvakin FTP Server Intrusion Investigation
Anton Chuvakin FTP Server Intrusion InvestigationAnton Chuvakin FTP Server Intrusion Investigation
Anton Chuvakin FTP Server Intrusion Investigation
 
Solaris 10 administration 2 Configuring NFS
Solaris 10 administration 2 Configuring NFSSolaris 10 administration 2 Configuring NFS
Solaris 10 administration 2 Configuring NFS
 
Linux booting procedure
Linux booting procedureLinux booting procedure
Linux booting procedure
 
Rhel4
Rhel4Rhel4
Rhel4
 
Linux booting process!!
Linux booting process!!Linux booting process!!
Linux booting process!!
 
linux file system
linux file systemlinux file system
linux file system
 
Network file system (nfs)
Network file system (nfs)Network file system (nfs)
Network file system (nfs)
 
Linux file system
Linux file systemLinux file system
Linux file system
 

Similar to Linux network file system (nfs)

NFS is an excellent way of sharing files between linux and other unix systems
NFS is an excellent way of sharing files between linux and other unix systemsNFS is an excellent way of sharing files between linux and other unix systems
NFS is an excellent way of sharing files between linux and other unix systems
Ashish Mamgain
 
Nfs
NfsNfs
Ch18 system administration
Ch18 system administration Ch18 system administration
Ch18 system administration
Raja Waseem Akhtar
 
Linux06 nfs
Linux06 nfsLinux06 nfs
Linux06 nfs
Jainul Musani
 
Linux System Administration - NFS Server
Linux System Administration - NFS ServerLinux System Administration - NFS Server
Linux System Administration - NFS Server
Sreenatha Reddy K R
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
cclay3
 
Meeting 9 nfs network file system
Meeting 9   nfs network file systemMeeting 9   nfs network file system
Meeting 9 nfs network file system
Syaiful Ahdan
 
Nf Sp4
Nf Sp4Nf Sp4
Nf Sp4
Waqas !!!!
 
ORACLE HA NFS over Oracle ASM
ORACLE HA NFS over Oracle ASMORACLE HA NFS over Oracle ASM
ORACLE HA NFS over Oracle ASM
Pierrick Guicheteau
 
Network File System (NFS)
Network File System (NFS)Network File System (NFS)
Network File System (NFS)
abdullah roomi
 
FILE SERVER
FILE SERVERFILE SERVER
FILE SERVER
Jagdeep Singh Malhi
 
File Sever
File SeverFile Sever
Nfs
NfsNfs
Ibm spectrum scale fundamentals workshop for americas part 5 spectrum scale_c...
Ibm spectrum scale fundamentals workshop for americas part 5 spectrum scale_c...Ibm spectrum scale fundamentals workshop for americas part 5 spectrum scale_c...
Ibm spectrum scale fundamentals workshop for americas part 5 spectrum scale_c...
xKinAnx
 
OSSV [Open System SnapVault]
OSSV [Open System SnapVault]OSSV [Open System SnapVault]
OSSV [Open System SnapVault]
Ashwin Pawar
 
Linux cifs-client-guide
Linux cifs-client-guideLinux cifs-client-guide
Linux cifs-client-guide
unixadminrasheed
 
Oracle database might have problems with stale NFSv3 locks upon restart
Oracle database might have problems with stale NFSv3 locks upon restartOracle database might have problems with stale NFSv3 locks upon restart
Oracle database might have problems with stale NFSv3 locks upon restart
Ashwin Pawar
 
testing-nfs
testing-nfstesting-nfs
testing-nfs
guest4e525f
 
HP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan Baljevic
HP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan BaljevicHP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan Baljevic
HP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan Baljevic
Circling Cycle
 
Deploying pNFS over Distributed File Storage w/ Jiffin Tony Thottan and Niels...
Deploying pNFS over Distributed File Storage w/ Jiffin Tony Thottan and Niels...Deploying pNFS over Distributed File Storage w/ Jiffin Tony Thottan and Niels...
Deploying pNFS over Distributed File Storage w/ Jiffin Tony Thottan and Niels...
Gluster.org
 

Similar to Linux network file system (nfs) (20)

NFS is an excellent way of sharing files between linux and other unix systems
NFS is an excellent way of sharing files between linux and other unix systemsNFS is an excellent way of sharing files between linux and other unix systems
NFS is an excellent way of sharing files between linux and other unix systems
 
Nfs
NfsNfs
Nfs
 
Ch18 system administration
Ch18 system administration Ch18 system administration
Ch18 system administration
 
Linux06 nfs
Linux06 nfsLinux06 nfs
Linux06 nfs
 
Linux System Administration - NFS Server
Linux System Administration - NFS ServerLinux System Administration - NFS Server
Linux System Administration - NFS Server
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
 
Meeting 9 nfs network file system
Meeting 9   nfs network file systemMeeting 9   nfs network file system
Meeting 9 nfs network file system
 
Nf Sp4
Nf Sp4Nf Sp4
Nf Sp4
 
ORACLE HA NFS over Oracle ASM
ORACLE HA NFS over Oracle ASMORACLE HA NFS over Oracle ASM
ORACLE HA NFS over Oracle ASM
 
Network File System (NFS)
Network File System (NFS)Network File System (NFS)
Network File System (NFS)
 
FILE SERVER
FILE SERVERFILE SERVER
FILE SERVER
 
File Sever
File SeverFile Sever
File Sever
 
Nfs
NfsNfs
Nfs
 
Ibm spectrum scale fundamentals workshop for americas part 5 spectrum scale_c...
Ibm spectrum scale fundamentals workshop for americas part 5 spectrum scale_c...Ibm spectrum scale fundamentals workshop for americas part 5 spectrum scale_c...
Ibm spectrum scale fundamentals workshop for americas part 5 spectrum scale_c...
 
OSSV [Open System SnapVault]
OSSV [Open System SnapVault]OSSV [Open System SnapVault]
OSSV [Open System SnapVault]
 
Linux cifs-client-guide
Linux cifs-client-guideLinux cifs-client-guide
Linux cifs-client-guide
 
Oracle database might have problems with stale NFSv3 locks upon restart
Oracle database might have problems with stale NFSv3 locks upon restartOracle database might have problems with stale NFSv3 locks upon restart
Oracle database might have problems with stale NFSv3 locks upon restart
 
testing-nfs
testing-nfstesting-nfs
testing-nfs
 
HP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan Baljevic
HP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan BaljevicHP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan Baljevic
HP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan Baljevic
 
Deploying pNFS over Distributed File Storage w/ Jiffin Tony Thottan and Niels...
Deploying pNFS over Distributed File Storage w/ Jiffin Tony Thottan and Niels...Deploying pNFS over Distributed File Storage w/ Jiffin Tony Thottan and Niels...
Deploying pNFS over Distributed File Storage w/ Jiffin Tony Thottan and Niels...
 

More from Raghu nath

Mongo db
Mongo dbMongo db
Mongo db
Raghu nath
 
Ftp (file transfer protocol)
Ftp (file transfer protocol)Ftp (file transfer protocol)
Ftp (file transfer protocol)
Raghu nath
 
MS WORD 2013
MS WORD 2013MS WORD 2013
MS WORD 2013
Raghu nath
 
Msword
MswordMsword
Msword
Raghu nath
 
Ms word
Ms wordMs word
Ms word
Raghu nath
 
Javascript part1
Javascript part1Javascript part1
Javascript part1
Raghu nath
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
Raghu nath
 
Selection sort
Selection sortSelection sort
Selection sort
Raghu nath
 
Binary search
Binary search Binary search
Binary search
Raghu nath
 
JSON(JavaScript Object Notation)
JSON(JavaScript Object Notation)JSON(JavaScript Object Notation)
JSON(JavaScript Object Notation)
Raghu nath
 
Stemming algorithms
Stemming algorithmsStemming algorithms
Stemming algorithms
Raghu nath
 
Step by step guide to install dhcp role
Step by step guide to install dhcp roleStep by step guide to install dhcp role
Step by step guide to install dhcp role
Raghu nath
 
Network essentials chapter 4
Network essentials  chapter 4Network essentials  chapter 4
Network essentials chapter 4
Raghu nath
 
Network essentials chapter 3
Network essentials  chapter 3Network essentials  chapter 3
Network essentials chapter 3
Raghu nath
 
Network essentials chapter 2
Network essentials  chapter 2Network essentials  chapter 2
Network essentials chapter 2
Raghu nath
 
Network essentials - chapter 1
Network essentials - chapter 1Network essentials - chapter 1
Network essentials - chapter 1
Raghu nath
 
Python chapter 2
Python chapter 2Python chapter 2
Python chapter 2
Raghu nath
 
python chapter 1
python chapter 1python chapter 1
python chapter 1
Raghu nath
 
Linux Shell Scripting
Linux Shell ScriptingLinux Shell Scripting
Linux Shell Scripting
Raghu nath
 
Perl
PerlPerl

More from Raghu nath (20)

Mongo db
Mongo dbMongo db
Mongo db
 
Ftp (file transfer protocol)
Ftp (file transfer protocol)Ftp (file transfer protocol)
Ftp (file transfer protocol)
 
MS WORD 2013
MS WORD 2013MS WORD 2013
MS WORD 2013
 
Msword
MswordMsword
Msword
 
Ms word
Ms wordMs word
Ms word
 
Javascript part1
Javascript part1Javascript part1
Javascript part1
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
 
Selection sort
Selection sortSelection sort
Selection sort
 
Binary search
Binary search Binary search
Binary search
 
JSON(JavaScript Object Notation)
JSON(JavaScript Object Notation)JSON(JavaScript Object Notation)
JSON(JavaScript Object Notation)
 
Stemming algorithms
Stemming algorithmsStemming algorithms
Stemming algorithms
 
Step by step guide to install dhcp role
Step by step guide to install dhcp roleStep by step guide to install dhcp role
Step by step guide to install dhcp role
 
Network essentials chapter 4
Network essentials  chapter 4Network essentials  chapter 4
Network essentials chapter 4
 
Network essentials chapter 3
Network essentials  chapter 3Network essentials  chapter 3
Network essentials chapter 3
 
Network essentials chapter 2
Network essentials  chapter 2Network essentials  chapter 2
Network essentials chapter 2
 
Network essentials - chapter 1
Network essentials - chapter 1Network essentials - chapter 1
Network essentials - chapter 1
 
Python chapter 2
Python chapter 2Python chapter 2
Python chapter 2
 
python chapter 1
python chapter 1python chapter 1
python chapter 1
 
Linux Shell Scripting
Linux Shell ScriptingLinux Shell Scripting
Linux Shell Scripting
 
Perl
PerlPerl
Perl
 

Recently uploaded

What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
David Douglas School District
 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
deepaannamalai16
 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
heathfieldcps1
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
nitinpv4ai
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
RidwanHassanYusuf
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
JomonJoseph58
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
nitinpv4ai
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
Nutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour TrainingNutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour Training
melliereed
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
Steve Thomason
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
سمير بسيوني
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
nitinpv4ai
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
RamseyBerglund
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 

Recently uploaded (20)

What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
Nutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour TrainingNutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour Training
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 

Linux network file system (nfs)

  • 1. LINUX Network File System(NFS)
  • 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
  • 13. USING LDAP TO STORE AUTOMOUNTER MAPS LDAP client libraries must be installed on all systems configured to retrieve automounter maps from LDAP. On Red Hat Enterprise Linux, the openldap package should be installed automatically as a dependency of the automounter. To configure LDAP access, modify /etc/openldap/ldap.conf. Ensure that BASE, URI, and schema are set appropriately for your site. The most recently established schema for storing automount maps in LDAP is described by rfc2307bis. To use this schema it is necessary to set it in the autofs configuration (/etc/sysconfig/autofs) by removing the comment characters from the schema definition.
  • 15. Ensure that these are the only schema entries not commented in the configuration. The automountKey replaces the cn attribute in the rfc2307bis schema. An LDIF of a sample configuration is described below:
  • 16. LDF CONFIGURATION # extended LDIF # # LDAPv3 # base <> with scope subtree # filter: (&(objectclass=automountMap)(automountMapName=auto.master)) # requesting: ALL # # auto.master, example.com dn: automountMapName=auto.master,dc=example,dc=com objectClass: top objectClass: automountMap automountMapName: auto.master
  • 17. # extended LDIF # # LDAPv3 # base <automountMapName=auto.master,dc=example,dc=com> with scope subtree # filter: (objectclass=automount) # requesting: ALL #
  • 18. COMMON NFS MOUNT OPTIONS Beyond mounting a file system with NFS on a remote host, it is also possible to specify other options at mount time to make the mounted share easier to use. These options can be used with manual mount commands, /etc/fstab settings, and autofs The following are options commonly used for NFS mounts: intr Allows NFS requests to be interrupted if the server goes down or cannot be reached.
  • 19. lookupcache= mode Specifies how the kernel should manage its cache of directory entries for a given mount point. Valid arguments for mode are all, none, or pos/positive. nfsvers= version Specifies which version of the NFS protocol to use, where version is 2, 3, or 4. This is useful for hosts that run multiple NFS servers. If no version is specified, NFS uses the highest version supported by the kernel and mount command. The option vers is identical to nfsvers, and is included in this release for compatibility reasons. Noacl Turns off all ACL processing. This may be needed when interfacing with older versions of Red Hat Enterprise Linux, Red Hat Linux, or Solaris, since the most recent
  • 20. nolock Disables file locking. This setting is occasionally required when connecting to older NFS servers. noexec Prevents execution of binaries on mounted file systems. This is useful if the system is mounting a non-Linux file system containing incompatible binaries. nosuid Disables set-user-identifier or set-group-identifier bits. This prevents remote users from gaining higher privileges by running a setuid program.
  • 21. port=num port=num — Specifies the numeric value of the NFS server port. If num is 0 (the default), then mount queries the remote host's rpcbind service for the port number to use. If the remote host's NFS daemon is not registered with its rpcbind service, the standard NFS port number of TCP 2049 is used instead. rsiz e=num and wsiz e=num These settings speed up NFS communication for reads (rsize) and writes (wsize) by setting a larger data block size (num, in bytes), to be transferred at one time. Be careful when changing these values; some older Linux kernels and network cards do not work well with larger block sizes. For NFSv3, the default values for both parameters is set to 8192.
  • 22. sec= mode Its default setting is sec=sys, which uses local UNIX UIDs and GIDs. These use AUTH_SYS to authenticate NFS operations.“ sec=krb5 uses Kerberos V5 instead of local UNIX UIDs and GIDs to authenticate users. sec=krb5i uses Kerberos V5 for user authentication and performs integrity checking of NFS operations using secure checksums to prevent data tampering. sec=krb5p uses Kerberos V5 for user authentication, integrity checking, and encrypts NFS traffic to prevent traffic sniffing. This is the most secure setting, but it also
  • 23. tcp Instructs the NFS mount to use the TCP protocol. udp Instructs the NFS mount to use the UDP protocol. For a complete list of options and more detailed information on each one, refer to man mount and man nfs.
  • 24. Starting and Stopping NFS To run an NFS server, the rpcbind [1] service must be running. To verify that rpcbind is active, use the following command: # service rpcbind status If the rpcbind service is running, then the nfs service can be started. To start an NFS server, use the following command:
  • 25. # service nfs start nfslock must also be started for both the NFS client and server to function properly. To start NFS locking, use the following command: # service nfslock start If NFS is set to start at boot, ensure that nfslock also starts by running chkconfig --list nfslock. If nfslock is not set to on, this implies that you will need to manually run the service nfslock start each time the computer starts. To set nfslock to automatically start on boot, use chkconfig nfslock on.
  • 26. nfslock is only needed for NFSv3. To stop the server, use: # service nfs stop The restart option is a shorthand way of stopping and then starting NFS. This is the most efficient way to make configuration changes take effect after editing the configuration file for NFS. To restart the server type:
  • 27. # service nfs restart The condrestart (conditional restart) option only starts nfs if it is currently running. This option is useful for scripts, because it does not start the daemon if it is not running. To conditionally restart the server type: # service nfs condrestart
  • 28. To reload the NFS server configuration file without restarting the service type: # service nfs reload
  • 29. NFS SERVER CONFIGURATION There are two ways to configure an NFS server: Manually editing the NFS configuration file, that is, /etc/exports, and through the command line, that is, by using the command exportfs. 1. T he /etc/exports Configuration File The /etc/exports file controls which file systems are exported to remote hosts and specifies options. It follows the following syntax rules: Blank lines are ignored. To add a comment, start a line with the hash mark (#). You can wrap long lines with a backslash (). Each exported file system should be on its own individual line. Any lists of authorized hosts placed after an exported file system must be separated by space characters. Options for each of the hosts must be placed in parentheses directly after the host identifier, without any spaces separating the host and the first parenthesis.
  • 30. Each entry for an exported file system has the following structure: export host(options) The aforementioned structure uses the following variables: Export: The directory being exported Host: The host or network to which the export is being shared Options: The options to be used for host
  • 31. It is possible to specify multiple hosts, along with specific options for each host. To do so, list them on the same line as a space-delimited list, with each hostname followed by its respective options (in parentheses), as in: export host1(options1) host2(options2) host3(options3) In its simplest form, the /etc/exports file only specifies the exported directory and the hosts permitted to access it, as in the following example: The /etc/exports file /exported/directory bob.example.com
  • 32. The format of the /etc/exports file is very precise, particularly in regards to use of the space character. Remember to always separate exported file systems from hosts and hosts from one another with a space character. However, there should be no other space characters in the file except on comment lines. For example, the following two lines do not mean the same thing: /home bob.example.com(rw) /home bob.example.com (rw) The first line allows only users from bob.example.com read/write access to the /home directory. The second line allows users from bob.example.com to mount the directory as
  • 33. THE EXPORTFS COMMAND Every file system being exported to remote users with NFS, as well as the access level for those file systems, are listed in the /etc/exports file. When the nfs service starts, the /usr/sbin/exportfs command launches and reads this file, passes control to rpc.mountd (if NFSv2 or NFSv3) for the actual mounting process, then to rpc.nfsd where the file systems are then available to remote users. When issued manually, the /usr/sbin/exportfs command allows the root user to selectively export or unexport directories without restarting the NFS service. When given the proper options, the /usr/sbin/exportfs command writes the exported file systems to /var/lib/nfs/xtab. Since rpc.mountd refers to the xtab file when deciding access privileges to a file system, changes to the list of exported file systems take effect immediately.
  • 34. The Network Information Service (NIS) and Network File System (NFS) are services that allow you to build distributed computing systems that are both consistent in their appearance and transparent in the way files and data are shared.
  • 35. The Network File System (NFS) is a distributed filesystem that provides transparent access to remote disks. NFS is also built on the RPC protocol and imposes a client-server relationship on the hosts that use it. An NFS server is a host that owns one or more filesystems and makes them available on the network; NFS clients mount filesystems from one or more servers. This follows the normal client-server model where the server owns a resource that is used by the client. In the case of NFS, the resource is a physical disk drive that is shared
  • 36. There are two aspects to system administration using NFS: choosing a filesystem naming and mounting scheme, and then configuring the servers and clients to adhere to this scheme. The goal of any naming scheme should be to use network transparency wisely. Being able to mount filesystems from any server is useful only if the files are presented in a manner that is consistent with the users' expectations. If NFS has been set up correctly, it should be transparent to the user. For example, if locally developed applications were found in /usr/local/bin before NFS was installed, they should continue to be found there when NFS is running, whether /usr/local/bin is on a local filesystem or a remote one. To the user, the actual disk holding /usr/local/bin isn't important as long as the executables are accessible and built for the right machine architecture. If user smust change their environments to locate files accessed through NFS, they will probably dislike the new network architecture because it changes the way things work.
  • 37. An environment with many NFS servers and hundreds of clients can quickly become overwhelming in terms of management complexity. Successful system administration of a large NFS network requires adding some intelligence to the standard procedures. The cost of consistency on the network should not be a large administrative overhead. One tool that greatly eases the task of running an NFS network is the automounter, which applies NIS management to NFS configuration. This chapter starts with a quick look at how to get NFS up
  • 38. SETTING UP NFS On an NFS client, you need to have the lockd and statd daemons running in order to use NFS. These daemons are generally started in a boot script (Solaris uses /etc/init.d/nfs.client): if [ -x /usr/lib/nfs/statd -a -x /usr/lib/nfs/lockd ] then /usr/lib/nfs/statd > /dev/console 2>&1 /usr/lib/nfs/lockd > /dev/console 2>&1 fi
  • 39. On most NFS servers, there is a file that contains the list of filesystems the server will allow clients to mount via NFS. Many servers store this list in /etc/exports file. The nfsd daemon accepts NFS RPC requests and executes them on the server. Some servers run multiple copies of the daemon so that they can handle several RPC requests at once. In Solaris, a single copy of the daemon is run, but multiple threads run in the kernel to provide parallel NFS service.
  • 40. EXPORTING FILESYSTEMS Usually, a host decides to become an NFS server if it has filesystems to export to the network. A server does not explicitly advertise these filesystems; instead, it keeps a list of currently exported filesystems and associated access restrictions in a file and compares incoming NFS mount requests to entries in this table. It is up to the server to decide if a filesystem can be mounted by a client. You may change the rules at any time by rebuilding its exported filesystem table.
  • 41. RULES FOR EXPORTING FILESYSTEMS There are four rules for making a server's filesystem available to NFS: 1. Any filesystem, or proper subset of a filesystem, can be exported from a server. A proper subset of a filesystem is a file or directory tree that starts below the mount point of the filesystem. For example, if /usr is a filesystem, and the /usr/local directory is part of that filesystem, then /usr/local is a proper subset of /usr. 2. You cannot export any subdirectory of an exported filesystem unless the subdirectory is on a different physical device. 3. You cannot export any parent directory of an exported filesystem unless the parent is on a different physical device.
  • 42. MOUNTING FILESYSTEMS NFS filesystems appear to be "normal" filesystems on the client, which means that they can be mounted on any directory on the client. It's possible to mount an NFS filesystem over all or part of another filesystem, since the directories used as mount points appear the same no matter where they actually reside. When you mount a filesystem on top of another one, you obscure whatever is "under" the mount point. NFS clients see the most recent view of the filesystem.
  • 43. HARD AND SOFT MOUNTS The hard and soft mount options determine how a client behaves when the server is excessively loaded for a long period or when it crashes. By default, all NFS filesystems are mounted hard, which means that an RPC call that times out will be retried indefinitely until a response is received from the server. This makes the NFS server look as much like a local disk as possible — the request that needs to go to disk completes at some point in the future. An NFS server that crashes looks like a disk
  • 44. SYMBOLIC LINKS Symbolic links are both useful and confusing when used with NFS- mounted filesystems. They can be used to "shape" a filesystem arbitrarily, giving the system administrator freedom to organize filesystems and pathnames in convenient ways. When used badly, symbolic links have unexpected and unwanted side effects, including poor performance and "missing" files or directories.
  • 45. Symbolic links differ from hard links in several ways, but the salient distinction is that hard links duplicate directory entries, while symbolic links are new directory entries of a special type. Using a hard link to a file is no different from using the original file, but referencing a symbolic link requires reading the link to find out where it points and then referencing that file or directory. It is possible to create a loop of symbolic links, but the kernel routines that read the links and build up pathnames eventually return an error when too many links have
  • 46. RESOLVING SYMBOLIC LINKS IN NFS When an NFS client does a stat( ) of a directory entry and finds it is a symbolic link, it issues an RPC call to read the link (on the server) and determine where the link points. This is the equivalent of doing a local readlink( ) system call to examine the contents of a symbolic link. The server returns a pathname that is interpreted on the client, not on the server. The pathname may point to a directory that the client has mounted, or it may not make sense on the client. If you uncover a link that was made on the server that points to a filesystem not exported from the server, you will have either trouble or confusion if you resolve the link. If the link accidentally points to a valid file or directory on the client, the results are often
  • 47. An example here helps explain how links can point in unwanted directions. Let's say that you install a new publishing package, marker, in the tools filesystem on an NFS server. Once it's loaded, you realize that you need to free some space on the /tools filesystem, so you move the font directory used by marker to the /usr filesystem, and make a symbolic link to redirect the fonts subdirectory to its new location: # mkdir /usr/marker # cd /tools/marker # tar cf - fonts | ( cd /usr/marker; tar xbBfp 20 - ) # rm -rf fonts # ln -s /usr/marker/fonts fonts
  • 48. Using symbolic links to reduce the number of directories in a pathname is beneficial only if users are not tempted to cd from one link to another: # ln -s /minnow/fred /u/fred # ln -s /alewife/lucy /u/lucy The unsuspecting user tries to use the path-compressed names, but finds that relative pathnames aren't relative to the link directory:
  • 49. Mount points, exports, and links Symbolic links have strange effects on mounting and exporting filesystems. A good general rule to remember is that filesystem operations apply to the target of a link, not to the link itself. The symbolic link is just a pointer to the real operand. If you mount a filesystem on a symbolic link, the actual mount occurs on the directory pointed to by the link. The following sequence of operations produces the same net result:
  • 50. # mkdir -p /users/hal # ln -s /users/hal /usr/hal # mount bitatron:/export/home/hal /usr/hal
  • 51. MOUNTING A SERVER'S SYMBOLIC LINK
  • 52. A potential problem arises if the symbolic link and the directory it points to are on different filesystems: it's possible that the server has exported the link's filesystem but not the filesystem containing the link's target. In this example, /usr/man and /usr/share/man could be in two distinct filesystems, which would require two entries in the server's dfstab file.