SlideShare a Scribd company logo
FILE REPLICATION
TO BE PRESENTED
BY
ZAHARADDEEN KARAMI LAWAL
Department of Computer Science and Engineering,
Faculty of Engineering and
Technology,
Jodhpur National University, Jodhpur
1
INTRODUCTION
 File Replication : High availability is a desirable feature of a
good distributed file system and file replication is the primary
mechanism for improving file availability. Replication is a key
strategy for improving reliability, fault tolerance and
availability. Therefore duplicating files on multiple machines
improves availability and performance.
 Replicated file : A replicated file is a file that has multiple
copies, with each copy located on a separate file server. Each
copy of the set of copies that comprises a replicated file is
referred to as replica of the replicated file.
2
Difference between Replication and Caching
 Replication is often confused with caching, probably because
they both deal with multiple copies of data. The two concepts
has the following basic differences:
1. A replica is associated with server, whereas a cached copy is
associated with a client.
2. The existence of cached copy is primarily dependent on the
locality in file access patterns, whereas the existence of a
replica normally depends on availability and performance
requirements.
3. Satynarayanana [1992] distinguishes a replicated copy from a
cached copy by calling the first-class replicas and second-class
replicas respectively
3
Advantages of file replication
1. Increase availability: one of the most important advantages
of replication is that it masks and tolerates failures in the
network gracefully. In particular, the system remains
operational and available to the users despite failures.
2. Improve response time
3. Increase reliability
4. Improve availability
5. Reduced network traffic
6. Better scalability
4
Replication Transparency
Naming Of Replicas
 It’s the responsibility of the system to name the various copies of
a resource and to map a user-supplied name of the resource to an
appropriate replica of the resource.
Replication Control
 Replication control determines how many copies of the resource
should be created, where each copy should be placed, and when
should a copy be created /deleted. All this things should be made
entirely automatically by the system in a user transparent manner.
Draw back
The main problem of file replication is consistency. That is
when one copy of replica changes, how does the other copies
reflect that change.
5
Multi Copy Update Problem
 Maintaining consistency among copies when a replicated
file is updated is the major issue of file system that
supports replication of files. Some commonly used
approaches to handle this issue are described below:
1. Read -Only-Replication
2. Read -Any-Write- All Protocol
3. Available –Copies Protocol
4. Primary-Copy Protocol
5. Quorum-Based Protocol
 
6
Multi Copy Update Protocols
1. Read- Only- Replication: This approach allows the replication of
only immutable files, since immutable files are used only in the read-
only mode, because mutable files cannot be replicated.
 This approach is too restrictive in the sense that it allows the
replication of only immutable files.
2. Read-Any-Write-All Protocol: This approach allows the replication
of mutable files. In this method, a read operation on a replicated file
is performed by reading any copy of the file and write operation by
writing to all copies of the file. Some of the lock has to be used to
carryout a write operation. That is, before updating any copy, all
copies are locked, then the they are updated, and finally locks are
released to complete write operation. The protocol is used for
implementing UNIX like Semantics
 The main problem with this approach is that a write operation can’t
be performed if any of the servers having a copy of the replicated file
is down at a time of write operation. 7
Contd…
3.Available-Copies Protocol: this Approach allows the write
operation to be carried out even when some of the servers
having a copy of the replicated file are down. In this method the
read operation is performed by reading any available copy, but
a write operation is performed by writing to all available
copies. When the server recovers after a failure, it brings itself
up to date by copying from the other servers before accepting
any user request.
4.Primary-Copy Protocol: another simple method to solve the
multi-copy update problem is the primary –copy protocol. In
this protocol for each replicated file one copy is as the primary
copy and all others are secondary copies. Read operation can
be performed using any copy primary or secondary. Each server
having a copy updates its copy either by receiving notification
of changes from the server having the primary copy or by
requesting the updated copy from it.
8
Contd…
Draw backs
The read-any-write-all and available –copies protocols cannot handle the
network partition problem in which the copies of a replicated file are
partitioned into two or more active groups. Moreover, the primary-copy –
protocol is too restrictive in the sense that a write operation cannot be
perform if the server having the primary copy is down.
5. Quorum –Based Protocol: This protocol is capable
of handling the network partition problem and can
increase the availability of write operations at the
expense of read operation.
9
conclusion
 A replicated file is a file that has multiple copies,
with each copy located on a separate file server.
 Each copy of the set of copies that comprises a
