Distributed File Systems
Distributed File Systems
DISTRIBUTED FILE
SYSTEMS
DEFINITIONS:
• A Distributed File System ( DFS ) is simply a classical model of
a file system distributed across multiple machines. The
purpose is to promote sharing of dispersed files.
3
SUN Network File
System
NFS ARCHITECTURE:
4
SUN Network File System
Client Integration:
The NFS client emulates the semantics of the standard UNIX file system
primitives precisely and is integrated with the UNIX kernel. It is
integrated with the kernel and not supplied as a library for loading
into client processes so that:
• user programs can access files via UNIX system calls without
recompilation or reloading.
• a single client module serves all of the user-level processes, with a
shared cache of recently used blocks.
SUN Network File System
• The NFS server is stateless and does not keep files open on behalf of
its clients. So the server must check the user’s identity against the
file’s access permission attributes afresh on each request, to see
whether the user is permitted to access the file in the manner
requested. The Sun RPC protocol requires clients to send user
authentication information
Mounting is the process by which the file systems are made available
to Operating system and the user.
AutoMounter :
PATH-NAME TRANSLATION:
• After a mount point is reached, each component piece will cause a server access.
• Can't hand the whole operation to server since the client may have a second mount on a subsidiary
directory (a mount on a mount ).
• Caching in both the client and the server computer are indispensable features of
NFS implementations in order to achieve adequate performance.
• The NFS client module caches the results of read, write, getattr,
lookup and readdir operations in order to reduce the number of
requests transmitted to servers.
10
NFS SUMMARY
Desirable features of a good distributed file system
Transparency
Access Transparency
Location Transparency
Mobility Transparency
Scalability
File Replication
Hardware and OS Heterogeneity
Fault Tolerance
Consistency
Security
Efficiency
11