SlideShare a Scribd company logo
NETWORK FILE SYSTEM
(NFS)

By:
Amruta Udamale
Sequence
 Introduction to NFS
 Version
 NFS basic and protocol- State ,Architecture
 Component

 Different NFS processes
 Working

 Read operation while accessing file from server
 Steps to mount directory from NFS server
Introduction to NFS
•
•
•
•

Developed by Sun Microsystems
Use Distributed File Protocol
Mostly used with UNIX OS
Implement for other OS like
- Mac OS, Microsoft Windows, Novell NetWare, and IBM AS/400

•
•
•
•
•

Allows users to ‘Share’ a directory
RPC-based (uses XDR)
NFS is perfect for a NAS
Opposed to SAMBA
Currently based on VFS
Major Goals
- simple crash recovery
- reasonable performance :80% of a local drive
Sun Protocols in the ISO OSI Model
NFS Overview
Shared
directory

Server

Client
/

/

home

usr

home

usr
bin

bin
a

b

NFS: Export Subtree

c

a

b

c

NFS: Mount a remote file system

The clients 'mount' the shared directory, it becomes part
of their own directory structure.
NFS Version
• NFSv1 (1984)
- develop in-house experimental purpose

• NFSv2 (March 1989)
- Release for commercial use
- UDP, Stateless,32 bit

• NFSv3 (June 1995)
- Overcome to v2
- UDP and TCP, stateless,64bit

• NFSv4 (April 2003)
- Overcome to v2,v3
- Statefull Server
- Use tcp
- Focus on Performance, Accessibility, Scalability, Strong
security, Internationalization, Extensibility
System Structure: Server Type
• Stateless

server

– No information kept for client requests
– Information needed to be provided by the client
– More tolerant to server crashes

• Statefull

server

– maintins information about client Access
– Shorted request messages
– Better performance
– Idempotency easier
– Consistency is easier to achieve
NFS Architecture

• VFS to handle local and remote files common interface
• RPC for data transport
Sun NFS Protocol
Component
1. File Handles
How does the client tell the server which file or directory the operation
applies to? Similarly, how does the server return the result of a lookup?
File handle or fhandle
Determined by the server
Includes all information needed to identify the file/object on the server, and find it
quickly.
Client shouldn’t modify it
Stale File Handle

File Handle(32 Bytes)
volume ID

Index no. of mounted file
system

inode #

No. of file within
file system

generation #

To correctly
identify file
Use of File handle
2. Remote Procedure Call (RPC)

• Initially implementations of RPC was used with the UDP protocol
• Today both UDP and TCP are used
3. External Data Representation
(XDR)
4. Portmapper
Portmapper
2.Request for RPC Service

1.Register Service
<Service, Version, Transport>

Client

4.Contact Service on Port Directly

RPC server
5. NFS Daemon Processes
a.
b.
c.
d.
e.

nfsd daemon
biod daemon
rpc.mount daemon
rpc.lockd daemon
rpc.statd daemon
nfsd Daemon
• Handle incoming RPC requests
• May have multiple nfsd daemons per site
• A nfsd daemon makes kernel calls to do
the real work
• Allows multiple threads
biod Daemon
• Does readahead for clients
- To make use of kernel file buffer cache
• Only improves performance
- NFS works correctly without biod daemon

• Also flushes buffered writes for clients
rpc.mount Daemon
• server implements the MOUNT protocol
• Provides initial file handle for a remote volume
• Also checks that incoming requests are from privileged ports (in
UDP/IP packet source address)
• Protocols used: rpc.mountd [-d] [-f] [-h] [-v]
Mount
Daemon

NFS Client
3 .If ‘YES’ then
return rootfile_handle to
client

checks the list of
currently exported
volumes against the
credentials of NFS client

3.If ‘NOT’ Found
then report to
client with error
rpc.lockd Daemon
• NFS server is stateless, so it does not handle file
locking
• rpc.lockd provides locking
• server crashes and recovers : rpc.lockd reestablish
locks
• Use NFS Lock Manager (NLM) Protocol
• Procedure used:
NLM_NULL, NLM_TEST, NLM_LOCK,
NLM_GRANTED NLM_UNLOCK, NLM_FREE
rpc.statd Daemon
• at client and server
• Used to check status of a machine
• Server’s rpc.lockd asks rpc.statd to store lock info (in
file system)
– And to monitor status of locking machine
• If client crashes, clear its locks from server
• client crashes: rpc.statd contacts client when it
becomes available again
• Use Network Status Monitor (NSM) Protocol
• Procedure used:
SM_NULL,SM_STAT,SM_MON,SM_NOTIFY
Working
NFS Server
Read Operation From Server
Steps to mount directory from NFS server

