SlideShare a Scribd company logo
1 of 27
UNIT- 4
Distributed file system
 A file system is a subsystem of an operating
system that performs file management activities
such as organization, storing, retrieval, naming,
sharing, and protectionof files.
 It is designed to allow programs to use a set of
operations that characterize the file abstraction
and free the programmers from concerns about
the details of space allocation and layout of the
secondary
 A distributive file system provides similar
abstraction to the users of a distributive system
and makes it convenient for them to use files in a
distributed environment.
 Remote information sharing
 User mobility
 Availability
 Diskless workstations
 A distributed file system typically provides the
following three types of services:
1) Storage Service
2) True file service
3)Name service
Desirable features
 Transparency
 User mobility
 Performance
 Simplicity and ease of use
 Scalability
 High availability
 High reliability
 Data integrity
 Security
 Heterogenity
 Transparency: The following four types of
transparencies are available:
1) Structure transparency
2) Access transparency
3)Naming transparency
4) Replication transparency
 User mobility: In a distributed system, a user
should not be forced to work on a specific node
but should have the flexibility to work on
different nodes at different times.
 Performance: The performance of a file system is
usually measured as the average amount of time
needed to satisfy client requests.
 Simplicity and ease of use: Several issues
influence the simplicity and ease of use of a
distributed system.
 Scalability: It is inevitable that a distributed
system will grow with time since expanding
the network by adding new machines or
interconnecting two networks together is
commonplace.
 High availability: A distributed file system
should continue to function even when partial
failures occur due to the failure of one or more
components.
 High reliability: In a good distributed file
system, the probability of loss of stored data
should be minimized as far as practicable.
 Data integrity: A file is often shared by
multiple users.
 Security: A distributed file system should be
secure so that its users can be confident of the
privacy of their data.
 Heterogeneity: As a consequence of large
scale, heterogeneity becomes inevitable in
distributed systems.
File models
 Different file systems use different conceptual
models of a file. The two most commonly used
criteria for file modeling are structure and
modifiability.
1) Unstructured and structured files
2) Mutable and immutable files
Unstructured and
structured files
 According to the simplest model, a file is an
unstructured sequence of data, In this model, there
is no substructure known to the file server and the
contents of each file of the file system appears to
the file server as an uninterpreted sequence of
bytes.
 The operating system is not interested in the
information stored in the files. Hence, the
interpretation of the meaning and structure of the
data stored in the files are entirely up to the
application programs. UNIX and MS-DOS use
this file model.
 Another file model that is rarely used nowadays is
the structured file model. In this model, a file
appears to the file server as an ordered sequence
of records .
 Records of different files of the same file system
can be of different size.
 Therefore, many types of files exists in a file
system, each having different properties.
 In this model, a record is the smallest unit of the
file data that can be accessed, and the file system
read or write operations are carried out on a set of
records.
 Structured files are again of two types- files with
nonindexed records and files with indexed
records.
 In the former model, a file record is accessed by
specifying its position within the file, for
example, the fifth record from the beginning of
the file or the second record from the end of the
file.
 In the later model, records have one or more key
fields and can be addressed by specifying the
values of the key fields.
Mutable and immutable files
 According to the modifiablity criteria, files are of
two types- mutable and immutable.’
 Most existing operating systems use the mutable
file model.
 In this model, an update performed on a file
overwrites on its old contents to produce the new
contents.
 That is, a file is represented as a single stored
sequence that is altered by each update operation.
 On the other hand, some more recent file systems,
such as the Cedar File System use the immutable
file model.
 In this model, file cannot be modified once it has
been created except to be deleted.
 The file versioning approach is normally used to
implement file updates, and each file is
represented by a history of immutable versions.
 That is, rather than updating the same file, a new
version is retained unchanged.
File-Accessing files
 The manner in which a client’s request to access a
file is serviced depends on the file-accessing
model used by the file system.
 The file-accessing model of a distributed file
system mainly depends on two factors: the
method used for accessing remote files and the
unit of data access.
Accessing Remote Files
 A distributed file system may use one of the
following models to service a client’s file access
request when the accessed file is a remote file:
1) Remote service model
2) Data-caching model
1) Remote service model: In this model, the
processing of the client’s request is performed at
the server’s node. That is the client’s request for
file access is delivered to the server, the server
machine performs the access request and finally
the result is forwarded back to the client.
2) Data-caching model: In the remote sevice
model, every remote file access request results in
network traffic. The data-caching model
attempts to reduce the amount of network traffic
by taking advantage of the locality feature found
in file access.
File-sharing Semantics
 The strongest feature of DFS is that, in spite of