replicated file is referred to as a replica.
 Maintaining consistency among copies when a
replicated file is updated is the major issue in file
system that support replication of files.
 Some of the commonly approaches to handle this
issue are read-only replication, read –any write to all
protocol, available copies protocol, primary copy
protocol and quorum-based protocol.
10

More Related Content

What's hot

Message and Stream Oriented Communication
Message and Stream Oriented CommunicationMessage and Stream Oriented Communication
Message and Stream Oriented Communication
Dilum Bandara
 
Message passing in Distributed Computing Systems
Message passing in Distributed Computing SystemsMessage passing in Distributed Computing Systems
Message passing in Distributed Computing Systems
Alagappa Govt Arts College, Karaikudi
 
Distributed shred memory architecture
Distributed shred memory architectureDistributed shred memory architecture
Distributed shred memory architecture
Maulik Togadiya
 
Lamport’s algorithm for mutual exclusion
Lamport’s algorithm for mutual exclusionLamport’s algorithm for mutual exclusion
Lamport’s algorithm for mutual exclusion
Neelamani Samal
 
Aggrement protocols
Aggrement protocolsAggrement protocols
Aggrement protocols
Mayank Jain
 
Chapter 4 a interprocess communication
Chapter 4 a interprocess communicationChapter 4 a interprocess communication
Chapter 4 a interprocess communication
AbDul ThaYyal
 
Communication in Distributed Systems
Communication in Distributed SystemsCommunication in Distributed Systems
Communication in Distributed Systems
Dilum Bandara
 
message passing
 message passing message passing
message passing
Ashish Kumar
 
Agreement Protocols, distributed File Systems, Distributed Shared Memory
Agreement Protocols, distributed File Systems, Distributed Shared MemoryAgreement Protocols, distributed File Systems, Distributed Shared Memory
Agreement Protocols, distributed File Systems, Distributed Shared Memory
SHIKHA GAUTAM
 
Distributed operating system
Distributed operating systemDistributed operating system
Distributed operating system
udaya khanal
 
Consistency protocols
Consistency protocolsConsistency protocols
Consistency protocols
ZongYing Lyu
 
Distributed system lamport's and vector algorithm
Distributed system lamport's and vector algorithmDistributed system lamport's and vector algorithm
Distributed system lamport's and vector algorithm
pinki soni
 
remote procedure calls
  remote procedure calls  remote procedure calls
remote procedure calls
Ashish Kumar
 
Optimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed SystemsOptimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed Systems
mridul mishra
 
Distributed System-Multicast & Indirect communication
Distributed System-Multicast & Indirect communicationDistributed System-Multicast & Indirect communication
Distributed System-Multicast & Indirect communication
MNM Jain Engineering College
 
Introduction to distributed file systems
Introduction to distributed file systemsIntroduction to distributed file systems
Introduction to distributed file systems
Viet-Trung TRAN
 
chapter 2 architecture
chapter 2 architecturechapter 2 architecture
chapter 2 architecture
Sharda University Greater Noida
 
Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
Aung Thu Rha Hein
 
Process Management-Process Migration
Process Management-Process MigrationProcess Management-Process Migration
Process Management-Process Migration
MNM Jain Engineering College
 
Load Balancing In Distributed Computing
Load Balancing In Distributed ComputingLoad Balancing In Distributed Computing
Load Balancing In Distributed Computing
Richa Singh
 

What's hot (20)

Message and Stream Oriented Communication
Message and Stream Oriented CommunicationMessage and Stream Oriented Communication
Message and Stream Oriented Communication
 
Message passing in Distributed Computing Systems
Message passing in Distributed Computing SystemsMessage passing in Distributed Computing Systems
Message passing in Distributed Computing Systems
 
Distributed shred memory architecture
Distributed shred memory architectureDistributed shred memory architecture
Distributed shred memory architecture
 
Lamport’s algorithm for mutual exclusion
Lamport’s algorithm for mutual exclusionLamport’s algorithm for mutual exclusion
Lamport’s algorithm for mutual exclusion
 
Aggrement protocols
Aggrement protocolsAggrement protocols
Aggrement protocols
 
Chapter 4 a interprocess communication
Chapter 4 a interprocess communicationChapter 4 a interprocess communication
Chapter 4 a interprocess communication
 
Communication in Distributed Systems
Communication in Distributed SystemsCommunication in Distributed Systems
Communication in Distributed Systems
 
message passing
 message passing message passing
message passing
 
