MC714: Sistemas Distribu´ ıdos
- Prof. Lucas Wanner
MC714: Sistemas Distribu dos Prof. Lucas Wanner Instituto de - - PowerPoint PPT Presentation
MC714: Sistemas Distribu dos Prof. Lucas Wanner Instituto de Computac ao, Unicamp Aulas 21: Sistemas de Arquivos Distributed File Systems General goal Try to make a file system transparently available to remote clients.
Client Filestays
Server Requestsfrom clienttoaccess remotefile Client Server 1.Filemovedtoclient 3.Whenclientisdone, fileisreturnedto
doneonclient Oldfile Newfile
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 2 / 15
Virtual file system (VFS) layer Virtual file system (VFS) layer System call layer System call layer NFS client RPC client stub RPC server stub NFS server Local file system interface Local file system interface Network Client Server
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 3 / 15
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 4 / 15
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 5 / 15
File block of file a File block of file e
a a a b b b c c c d d d e e e a c d e b a c e d b a b e c d
File-striped system Whole-file distribution
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 6 / 15
Chunk server Linux file system Chunk server Linux file system Chunk server Linux file system Master GFS client file name, chunk index contact address Chunk-server state Instructions Chunk ID, range Chunk data
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 7 / 15
Chord DHash Ivy
DHash Ivy
DHash Ivy
File system layer Block-oriented storage DHT layer
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 8 / 15
Single machine
Original file a a a a a a b b b b b b c c Process A Process A Process B Process B
Client machine #1 File server Client machine #2 (a) (b)
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 9 / 15
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 10 / 15
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 11 / 15
Time Server Client Client Open(RD) Open(WR) File f File f Close Close Invalidate Session S Session S
A B
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 12 / 15
Client Server Old file Updated file Local copy
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 13 / 15
Time Server Client A Client B Open(RD) Open(RD) Open(WR) Open(WR) File f File f File f Close Close Close Close Invalidate (callback break) OK (no file transfer) Session S Session S Session S Session S
A A B B
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 14 / 15
Server S1 Server S2 Server S3 Client A Client B Broken network
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 15 / 15