using the data-caching model, it supports the
single-site UNIX semantics.
 That is, every ready operation on a file sees the
effects of all previous write operations performed
on that file. This achieved in the manner
described below.
 Recall that each DFS server has a component
called token manger. The job of the token manger
is to issue tokens to clients for file access requests
and to keep track of which clients have been
 To maximize performance, better concurrency is
achieved by using the following techniques:
1) Type-specific tokens
2) Fine-grained tokens
 Every token has an expiration time of 2 minutes.
Therefore, if a client does not respond to a token
revocation message from a server, the server just
waits for 2 minutes and then acts as if the token
has been returned by the client.
 Another important difference between NFS and
DFS that is worth mentioning here is that NFS
allows every machine to be both a client and a
server at the same time. That is, any client may
also be a server and any server may also be a
client.
File-caching scheme in DFS
 DFS recently accessed file data are cached by the
cache manager of client machines.
 The local disk of a client machine is used for this
purpose.
 However, in a diskless client machine, the local
memory is used for caching file data.
 The same is true for cache validation scheme.
 That is, a cached file data of a token revocation
message for the file data from the file server.
Replication
 Distributed File Service provides the facility to
replicate files on multiple file serves. The unit of
replicaton is a fileset. That is, all files of a fileset
are replicated together.
 The existence of multiple replicas of a file is
transparent to normal users. That is, a filename is
mapped to all file servers having a replica of the
file. Therefore, given a filename is mapped to all
file servers having a replica of the file.
Fault tolerance
 In addition to allowing replication of filesets,
another important feature of DFS that help in
improving is fault ability is the use of the write-
ahead log approach for recording file updates in a
recoverable manner.
 In DFS, for every update made to a file, a log is
written to the disk.
 A log entry contains the old value kand the new
value of the modified part of the file.
 When the system comes up after a crash, the log
is used to check which changes have already baen
made to the file and which changes have not yet
been made.
 Those that have not been made are the ones that
were lost due to system crash.
 These changes are now made to the file to bring it
to a consistent state.
Atomic transaction
 The DCE does not provide transaction processing
facility either as a part of DFS or as an
independent component.
 This is mainly because DCE currently does not
possess services needed for developing and
running mission critical, distributed on-line
transaction processing(OLTP) applications.
 For instance, OLTP applications require
guaranteed data integrity, application
programming interface with simplified transaction
semantics, and the ability to extend programs to
support RPCs that allow multiple.
 In addition to Encina, two other transaction
processing environments gaining popularity are
Customer Information Control System(CICS) and
Information Management System(IMS), both
from IBM.
 CICS is already being used by more than 20,000
customers in more than 90 countries worldwide.
 Encina offers interoperability with IBM’s CICS.
 CICS can be implemented on top of the DCE and
Encina technology.
Design Principles
 Based on distributed file systems, Satyanarayanan
has stated the following general principles for
designing distributed file systems:
1) Clients have cycles to burn
2) Cache whenever possible.
3) Exploit usage properties
4) Minimize systemwide knowledge and
change
5) Trust the fewest possible entities
6) Batch if possible

More Related Content

What's hot

Distributed file system
Distributed file systemDistributed file system
Distributed file systemJanani S
 
Chapter 8 distributed file systems
Chapter 8 distributed file systemsChapter 8 distributed file systems
Chapter 8 distributed file systemsAbDul ThaYyal
 
Unit 3.1 cs6601 Distributed File System
Unit 3.1 cs6601 Distributed File SystemUnit 3.1 cs6601 Distributed File System
Unit 3.1 cs6601 Distributed File SystemNandakumar P
 
Hadoop Distributed File System
Hadoop Distributed File SystemHadoop Distributed File System
Hadoop Distributed File SystemMilad Sobhkhiz
 
Introduction to distributed file systems
Introduction to distributed file systemsIntroduction to distributed file systems
Introduction to distributed file systemsViet-Trung TRAN
 
Distributed File Systems
Distributed File Systems Distributed File Systems
Distributed File Systems Maurvi04
 
11 distributed file_systems
11 distributed file_systems11 distributed file_systems
11 distributed file_systemslongly
 
Distribution File System DFS Technologies
Distribution File System DFS TechnologiesDistribution File System DFS Technologies
Distribution File System DFS TechnologiesRaphael Ejike
 