Server Installation
Creating Share Folder in
Home directory
Setting
Folder’s
Properties
File which you want to mount
in share folder
NFS(Network File System)
Edit File with IP address
Select Packages For
Mounting Purpose
After wards do on cmd :sudo getit /etc/fstab
For output :mount /home/share1

At client side
shared file will
appear .Hear we
can see video
which was shared
by server side in
share folder.
Conclusions
• It is ubiquitous.
• It is easy to setup and administer.
• It provides a better solution than the alternative of
not sharing files.
• NFS v4 improves security.
• Alternatives of NFS :
–
–
–
–

Server Message Block (SMB, also known as CIFS) protocol
Apple Filing Protocol (AFP)
NetWare Core Protocol (NCP)
OS/400 File Server file system (QFileSvr.400)
References
• http://en.wikipedia.org/wiki/Network_File_System
• http://www.cs.sunysb.edu/~ezk/cse595s13/nfs/ch1+6.pdf
• http://lass.cs.umass.edu/~shenoy/courses/spring07/
lectures/Lec20.pdf
• http://www.tldp.org/HOWTO/pdf/NFS-HOWTO.pdf
Thank You !!
Ad

More Related Content

What's hot (20)

Presentation on samba server
Presentation on samba serverPresentation on samba server
Presentation on samba server
Veeral Bhateja
 
Linux network file system (nfs)
Linux   network file system (nfs)Linux   network file system (nfs)
Linux network file system (nfs)
Raghu nath
 
User datagram protocol (udp)
User datagram protocol (udp)User datagram protocol (udp)
User datagram protocol (udp)
Ramola Dhande
 
Linux file system
Linux file systemLinux file system
Linux file system
Md. Tanvir Hossain
 
Apache web server
Apache web serverApache web server
Apache web server
Sabiha M
 
Basics about IP address, DNS and DHCP.
Basics about IP address, DNS and DHCP.Basics about IP address, DNS and DHCP.
Basics about IP address, DNS and DHCP.
abhishek bhandare
 
TFTP - Trivial File Transfer Protocol
TFTP - Trivial File Transfer ProtocolTFTP - Trivial File Transfer Protocol
TFTP - Trivial File Transfer Protocol
Peter R. Egli
 
DNS
DNSDNS
DNS
FTC
 
Introduction to distributed file systems
Introduction to distributed file systemsIntroduction to distributed file systems
Introduction to distributed file systems
Viet-Trung TRAN
 
Configuration DHCP
Configuration DHCPConfiguration DHCP
Configuration DHCP
Tan Huynh Cong
 
Linux and DNS Server
Linux and DNS ServerLinux and DNS Server
Linux and DNS Server
Prabhakar Thota
 
Domain name system
Domain name systemDomain name system
Domain name system
Siddharth Chandel
 
The NFS Version 4 Protocol
The NFS Version 4 ProtocolThe NFS Version 4 Protocol
The NFS Version 4 Protocol
Kelum Senanayake
 
DNS (Domain Name System)
DNS (Domain Name System)DNS (Domain Name System)
DNS (Domain Name System)
Shashidhara Vyakaranal
 
Nfs
NfsNfs
Nfs
Waqas !!!!
 
SNMP
SNMPSNMP
SNMP
OECLIB Odisha Electronics Control Library
 
Windows file system
Windows file systemWindows file system
Windows file system
sumitjain2013
 
Dns name resolution process
Dns name resolution processDns name resolution process
Dns name resolution process
kannanragothaman
 
Communications is distributed systems
Communications is distributed systemsCommunications is distributed systems
Communications is distributed systems
SHATHAN
 
Dhcp ppt
Dhcp pptDhcp ppt
Dhcp ppt
Hema Dhariwal
 

Similar to NFS(Network File System) (20)

Linux06 nfs
Linux06 nfsLinux06 nfs
Linux06 nfs
Jainul Musani
 
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
 
NFS.ppt shshsjsjsjssjsjsksksksksksisisisisi
NFS.ppt shshsjsjsjssjsjsksksksksksisisisisiNFS.ppt shshsjsjsjssjsjsksksksksksisisisisi
NFS.ppt shshsjsjsjssjsjsksksksksksisisisisi
mukul narayana
 
Nf Sp4
Nf Sp4Nf Sp4
Nf Sp4
Waqas !!!!
 
File service architecture and network file system
File service architecture and network file systemFile service architecture and network file system
File service architecture and network file system
Sukhman Kaur
 
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
 
Network File System
Network File SystemNetwork File System
Network File System
Divyang Oza
 
NETWORK FILE SYSTEM
NETWORK FILE SYSTEMNETWORK FILE SYSTEM
NETWORK FILE SYSTEM
Roshan Kumar
 
RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)
Sumant Garg
 
Nfs
NfsNfs
Nfs
tmavroidis
 
Nfs
NfsNfs
Nfs
shanmuga rajan
 
NFS.ppt
NFS.pptNFS.ppt
NFS.ppt
Salman K.h
 
M3 nfs fs-3.2.1
M3 nfs fs-3.2.1M3 nfs fs-3.2.1
M3 nfs fs-3.2.1
MrudulaJoshi10
 
[발표자료] 오픈소스 Pacemaker 활용한 zabbix 이중화 방안(w/ Zabbix Korea Community)
[발표자료] 오픈소스 Pacemaker 활용한 zabbix 이중화 방안(w/ Zabbix Korea Community) [발표자료] 오픈소스 Pacemaker 활용한 zabbix 이중화 방안(w/ Zabbix Korea Community)
[발표자료] 오픈소스 Pacemaker 활용한 zabbix 이중화 방안(w/ Zabbix Korea Community)
동현 김
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
cclay3
 
Presentation1.pptx
Presentation1.pptxPresentation1.pptx
Presentation1.pptx
achutachut
 
Access Network Attached Storage in RHEL - RHCSA (RH134).pdf
Access Network Attached Storage in RHEL - RHCSA (RH134).pdfAccess Network Attached Storage in RHEL - RHCSA (RH134).pdf
Access Network Attached Storage in RHEL - RHCSA (RH134).pdf
RHCSA Guru
 
Multi-Site Perforce at NetApp
Multi-Site Perforce at NetAppMulti-Site Perforce at NetApp
Multi-Site Perforce at NetApp
Perforce
 
Cl116
Cl116Cl116
Cl116
Juliette Ponnet
 
Chapter 06
Chapter 06Chapter 06
Chapter 06
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
 
NFS.ppt shshsjsjsjssjsjsksksksksksisisisisi
NFS.ppt shshsjsjsjssjsjsksksksksksisisisisiNFS.ppt shshsjsjsjssjsjsksksksksksisisisisi
NFS.ppt shshsjsjsjssjsjsksksksksksisisisisi
mukul narayana
 
File service architecture and network file system
File service architecture and network file systemFile service architecture and network file system
File service architecture and network file system
Sukhman Kaur
 
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
 
Network File System
Network File SystemNetwork File System
Network File System
Divyang Oza
 
NETWORK FILE SYSTEM
NETWORK FILE SYSTEMNETWORK FILE SYSTEM
NETWORK FILE SYSTEM
Roshan Kumar
 
RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)
Sumant Garg
 
[발표자료] 오픈소스 Pacemaker 활용한 zabbix 이중화 방안(w/ Zabbix Korea Community)
[발표자료] 오픈소스 Pacemaker 활용한 zabbix 이중화 방안(w/ Zabbix Korea Community) [발표자료] 오픈소스 Pacemaker 활용한 zabbix 이중화 방안(w/ Zabbix Korea Community)
[발표자료] 오픈소스 Pacemaker 활용한 zabbix 이중화 방안(w/ Zabbix Korea Community)
동현 김
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
cclay3
 
Presentation1.pptx
Presentation1.pptxPresentation1.pptx
Presentation1.pptx
achutachut
 
Access Network Attached Storage in RHEL - RHCSA (RH134).pdf
Access Network Attached Storage in RHEL - RHCSA (RH134).pdfAccess Network Attached Storage in RHEL - RHCSA (RH134).pdf
Access Network Attached Storage in RHEL - RHCSA (RH134).pdf
RHCSA Guru
 
Multi-Site Perforce at NetApp
Multi-Site Perforce at NetAppMulti-Site Perforce at NetApp
Multi-Site Perforce at NetApp
Perforce
 
Chapter 06
Chapter 06Chapter 06
Chapter 06
cclay3
 
Ad

Recently uploaded (20)

Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
Ad