Agreement Protocols, distributed File Systems, Distributed Shared Memory
Agreement Protocols, distributed File Systems, Distributed Shared MemoryAgreement Protocols, distributed File Systems, Distributed Shared Memory
Agreement Protocols, distributed File Systems, Distributed Shared Memory
 
Distributed operating system
Distributed operating systemDistributed operating system
Distributed operating system
 
Consistency protocols
Consistency protocolsConsistency protocols
Consistency protocols
 
Distributed system lamport's and vector algorithm
Distributed system lamport's and vector algorithmDistributed system lamport's and vector algorithm
Distributed system lamport's and vector algorithm
 
remote procedure calls
  remote procedure calls  remote procedure calls
remote procedure calls
 
Optimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed SystemsOptimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed Systems
 
Distributed System-Multicast & Indirect communication
Distributed System-Multicast & Indirect communicationDistributed System-Multicast & Indirect communication
Distributed System-Multicast & Indirect communication
 
Introduction to distributed file systems
Introduction to distributed file systemsIntroduction to distributed file systems
Introduction to distributed file systems
 
chapter 2 architecture
chapter 2 architecturechapter 2 architecture
chapter 2 architecture
 
Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
 
Process Management-Process Migration
Process Management-Process MigrationProcess Management-Process Migration
Process Management-Process Migration
 
Load Balancing In Distributed Computing
Load Balancing In Distributed ComputingLoad Balancing In Distributed Computing
Load Balancing In Distributed Computing
 

Similar to File replication

File replication
File replicationFile replication
File replication
Dhaval Chodavadiya
 
Dos unit 4
Dos unit 4Dos unit 4
Dos unit 4
JebasheelaSJ
 
Distributed File Systems
Distributed File Systems Distributed File Systems
Distributed File Systems
Maurvi04
 
Linux@assignment ppt
Linux@assignment pptLinux@assignment ppt
Linux@assignment ppt
Rama .
 
Distributed operating system
Distributed operating systemDistributed operating system
Distributed operating system
Moeez Ahmad
 
Gfs final
Gfs finalGfs final
Gfs final
AmitSaha123
 
01. english version operating system
01. english version   operating system01. english version   operating system
01. english version operating system
Jimmi Sitorus
 
An Efficient approach of Integrated file Replication and Consistency Maintena...
An Efficient approach of Integrated file Replication and Consistency Maintena...An Efficient approach of Integrated file Replication and Consistency Maintena...
An Efficient approach of Integrated file Replication and Consistency Maintena...
ijceronline
 
An Efficient approach of Integrated file Replication and Consistency Maintena...
An Efficient approach of Integrated file Replication and Consistency Maintena...An Efficient approach of Integrated file Replication and Consistency Maintena...
An Efficient approach of Integrated file Replication and Consistency Maintena...
ijceronline
 
ITT Project Information Technology Basic
ITT Project Information Technology BasicITT Project Information Technology Basic
ITT Project Information Technology Basic
Mayank Garg
 
Ds
DsDs
Ds
HDRS
 
Ds
DsDs
Ds
HDRS
 
Google file system
Google file systemGoogle file system
Google file system
Roopesh Jhurani
 
Distributed File System.ppt
Distributed File System.pptDistributed File System.ppt
Distributed File System.ppt
KhawajaWaqasRaheel
 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMS
Kathirvel Ayyaswamy
 
Hands on kubernetes_container_orchestration
Hands on kubernetes_container_orchestrationHands on kubernetes_container_orchestration
Hands on kubernetes_container_orchestration
Amir Hossein Sorouri
 
Operating System
Operating SystemOperating System
Operating System
chirag patil
 
Case study operating systems
Case study operating systemsCase study operating systems
Case study operating systems
Akhil Bevara
 
Dfs (Distributed computing)
Dfs (Distributed computing)Dfs (Distributed computing)
Dfs (Distributed computing)
Sri Prasanna
 
2. Unit 1_Types of Opertaing Systems.pptx
2. Unit 1_Types of Opertaing Systems.pptx2. Unit 1_Types of Opertaing Systems.pptx
2. Unit 1_Types of Opertaing Systems.pptx
Aishwarya .
 

Similar to File replication (20)

File replication
File replicationFile replication
File replication
 
Dos unit 4
Dos unit 4Dos unit 4
Dos unit 4
 
Distributed File Systems
Distributed File Systems Distributed File Systems
Distributed File Systems
 