Dfs (Distributed computing)
Dfs (Distributed computing)Dfs (Distributed computing)
Dfs (Distributed computing)Sri Prasanna
 
Distributed file systems
Distributed file systemsDistributed file systems
Distributed file systemsSri Prasanna
 
Distributed operating system
Distributed operating systemDistributed operating system
Distributed operating systemMoeez Ahmad
 
3. distributed file system requirements
3. distributed file system requirements3. distributed file system requirements
3. distributed file system requirementsAbDul ThaYyal
 
Distributed Filesystems Review
Distributed Filesystems ReviewDistributed Filesystems Review
Distributed Filesystems ReviewSchubert Zhang
 
Operating System : Ch17 distributed file systems
Operating System : Ch17 distributed file systemsOperating System : Ch17 distributed file systems
Operating System : Ch17 distributed file systemsSyaiful Ahdan
 
4.file service architecture (1)
4.file service architecture (1)4.file service architecture (1)
4.file service architecture (1)AbDul ThaYyal
 

What's hot (20)

Distributed file system
Distributed file systemDistributed file system
Distributed file system
 
Chapter 8 distributed file systems
Chapter 8 distributed file systemsChapter 8 distributed file systems
Chapter 8 distributed file systems
 
Unit 3.1 cs6601 Distributed File System
Unit 3.1 cs6601 Distributed File SystemUnit 3.1 cs6601 Distributed File System
Unit 3.1 cs6601 Distributed File System
 
Hadoop Distributed File System
Hadoop Distributed File SystemHadoop Distributed File System
Hadoop Distributed File System
 
Introduction to distributed file systems
Introduction to distributed file systemsIntroduction to distributed file systems
Introduction to distributed file systems
 
Distributed File Systems
Distributed File Systems Distributed File Systems
Distributed File Systems
 
11 distributed file_systems
11 distributed file_systems11 distributed file_systems
11 distributed file_systems
 
Distribution File System DFS Technologies
Distribution File System DFS TechnologiesDistribution File System DFS Technologies
Distribution File System DFS Technologies
 
Dfs (Distributed computing)
Dfs (Distributed computing)Dfs (Distributed computing)
Dfs (Distributed computing)
 
Distributed file systems dfs
Distributed file systems   dfsDistributed file systems   dfs
Distributed file systems dfs
 
Distributed file systems
Distributed file systemsDistributed file systems
Distributed file systems
 
Distributed operating system
Distributed operating systemDistributed operating system
Distributed operating system
 
3. distributed file system requirements
3. distributed file system requirements3. distributed file system requirements
3. distributed file system requirements
 
11. dfs
11. dfs11. dfs
11. dfs
 
Distributed Filesystems Review
Distributed Filesystems ReviewDistributed Filesystems Review
Distributed Filesystems Review
 
Coda file system
Coda file systemCoda file system
Coda file system
 
Coda file system tahir
Coda file system   tahirCoda file system   tahir
Coda file system tahir
 
Operating System : Ch17 distributed file systems
Operating System : Ch17 distributed file systemsOperating System : Ch17 distributed file systems
Operating System : Ch17 distributed file systems
 
4.file service architecture (1)
4.file service architecture (1)4.file service architecture (1)
4.file service architecture (1)
 
OSCh16
OSCh16OSCh16
OSCh16
 

Similar to Dos unit 4

Similar to Dos unit 4 (20)

Distributed file systems chapter 9
Distributed file systems chapter 9Distributed file systems chapter 9
Distributed file systems chapter 9
 
Distributed File Systems
Distributed File SystemsDistributed File Systems
Distributed File Systems
 
Ds
DsDs
Ds
 
Ds
DsDs
Ds
 
DFS PPT.pptx
DFS PPT.pptxDFS PPT.pptx
DFS PPT.pptx
 
Presentation on nfs,afs,vfs
Presentation on nfs,afs,vfsPresentation on nfs,afs,vfs
Presentation on nfs,afs,vfs
 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMS
 
Ranjitbanshpal
RanjitbanshpalRanjitbanshpal
Ranjitbanshpal
 
Distributed File System.ppt
Distributed File System.pptDistributed File System.ppt
Distributed File System.ppt
 
Chapter-5-DFS.ppt
Chapter-5-DFS.pptChapter-5-DFS.ppt
Chapter-5-DFS.ppt
 
A cloud environment for backup and data storage
A cloud environment for backup and data storageA cloud environment for backup and data storage
A cloud environment for backup and data storage
 