NFS(Network File System)

  • 2. Sequence  Introduction to NFS  Version  NFS basic and protocol- State ,Architecture  Component  Different NFS processes  Working  Read operation while accessing file from server  Steps to mount directory from NFS server
  • 3. Introduction to NFS • • • • Developed by Sun Microsystems Use Distributed File Protocol Mostly used with UNIX OS Implement for other OS like - Mac OS, Microsoft Windows, Novell NetWare, and IBM AS/400 • • • • • Allows users to ‘Share’ a directory RPC-based (uses XDR) NFS is perfect for a NAS Opposed to SAMBA Currently based on VFS Major Goals - simple crash recovery - reasonable performance :80% of a local drive
  • 4. Sun Protocols in the ISO OSI Model
  • 5. NFS Overview Shared directory Server Client / / home usr home usr bin bin a b NFS: Export Subtree c a b c NFS: Mount a remote file system The clients 'mount' the shared directory, it becomes part of their own directory structure.
  • 6. NFS Version • NFSv1 (1984) - develop in-house experimental purpose • NFSv2 (March 1989) - Release for commercial use - UDP, Stateless,32 bit • NFSv3 (June 1995) - Overcome to v2 - UDP and TCP, stateless,64bit • NFSv4 (April 2003) - Overcome to v2,v3 - Statefull Server - Use tcp - Focus on Performance, Accessibility, Scalability, Strong security, Internationalization, Extensibility
  • 7. System Structure: Server Type • Stateless server – No information kept for client requests – Information needed to be provided by the client – More tolerant to server crashes • Statefull server – maintins information about client Access – Shorted request messages – Better performance – Idempotency easier – Consistency is easier to achieve
  • 8. NFS Architecture • VFS to handle local and remote files common interface • RPC for data transport
  • 11. 1. File Handles How does the client tell the server which file or directory the operation applies to? Similarly, how does the server return the result of a lookup? File handle or fhandle Determined by the server Includes all information needed to identify the file/object on the server, and find it quickly. Client shouldn’t modify it Stale File Handle File Handle(32 Bytes) volume ID Index no. of mounted file system inode # No. of file within file system generation # To correctly identify file
  • 12. Use of File handle
  • 13. 2. Remote Procedure Call (RPC) • Initially implementations of RPC was used with the UDP protocol • Today both UDP and TCP are used
  • 14. 3. External Data Representation (XDR)
  • 15. 4. Portmapper Portmapper 2.Request for RPC Service 1.Register Service <Service, Version, Transport> Client 4.Contact Service on Port Directly RPC server
  • 16. 5. NFS Daemon Processes a. b. c. d. e. nfsd daemon biod daemon rpc.mount daemon rpc.lockd daemon rpc.statd daemon
  • 17. nfsd Daemon • Handle incoming RPC requests • May have multiple nfsd daemons per site • A nfsd daemon makes kernel calls to do the real work • Allows multiple threads
  • 18. biod Daemon • Does readahead for clients - To make use of kernel file buffer cache • Only improves performance - NFS works correctly without biod daemon • Also flushes buffered writes for clients
  • 19. rpc.mount Daemon • server implements the MOUNT protocol • Provides initial file handle for a remote volume • Also checks that incoming requests are from privileged ports (in UDP/IP packet source address) • Protocols used: rpc.mountd [-d] [-f] [-h] [-v] Mount Daemon NFS Client 3 .If ‘YES’ then return rootfile_handle to client checks the list of currently exported volumes against the credentials of NFS client 3.If ‘NOT’ Found then report to client with error
  • 20. rpc.lockd Daemon • NFS server is stateless, so it does not handle file locking • rpc.lockd provides locking • server crashes and recovers : rpc.lockd reestablish locks • Use NFS Lock Manager (NLM) Protocol • Procedure used: NLM_NULL, NLM_TEST, NLM_LOCK, NLM_GRANTED NLM_UNLOCK, NLM_FREE
  • 21. rpc.statd Daemon • at client and server • Used to check status of a machine • Server’s rpc.lockd asks rpc.statd to store lock info (in file system) – And to monitor status of locking machine • If client crashes, clear its locks from server • client crashes: rpc.statd contacts client when it becomes available again • Use Network Status Monitor (NSM) Protocol • Procedure used: SM_NULL,SM_STAT,SM_MON,SM_NOTIFY
  • 24. Steps to mount directory from NFS server Server Installation
  • 25. Creating Share Folder in Home directory
  • 27. File which you want to mount in share folder
  • 29. Edit File with IP address
  • 31. After wards do on cmd :sudo getit /etc/fstab
  • 32. For output :mount /home/share1 At client side shared file will appear .Hear we can see video which was shared by server side in share folder.
  • 33. Conclusions • It is ubiquitous. • It is easy to setup and administer. • It provides a better solution than the alternative of not sharing files. • NFS v4 improves security. • Alternatives of NFS : – – – – Server Message Block (SMB, also known as CIFS) protocol Apple Filing Protocol (AFP) NetWare Core Protocol (NCP) OS/400 File Server file system (QFileSvr.400)
  • 34. References • http://en.wikipedia.org/wiki/Network_File_System • http://www.cs.sunysb.edu/~ezk/cse595s13/nfs/ch1+6.pdf • http://lass.cs.umass.edu/~shenoy/courses/spring07/ lectures/Lec20.pdf • http://www.tldp.org/HOWTO/pdf/NFS-HOWTO.pdf