Linux@assignment ppt
Linux@assignment pptLinux@assignment ppt
Linux@assignment ppt
 
Distributed operating system
Distributed operating systemDistributed operating system
Distributed operating system
 
Gfs final
Gfs finalGfs final
Gfs final
 
01. english version operating system
01. english version   operating system01. english version   operating system
01. english version operating system
 
An Efficient approach of Integrated file Replication and Consistency Maintena...
An Efficient approach of Integrated file Replication and Consistency Maintena...An Efficient approach of Integrated file Replication and Consistency Maintena...
An Efficient approach of Integrated file Replication and Consistency Maintena...
 
An Efficient approach of Integrated file Replication and Consistency Maintena...
An Efficient approach of Integrated file Replication and Consistency Maintena...An Efficient approach of Integrated file Replication and Consistency Maintena...
An Efficient approach of Integrated file Replication and Consistency Maintena...
 
ITT Project Information Technology Basic
ITT Project Information Technology BasicITT Project Information Technology Basic
ITT Project Information Technology Basic
 
Ds
DsDs
Ds
 
Ds
DsDs
Ds
 
Google file system
Google file systemGoogle file system
Google file system
 
Distributed File System.ppt
Distributed File System.pptDistributed File System.ppt
Distributed File System.ppt
 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMS
 
Hands on kubernetes_container_orchestration
Hands on kubernetes_container_orchestrationHands on kubernetes_container_orchestration
Hands on kubernetes_container_orchestration
 
Operating System
Operating SystemOperating System
Operating System
 
Case study operating systems
Case study operating systemsCase study operating systems
Case study operating systems
 
Dfs (Distributed computing)
Dfs (Distributed computing)Dfs (Distributed computing)
Dfs (Distributed computing)
 
2. Unit 1_Types of Opertaing Systems.pptx
2. Unit 1_Types of Opertaing Systems.pptx2. Unit 1_Types of Opertaing Systems.pptx
2. Unit 1_Types of Opertaing Systems.pptx
 

Recently uploaded

Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...
Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...
Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...
frank0071
 
fermented food science of sauerkraut.pptx
fermented food science of sauerkraut.pptxfermented food science of sauerkraut.pptx
fermented food science of sauerkraut.pptx
ananya23nair
 
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
Advanced-Concepts-Team
 
HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1
Shashank Shekhar Pandey
 
Direct Seeded Rice - Climate Smart Agriculture
Direct Seeded Rice - Climate Smart AgricultureDirect Seeded Rice - Climate Smart Agriculture
Direct Seeded Rice - Climate Smart Agriculture
International Food Policy Research Institute- South Asia Office
 
Randomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNERandomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNE
University of Maribor
 
Microbiology of Central Nervous System INFECTIONS.pdf
Microbiology of Central Nervous System INFECTIONS.pdfMicrobiology of Central Nervous System INFECTIONS.pdf
Microbiology of Central Nervous System INFECTIONS.pdf
sammy700571
 
Pests of Storage_Identification_Dr.UPR.pdf
Pests of Storage_Identification_Dr.UPR.pdfPests of Storage_Identification_Dr.UPR.pdf
Pests of Storage_Identification_Dr.UPR.pdf
PirithiRaju
 
23PH301 - Optics - Optical Lenses.pptx
23PH301 - Optics  -  Optical Lenses.pptx23PH301 - Optics  -  Optical Lenses.pptx
23PH301 - Optics - Optical Lenses.pptx
RDhivya6
 
The debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically youngThe debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically young
Sérgio Sacani
 
Compexometric titration/Chelatorphy titration/chelating titration
Compexometric titration/Chelatorphy titration/chelating titrationCompexometric titration/Chelatorphy titration/chelating titration
Compexometric titration/Chelatorphy titration/chelating titration
Vandana Devesh Sharma
 
The binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defectsThe binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defects
Sérgio Sacani
 
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of ProteinsGBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
Areesha Ahmad
 
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
Scintica Instrumentation
 
Travis Hills of MN is Making Clean Water Accessible to All Through High Flux ...
Travis Hills of MN is Making Clean Water Accessible to All Through High Flux ...Travis Hills of MN is Making Clean Water Accessible to All Through High Flux ...
Travis Hills of MN is Making Clean Water Accessible to All Through High Flux ...
Travis Hills MN
 