What Is DFS In Windows Server 2016 2.pdf
What Is DFS In Windows Server 2016 2.pdfWhat Is DFS In Windows Server 2016 2.pdf
What Is DFS In Windows Server 2016 2.pdf
 
A cloud enviroment for backup and data storage
A cloud enviroment for backup and data storageA cloud enviroment for backup and data storage
A cloud enviroment for backup and data storage
 
Ch16 OS
Ch16 OSCh16 OS
Ch16 OS
 
OS_Ch16
OS_Ch16OS_Ch16
OS_Ch16
 
File System operating system operating system
File System  operating system operating systemFile System  operating system operating system
File System operating system operating system
 
What Is DFS In Windows Server 2016.pdf
What Is DFS In Windows Server 2016.pdfWhat Is DFS In Windows Server 2016.pdf
What Is DFS In Windows Server 2016.pdf
 
DFSNov1.pptx
DFSNov1.pptxDFSNov1.pptx
DFSNov1.pptx
 
AliEnFS - A Linux File System For The AliEn Grid Services
AliEnFS - A Linux File System For The AliEn Grid ServicesAliEnFS - A Linux File System For The AliEn Grid Services
AliEnFS - A Linux File System For The AliEn Grid Services
 
Gt3112931298
Gt3112931298Gt3112931298
Gt3112931298
 

Recently uploaded

Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 

Recently uploaded (20)

Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 