Candidate young stellar objects in the S-cluster: Kinematic analysis of a sub...
Candidate young stellar objects in the S-cluster: Kinematic analysis of a sub...Candidate young stellar objects in the S-cluster: Kinematic analysis of a sub...
Candidate young stellar objects in the S-cluster: Kinematic analysis of a sub...
Sérgio Sacani
 
Tissue fluids_etiology_volume regulation_pressure.pptx
Tissue fluids_etiology_volume regulation_pressure.pptxTissue fluids_etiology_volume regulation_pressure.pptx
Tissue fluids_etiology_volume regulation_pressure.pptx
muralinath2
 
Discovery of An Apparent Red, High-Velocity Type Ia Supernova at 𝐳 = 2.9 wi...
Discovery of An Apparent Red, High-Velocity Type Ia Supernova at  𝐳 = 2.9  wi...Discovery of An Apparent Red, High-Velocity Type Ia Supernova at  𝐳 = 2.9  wi...
Discovery of An Apparent Red, High-Velocity Type Ia Supernova at 𝐳 = 2.9 wi...
Sérgio Sacani
 
8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf
by6843629
 
cathode ray oscilloscope and its applications
cathode ray oscilloscope and its applicationscathode ray oscilloscope and its applications
cathode ray oscilloscope and its applications
sandertein
 

Recently uploaded (20)

Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...
Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...
Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...
 
fermented food science of sauerkraut.pptx
fermented food science of sauerkraut.pptxfermented food science of sauerkraut.pptx
fermented food science of sauerkraut.pptx
 
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
 
HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1
 
Direct Seeded Rice - Climate Smart Agriculture
Direct Seeded Rice - Climate Smart AgricultureDirect Seeded Rice - Climate Smart Agriculture
Direct Seeded Rice - Climate Smart Agriculture
 
Randomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNERandomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNE
 
Microbiology of Central Nervous System INFECTIONS.pdf
Microbiology of Central Nervous System INFECTIONS.pdfMicrobiology of Central Nervous System INFECTIONS.pdf
Microbiology of Central Nervous System INFECTIONS.pdf
 
Pests of Storage_Identification_Dr.UPR.pdf
Pests of Storage_Identification_Dr.UPR.pdfPests of Storage_Identification_Dr.UPR.pdf
Pests of Storage_Identification_Dr.UPR.pdf
 
23PH301 - Optics - Optical Lenses.pptx
23PH301 - Optics  -  Optical Lenses.pptx23PH301 - Optics  -  Optical Lenses.pptx
23PH301 - Optics - Optical Lenses.pptx
 
The debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically youngThe debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically young
 
Compexometric titration/Chelatorphy titration/chelating titration
Compexometric titration/Chelatorphy titration/chelating titrationCompexometric titration/Chelatorphy titration/chelating titration
Compexometric titration/Chelatorphy titration/chelating titration
 
The binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defectsThe binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defects
 
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of ProteinsGBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
 
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
 
Travis Hills of MN is Making Clean Water Accessible to All Through High Flux ...
Travis Hills of MN is Making Clean Water Accessible to All Through High Flux ...Travis Hills of MN is Making Clean Water Accessible to All Through High Flux ...
Travis Hills of MN is Making Clean Water Accessible to All Through High Flux ...
 
Candidate young stellar objects in the S-cluster: Kinematic analysis of a sub...
Candidate young stellar objects in the S-cluster: Kinematic analysis of a sub...Candidate young stellar objects in the S-cluster: Kinematic analysis of a sub...
Candidate young stellar objects in the S-cluster: Kinematic analysis of a sub...
 
Tissue fluids_etiology_volume regulation_pressure.pptx
Tissue fluids_etiology_volume regulation_pressure.pptxTissue fluids_etiology_volume regulation_pressure.pptx
Tissue fluids_etiology_volume regulation_pressure.pptx
 
Discovery of An Apparent Red, High-Velocity Type Ia Supernova at 𝐳 = 2.9 wi...
Discovery of An Apparent Red, High-Velocity Type Ia Supernova at  𝐳 = 2.9  wi...Discovery of An Apparent Red, High-Velocity Type Ia Supernova at  𝐳 = 2.9  wi...
Discovery of An Apparent Red, High-Velocity Type Ia Supernova at 𝐳 = 2.9 wi...
 
8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf
 
cathode ray oscilloscope and its applications
cathode ray oscilloscope and its applicationscathode ray oscilloscope and its applications
cathode ray oscilloscope and its applications
 

File replication

  • 1. FILE REPLICATION TO BE PRESENTED BY ZAHARADDEEN KARAMI LAWAL Department of Computer Science and Engineering, Faculty of Engineering and Technology, Jodhpur National University, Jodhpur 1
  • 2. INTRODUCTION  File Replication : High availability is a desirable feature of a good distributed file system and file replication is the primary mechanism for improving file availability. Replication is a key strategy for improving reliability, fault tolerance and availability. Therefore duplicating files on multiple machines improves availability and performance.  Replicated file : A replicated file is a file that has multiple copies, with each copy located on a separate file server. Each copy of the set of copies that comprises a replicated file is referred to as replica of the replicated file. 2
  • 3. Difference between Replication and Caching  Replication is often confused with caching, probably because they both deal with multiple copies of data. The two concepts has the following basic differences: 1. A replica is associated with server, whereas a cached copy is associated with a client. 2. The existence of cached copy is primarily dependent on the locality in file access patterns, whereas the existence of a replica normally depends on availability and performance requirements. 3. Satynarayanana [1992] distinguishes a replicated copy from a cached copy by calling the first-class replicas and second-class replicas respectively 3
  • 4. Advantages of file replication 1. Increase availability: one of the most important advantages of replication is that it masks and tolerates failures in the network gracefully. In particular, the system remains operational and available to the users despite failures. 2. Improve response time 3. Increase reliability 4. Improve availability 5. Reduced network traffic 6. Better scalability 4
  • 5. Replication Transparency Naming Of Replicas  It’s the responsibility of the system to name the various copies of a resource and to map a user-supplied name of the resource to an appropriate replica of the resource. Replication Control  Replication control determines how many copies of the resource should be created, where each copy should be placed, and when should a copy be created /deleted. All this things should be made entirely automatically by the system in a user transparent manner. Draw back The main problem of file replication is consistency. That is when one copy of replica changes, how does the other copies reflect that change. 5
  • 6. Multi Copy Update Problem  Maintaining consistency among copies when a replicated file is updated is the major issue of file system that supports replication of files. Some commonly used approaches to handle this issue are described below: 1. Read -Only-Replication 2. Read -Any-Write- All Protocol 3. Available –Copies Protocol 4. Primary-Copy Protocol 5. Quorum-Based Protocol   6
  • 7. Multi Copy Update Protocols 1. Read- Only- Replication: This approach allows the replication of only immutable files, since immutable files are used only in the read- only mode, because mutable files cannot be replicated.  This approach is too restrictive in the sense that it allows the replication of only immutable files. 2. Read-Any-Write-All Protocol: This approach allows the replication of mutable files. In this method, a read operation on a replicated file is performed by reading any copy of the file and write operation by writing to all copies of the file. Some of the lock has to be used to carryout a write operation. That is, before updating any copy, all copies are locked, then the they are updated, and finally locks are released to complete write operation. The protocol is used for implementing UNIX like Semantics  The main problem with this approach is that a write operation can’t be performed if any of the servers having a copy of the replicated file is down at a time of write operation. 7
  • 8. Contd… 3.Available-Copies Protocol: this Approach allows the write operation to be carried out even when some of the servers having a copy of the replicated file are down. In this method the read operation is performed by reading any available copy, but a write operation is performed by writing to all available copies. When the server recovers after a failure, it brings itself up to date by copying from the other servers before accepting any user request. 4.Primary-Copy Protocol: another simple method to solve the multi-copy update problem is the primary –copy protocol. In this protocol for each replicated file one copy is as the primary copy and all others are secondary copies. Read operation can be performed using any copy primary or secondary. Each server having a copy updates its copy either by receiving notification of changes from the server having the primary copy or by requesting the updated copy from it. 8
  • 9. Contd… Draw backs The read-any-write-all and available –copies protocols cannot handle the network partition problem in which the copies of a replicated file are partitioned into two or more active groups. Moreover, the primary-copy – protocol is too restrictive in the sense that a write operation cannot be perform if the server having the primary copy is down. 5. Quorum –Based Protocol: This protocol is capable of handling the network partition problem and can increase the availability of write operations at the expense of read operation. 9
  • 10. conclusion  A replicated file is a file that has multiple copies, with each copy located on a separate file server.  Each copy of the set of copies that comprises a replicated file is referred to as a replica.  Maintaining consistency among copies when a replicated file is updated is the major issue in file system that support replication of files.  Some of the commonly approaches to handle this issue are read-only replication, read –any write to all protocol, available copies protocol, primary copy protocol and quorum-based protocol. 10