Dos unit 4

  • 2. Distributed file system  A file system is a subsystem of an operating system that performs file management activities such as organization, storing, retrieval, naming, sharing, and protectionof files.  It is designed to allow programs to use a set of operations that characterize the file abstraction and free the programmers from concerns about the details of space allocation and layout of the secondary
  • 3.  A distributive file system provides similar abstraction to the users of a distributive system and makes it convenient for them to use files in a distributed environment.  Remote information sharing  User mobility  Availability  Diskless workstations
  • 4.  A distributed file system typically provides the following three types of services: 1) Storage Service 2) True file service 3)Name service
  • 5. Desirable features  Transparency  User mobility  Performance  Simplicity and ease of use  Scalability  High availability  High reliability  Data integrity  Security  Heterogenity
  • 6.  Transparency: The following four types of transparencies are available: 1) Structure transparency 2) Access transparency 3)Naming transparency 4) Replication transparency  User mobility: In a distributed system, a user should not be forced to work on a specific node but should have the flexibility to work on different nodes at different times.  Performance: The performance of a file system is usually measured as the average amount of time needed to satisfy client requests.
  • 7.  Simplicity and ease of use: Several issues influence the simplicity and ease of use of a distributed system.  Scalability: It is inevitable that a distributed system will grow with time since expanding the network by adding new machines or interconnecting two networks together is commonplace.  High availability: A distributed file system should continue to function even when partial failures occur due to the failure of one or more components.
  • 8.  High reliability: In a good distributed file system, the probability of loss of stored data should be minimized as far as practicable.  Data integrity: A file is often shared by multiple users.  Security: A distributed file system should be secure so that its users can be confident of the privacy of their data.  Heterogeneity: As a consequence of large scale, heterogeneity becomes inevitable in distributed systems.
  • 9. File models  Different file systems use different conceptual models of a file. The two most commonly used criteria for file modeling are structure and modifiability. 1) Unstructured and structured files 2) Mutable and immutable files
  • 10. Unstructured and structured files  According to the simplest model, a file is an unstructured sequence of data, In this model, there is no substructure known to the file server and the contents of each file of the file system appears to the file server as an uninterpreted sequence of bytes.  The operating system is not interested in the information stored in the files. Hence, the interpretation of the meaning and structure of the data stored in the files are entirely up to the application programs. UNIX and MS-DOS use this file model.
  • 11.  Another file model that is rarely used nowadays is the structured file model. In this model, a file appears to the file server as an ordered sequence of records .  Records of different files of the same file system can be of different size.  Therefore, many types of files exists in a file system, each having different properties.  In this model, a record is the smallest unit of the file data that can be accessed, and the file system read or write operations are carried out on a set of records.
  • 12.  Structured files are again of two types- files with nonindexed records and files with indexed records.  In the former model, a file record is accessed by specifying its position within the file, for example, the fifth record from the beginning of the file or the second record from the end of the file.  In the later model, records have one or more key fields and can be addressed by specifying the values of the key fields.
  • 13. Mutable and immutable files  According to the modifiablity criteria, files are of two types- mutable and immutable.’  Most existing operating systems use the mutable file model.  In this model, an update performed on a file overwrites on its old contents to produce the new contents.  That is, a file is represented as a single stored sequence that is altered by each update operation.
  • 14.  On the other hand, some more recent file systems, such as the Cedar File System use the immutable file model.  In this model, file cannot be modified once it has been created except to be deleted.  The file versioning approach is normally used to implement file updates, and each file is represented by a history of immutable versions.  That is, rather than updating the same file, a new version is retained unchanged.
  • 15. File-Accessing files  The manner in which a client’s request to access a file is serviced depends on the file-accessing model used by the file system.  The file-accessing model of a distributed file system mainly depends on two factors: the method used for accessing remote files and the unit of data access.
  • 16. Accessing Remote Files  A distributed file system may use one of the following models to service a client’s file access request when the accessed file is a remote file: 1) Remote service model 2) Data-caching model
  • 17. 1) Remote service model: In this model, the processing of the client’s request is performed at the server’s node. That is the client’s request for file access is delivered to the server, the server machine performs the access request and finally the result is forwarded back to the client. 2) Data-caching model: In the remote sevice model, every remote file access request results in network traffic. The data-caching model attempts to reduce the amount of network traffic by taking advantage of the locality feature found in file access.
  • 18. File-sharing Semantics  The strongest feature of DFS is that, in spite of using the data-caching model, it supports the single-site UNIX semantics.  That is, every ready operation on a file sees the effects of all previous write operations performed on that file. This achieved in the manner described below.  Recall that each DFS server has a component called token manger. The job of the token manger is to issue tokens to clients for file access requests and to keep track of which clients have been
  • 19.  To maximize performance, better concurrency is achieved by using the following techniques: 1) Type-specific tokens 2) Fine-grained tokens
  • 20.  Every token has an expiration time of 2 minutes. Therefore, if a client does not respond to a token revocation message from a server, the server just waits for 2 minutes and then acts as if the token has been returned by the client.  Another important difference between NFS and DFS that is worth mentioning here is that NFS allows every machine to be both a client and a server at the same time. That is, any client may also be a server and any server may also be a client.
  • 21. File-caching scheme in DFS  DFS recently accessed file data are cached by the cache manager of client machines.  The local disk of a client machine is used for this purpose.  However, in a diskless client machine, the local memory is used for caching file data.  The same is true for cache validation scheme.  That is, a cached file data of a token revocation message for the file data from the file server.
  • 22. Replication  Distributed File Service provides the facility to replicate files on multiple file serves. The unit of replicaton is a fileset. That is, all files of a fileset are replicated together.  The existence of multiple replicas of a file is transparent to normal users. That is, a filename is mapped to all file servers having a replica of the file. Therefore, given a filename is mapped to all file servers having a replica of the file.
  • 23. Fault tolerance  In addition to allowing replication of filesets, another important feature of DFS that help in improving is fault ability is the use of the write- ahead log approach for recording file updates in a recoverable manner.  In DFS, for every update made to a file, a log is written to the disk.  A log entry contains the old value kand the new value of the modified part of the file.
  • 24.  When the system comes up after a crash, the log is used to check which changes have already baen made to the file and which changes have not yet been made.  Those that have not been made are the ones that were lost due to system crash.  These changes are now made to the file to bring it to a consistent state.
  • 25. Atomic transaction  The DCE does not provide transaction processing facility either as a part of DFS or as an independent component.  This is mainly because DCE currently does not possess services needed for developing and running mission critical, distributed on-line transaction processing(OLTP) applications.  For instance, OLTP applications require guaranteed data integrity, application programming interface with simplified transaction semantics, and the ability to extend programs to support RPCs that allow multiple.
  • 26.  In addition to Encina, two other transaction processing environments gaining popularity are Customer Information Control System(CICS) and Information Management System(IMS), both from IBM.  CICS is already being used by more than 20,000 customers in more than 90 countries worldwide.  Encina offers interoperability with IBM’s CICS.  CICS can be implemented on top of the DCE and Encina technology.
  • 27. Design Principles  Based on distributed file systems, Satyanarayanan has stated the following general principles for designing distributed file systems: 1) Clients have cycles to burn 2) Cache whenever possible. 3) Exploit usage properties 4) Minimize systemwide knowledge and change 5) Trust the fewest possible entities 6) Batch if possible