SlideShare una empresa de Scribd logo
1 de 17
Slides for Chapter 12:
Distributed File Systems




From Coulouris, Dollimore, Kindberg and Blair
Distributed Systems:
        Concepts and Design
Edition 5, © Addison-Wesley 2012
Figure 12.1
Storage systems and their properties



                                             Sharing             Persis-           Distributed                     Consistency                 Example
                                                                 tence             cache/replicas                  maintenance

  Main memory                                                                                                              1                   RAM

  File system                                                                                                              1                   UNIX file system
  Distributed file system                                                                                                                      Sun NFS

  Web                                                                                                                                          Web server

  Distributed shared memory                                                                                                                    Ivy (DSM, Ch. 18)

  Remote objects (RMI/ORB)                                                                                                 1                   CORBA

  Persistent object store                                                                                                  1                   CORBA Persistent
                                                                                                                                               Object Service
  Peer-to-peer storage system                                                                                               2                  OceanStore (Ch. 10)

 Types of consistency:
 1: strict one-copy. 3: slightly weaker guarantees. 2: considerably weaker guarantees.



                                Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
                                                                             © Pearson Education 2012
Figure 12.2
File system modules




   Directory module:                          relates file names to file IDs

   File module:                               relates file IDs to particular files
   Access control module:                     checks permission for operation requested

   File access module:                        reads or writes file data or attributes
   Block module:                              accesses and allocates disk blocks

   Device module:                             disk I/O and buffering




                       Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
                                                                    © Pearson Education 2012
Figure 12.3
File attribute record structure


                                           File length
                              Creation timestamp
                                   Read timestamp
                                  Write timestamp
                              Attribute timestamp
                                    Reference count
                                                 Owner
                                               File type
                                    Access control list




                    Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
                                                                 © Pearson Education 2012
Figure 12.4
UNIX file system operations



 filedes = open(name, mode)                    Opens an existing file with the given name.
 filedes = creat(name, mode)                   Creates a new file with the given name.
                                               Both operations deliver a file descriptor referencing the open
                                               file. The mode is read, write or both.
 status = close(filedes)                       Closes the open file filedes.
 count = read(filedes, buffer, n)             Transfers n bytes from the file referenced by filedes to buffer.
 count = write(filedes, buffer, n)            Transfers n bytes to the file referenced by filedes from buffer.
                                              Both operations deliver the number of bytes actually transferred
                                              and advance the read-write pointer.
 pos = lseek(filedes, offset,                  Moves the read-write pointer to offset (relative or absolute,
                       whence)                 depending on whence).
 status = unlink(name)                         Removes the file name from the directory structure. If the file
                                               has no other names, it is deleted.
 status = link(name1, name2)                   Adds a new name (name2) for a file (name1).
 status = stat(name, buffer)                  Gets the file attributes for file name into buffer.




                           Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
                                                                        © Pearson Education 2012
Figure 12.5
File service architecture




          Client computer                                                                                      Server computer


    Application Application                                                                                    Directory
     program     program                                                                                       service




                                                                                                                     Flat file service

           Client module




                       Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
                                                                    © Pearson Education 2012
Figure 12.6
Flat file service operations




 Read(FileId, i, n) -> Data                If 1 ≤ i ≤ Length(File): Reads a sequence of up to n items
 — throws BadPosition                      from a file starting at item i and returns it in Data.
 Write(FileId, i, Data)                    If 1 ≤ i ≤ Length(File)+1: Writes a sequence of Data to a
 — throws BadPosition                      file, starting at item i, extending the file if necessary.
 Create() -> FileId                        Creates a new file of length 0 and delivers a UFID for it.
 Delete(FileId)                            Removes the file from the file store.
 GetAttributes(FileId) -> Attr             Returns the file attributes for the file.
 SetAttributes(FileId, Attr)               Sets the file attributes (only those attributes that are not
                                           shaded in Figure 12.3).




                       Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
                                                                    © Pearson Education 2012
Figure 12.7
Directory service operations




Lookup(Dir, Name) -> FileId                             Locates the text name in the directory and returns the
— throws NotFound                                       relevant UFID. If Name is not in the directory, throws an
                                                        exception.
AddName(Dir, Name, FileId)                             If Name is not in the directory, adds (Name, File) to the
— throws NameDuplicate                                 directory and updates the file’s attribute record.
                                                       If Name is already in the directory: throws an exception.
UnName(Dir, Name)                                       If Name is in the directory: the entry containing Name is
— throws NotFound                                       removed from the directory.
                                                        If Name is not in the directory: throws an exception.
GetNames(Dir, Pattern) -> NameSeq                       Returns all the text names in the directory that match the
                                                        regular expression Pattern.




                       Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
                                                                    © Pearson Education 2012
Figure 12.8
NFS architecture




                      Client computer                                                                                           Server computer



                Application       Application
                 program           program
     UNIX
 system calls
                                                                                   UNIX kernel
 UNIX kernel        Virtual file system                                                                                        Virtual file system
                      Local                          Remote
                              file system




                   UNIX                       NFS                                                                          NFS                 UNIX
                    file                                                                                                                        file
                              Other




                                              client                                                                      server
                  system                                                                                                                      system
                                                                     NFS
                                                                   protocol




                           Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
                                                                        © Pearson Education 2012
Figure 12.9
NFS server operations (simplified) – 1

  lookup(dirfh, name) -> fh, attr                   Returns file handle and attributes for the file name in the directory
                                                    dirfh.
  create(dirfh, name, attr) -                       Creates a new file name in directory dirfh with attributes attr and
  >              newfh, attr                        returns the new file handle and attributes.
 remove(dirfh, name) status                         Removes file name from directory dirfh.
 getattr(fh) -> attr                                Returns file attributes of file fh. (Similar to the UNIX stat system
                                                    call.)
 setattr(fh, attr) -> attr                         Sets the attributes (mode, user id, group id, size, access time and
                                                   modify time of a file). Setting the size to 0 truncates the file.
 read(fh, offset, count) -> attr,                   Returns up to count bytes of data from a file starting at offset.
 data                                               Also returns the latest attributes of the file.
 write(fh, offset, count, data) -> attr             Writes count bytes of data to a file starting at offset. Returns the
                                                    attributes of the file after the write has taken place.
 rename(dirfh, name, todirfh,                       Changes the name of file name in directory dirfh to toname in
 toname)        -> status                           directory to todirfh
                                                                     .
 link(newdirfh, newname, dirfh, name) Creates an entry newname in the directory newdirfh which refers to
                 -> status            file name in the directory dirfh.
  Continues on next slide ...
                                    Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
                                                                                 © Pearson Education 2012
Figure 12.9
NFS server operations (simplified) – 2


  symlink(newdirfh, newname, string)                    Creates an entry newname in the directory newdirfh of type
           -> status                                    symbolic link with the value string. The server does not interpret
                                                        the string but makes a symbolic link file to hold it.
  readlink(fh) -> string                                Returns the string that is associated with the symbolic link file
                                                        identified by fh.
  mkdir(dirfh, name, attr) ->                           Creates a new directory name with attributes attr and returns the
           newfh, attr                                  new file handle and attributes.
  rmdir(dirfh, name) -> status                          Removes the empty directory name from the parent directory dirfh.
                                                        Fails if the directory is not empty.
  readdir(dirfh, cookie, count) ->                      Returns up to count bytes of directory entries from the directory
           entries                                      dirfh. Each entry contains a file name, a file handle, and an opaque
                                                        pointer to the next directory entry, called a cookie. The cookie is
                                                        used in subsequent readdir calls to start reading from the following
                                                        entry. If the value of cookie is 0, reads from the first entry in the
                                                        directory.
  statfs(fh) -> fsstats                                 Returns file system information (such as block size, number of
                                                        free blocks and so on) for the file system containing a file fh.



                                Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
                                                                             © Pearson Education 2012
Figure 12.10
Local and remote file systems accessible on an NFS client



        Server 1                                                         Client                                                                  Server 2
               (root)                                                    (root)                                                                          (root)




         export                                   ...         vmunix                usr                                                               nfs



                              Remote                                                                               Remote
            people                                      students                   x          staff                                               users
                               mount                                                                                mount

    big jon bob         ...                                                                                                                jim ann jane joe


 Note:
  The file system mounted at /usr/students in the client is actually the sub-tree located at /export/people in Server 1;
 the file system mounted at /usr/staff in the client is actually the sub-tree located at /nfs/users in Server 2.


                              Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
                                                                           © Pearson Education 2012
Figure 12.11
Distribution of processes in the Andrew File System

       Workstations                                                                                                                      Servers

       User Venus
       program
                                                                                                                                          Vice
        UNIX kernel

                                                                                                                                 UNIX kernel

            Venus
       User                                                      Network
       program
        UNIX kernel

                                                                                                                                          Vice

            Venus
       User
       program                                                                                                                   UNIX kernel
       UNIX kernel



                      Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
                                                                   © Pearson Education 2012
Figure 12.12
File name space seen by clients of AFS

                 Local                                                                                              Shared
                                         / (root)




   tmp    bin     . . .          vmunix                                                                               cmu




                                                                                                                                       bin



                Symbolic
                links



                    Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
                                                                 © Pearson Education 2012
Figure 12.13
System call interception in AFS

                                                 Workstation



      User                                                                                                                            Venus
    program
                    UNIX file                                               Non-local file
                  system calls                                               operations

                                                UNIX kernel
                                        UNIX file system


                                  Local
                                   disk


                   Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
                                                                © Pearson Education 2012
Figure 12.14
Implementation of file system calls in AFS

               User process                   UNIX kernel                                Venus                  Net                    Vice
           open(FileName,             If FileName refers to a
                mode)                 file in shared file space,
                                      pass the request to        Check list of files in
                                                                 local cache. If not
                                      Venus.                     present or there is no
                                                                 valid callback promise,
                                                                 send a request for the
                                                                 file to the Vice server
                                                                 that is custodian of the
                                                                 volume containing the                                  Transfer a copy of the
                                                                 file.                                                  file and a callback
                                                                                                                        promise to the
                                                                                                                        workstation. Log the
                                                                            Place the copy of the                       callback promise.
                                                                            file in the local file
                                      Open the local file and               system, enter its local
                                      return the file                       name in the local cache
                                      descriptor to the                     list and return the local
                                      application.                          name to UNIX.
           read(FileDescriptor,       Perform a normal
                Buffer, length)       UNIX read operation
                                      on the local copy.
           write(FileDescriptor,      Perform a normal
                Buffer, length)       UNIX write operation
                                      on the local copy.
           close(FileDescriptor) Close the local copy
                                 and notify Venus that
                                 the file has been closed. If the local copy has
                                                           been changed, send a
                                                           copy to the Vice server                                      Replace the file
                                                           that is the custodian of                                     contents and send a
                                                           the file.                                                    callback to all other
                                                                                                                        clients holding callback
                                                                                                                        promises on the file.
                         Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
                                                                      © Pearson Education 2012
Figure 12.15
The main components of the Vice service interface


 Fetch(fid) -> attr, data         Returns the attributes (status) and, optionally, the contents of file
                                  identified by the fid and records a callback promise on it.
 Store(fid, attr, data)           Updates the attributes and (optionally) the contents of a specified
                                  file.
 Create() -> fid                  Creates a new file and records a callback promise on it.
 Remove(fid)                      Deletes the specified file.
 SetLock(fid, mode)               Sets a lock on the specified file or directory. The mode of the
                                  lock may be shared or exclusive. Locks that are not removed
                                  expire after 30 minutes.
 ReleaseLock(fid)                 Unlocks the specified file or directory.
 RemoveCallback(fid)              Informs server that a Venus process has flushed a file from its
                                  cache.
 BreakCallback(fid)               This call is made by a Vice server to a Venus process. It cancels
                                  the callback promise on the relevant file.




                            Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
                                                                         © Pearson Education 2012

Más contenido relacionado

La actualidad más candente

Chapter 9 slides
Chapter 9 slidesChapter 9 slides
Chapter 9 slideslara_ays
 
Life without the Novell Client
Life without the Novell ClientLife without the Novell Client
Life without the Novell ClientNovell
 
DataDomain brochure
DataDomain brochureDataDomain brochure
DataDomain brochureCommaGroup
 
HDFS Futures: NameNode Federation for Improved Efficiency and Scalability
HDFS Futures: NameNode Federation for Improved Efficiency and ScalabilityHDFS Futures: NameNode Federation for Improved Efficiency and Scalability
HDFS Futures: NameNode Federation for Improved Efficiency and ScalabilityHortonworks
 
GTB IRM - How it Works - 2013
GTB IRM - How it Works - 2013GTB IRM - How it Works - 2013
GTB IRM - How it Works - 2013Ravindran Vasu
 
9/28/11 Slides - Introduction to DuraCloud, Slides
9/28/11 Slides - Introduction to DuraCloud, Slides9/28/11 Slides - Introduction to DuraCloud, Slides
9/28/11 Slides - Introduction to DuraCloud, SlidesDuraSpace
 
Scaling Data Servers via Cooperative Caching
Scaling Data Servers via Cooperative CachingScaling Data Servers via Cooperative Caching
Scaling Data Servers via Cooperative Cachingsiddreddy
 
Chapter 1 characterisation of distributed systems
Chapter 1 characterisation of distributed systemsChapter 1 characterisation of distributed systems
Chapter 1 characterisation of distributed systemsAbDul ThaYyal
 
File naming conventions and best practices for cultural institutions
File naming conventions and best practices for cultural institutionsFile naming conventions and best practices for cultural institutions
File naming conventions and best practices for cultural institutionsPerian Sully
 
fiwalk With Me: Building Emergent Pre-Ingest Workflows for Digital Archival R...
fiwalk With Me: Building Emergent Pre-Ingest Workflows for Digital Archival R...fiwalk With Me: Building Emergent Pre-Ingest Workflows for Digital Archival R...
fiwalk With Me: Building Emergent Pre-Ingest Workflows for Digital Archival R...Mark Matienzo
 

La actualidad más candente (14)

Chapter 9 slides
Chapter 9 slidesChapter 9 slides
Chapter 9 slides
 
Life without the Novell Client
Life without the Novell ClientLife without the Novell Client
Life without the Novell Client
 
Ronnie Oomen (EMC)
Ronnie Oomen (EMC)Ronnie Oomen (EMC)
Ronnie Oomen (EMC)
 
DataDomain brochure
DataDomain brochureDataDomain brochure
DataDomain brochure
 
HDFS Futures: NameNode Federation for Improved Efficiency and Scalability
HDFS Futures: NameNode Federation for Improved Efficiency and ScalabilityHDFS Futures: NameNode Federation for Improved Efficiency and Scalability
HDFS Futures: NameNode Federation for Improved Efficiency and Scalability
 
Novell Filr
Novell FilrNovell Filr
Novell Filr
 
GTB IRM - How it Works - 2013
GTB IRM - How it Works - 2013GTB IRM - How it Works - 2013
GTB IRM - How it Works - 2013
 
Azboxme
AzboxmeAzboxme
Azboxme
 
1556 a 08
1556 a 081556 a 08
1556 a 08
 
9/28/11 Slides - Introduction to DuraCloud, Slides
9/28/11 Slides - Introduction to DuraCloud, Slides9/28/11 Slides - Introduction to DuraCloud, Slides
9/28/11 Slides - Introduction to DuraCloud, Slides
 
Scaling Data Servers via Cooperative Caching
Scaling Data Servers via Cooperative CachingScaling Data Servers via Cooperative Caching
Scaling Data Servers via Cooperative Caching
 
Chapter 1 characterisation of distributed systems
Chapter 1 characterisation of distributed systemsChapter 1 characterisation of distributed systems
Chapter 1 characterisation of distributed systems
 
File naming conventions and best practices for cultural institutions
File naming conventions and best practices for cultural institutionsFile naming conventions and best practices for cultural institutions
File naming conventions and best practices for cultural institutions
 
fiwalk With Me: Building Emergent Pre-Ingest Workflows for Digital Archival R...
fiwalk With Me: Building Emergent Pre-Ingest Workflows for Digital Archival R...fiwalk With Me: Building Emergent Pre-Ingest Workflows for Digital Archival R...
fiwalk With Me: Building Emergent Pre-Ingest Workflows for Digital Archival R...
 

Destacado

Stij5014 distributed systems
Stij5014 distributed systemsStij5014 distributed systems
Stij5014 distributed systemslara_ays
 
Chapter 10.slides
Chapter 10.slidesChapter 10.slides
Chapter 10.slideslara_ays
 
Chapter 7 slides
Chapter 7 slidesChapter 7 slides
Chapter 7 slideslara_ays
 
Chapter 3 slides
Chapter 3 slidesChapter 3 slides
Chapter 3 slideslara_ays
 
Chapter 3 a
Chapter 3 aChapter 3 a
Chapter 3 alara_ays
 
Chapter 2 slides
Chapter 2 slidesChapter 2 slides
Chapter 2 slideslara_ays
 
Chapter 6 slides
Chapter 6 slidesChapter 6 slides
Chapter 6 slideslara_ays
 
Chapter 4 slides
Chapter 4 slidesChapter 4 slides
Chapter 4 slideslara_ays
 
Chapter 5 slides
Chapter 5 slidesChapter 5 slides
Chapter 5 slideslara_ays
 
Chapter 2 system models
Chapter 2 system modelsChapter 2 system models
Chapter 2 system modelsAbDul ThaYyal
 
Distributed File Systems
Distributed File SystemsDistributed File Systems
Distributed File Systemsawesomesos
 
Interprocess communication
Interprocess communicationInterprocess communication
Interprocess communicationSushil Singh
 
Distributed File Systems
Distributed File Systems Distributed File Systems
Distributed File Systems Maurvi04
 
Inter process communication
Inter process communicationInter process communication
Inter process communicationMohd Tousif
 
Op Sy 03 Ch 33
Op Sy 03 Ch 33Op Sy 03 Ch 33
Op Sy 03 Ch 33 Google
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Ravindra Raju Kolahalam
 

Destacado (20)

Stij5014 distributed systems
Stij5014 distributed systemsStij5014 distributed systems
Stij5014 distributed systems
 
Chapter 10.slides
Chapter 10.slidesChapter 10.slides
Chapter 10.slides
 
Chapter 7 slides
Chapter 7 slidesChapter 7 slides
Chapter 7 slides
 
Chapter 3 slides
Chapter 3 slidesChapter 3 slides
Chapter 3 slides
 
IPC
IPCIPC
IPC
 
Chapter 3 a
Chapter 3 aChapter 3 a
Chapter 3 a
 
Chapter 2 slides
Chapter 2 slidesChapter 2 slides
Chapter 2 slides
 
Chapter 6 slides
Chapter 6 slidesChapter 6 slides
Chapter 6 slides
 
Chapter 4 slides
Chapter 4 slidesChapter 4 slides
Chapter 4 slides
 
Chapter 5 slides
Chapter 5 slidesChapter 5 slides
Chapter 5 slides
 
Chapter 2 system models
Chapter 2 system modelsChapter 2 system models
Chapter 2 system models
 
Ipc
IpcIpc
Ipc
 
Distributed File Systems
Distributed File SystemsDistributed File Systems
Distributed File Systems
 
Interprocess communication
Interprocess communicationInterprocess communication
Interprocess communication
 
Distributed File Systems
Distributed File Systems Distributed File Systems
Distributed File Systems
 
Inter process communication
Inter process communicationInter process communication
Inter process communication
 
Op Sy 03 Ch 33
Op Sy 03 Ch 33Op Sy 03 Ch 33
Op Sy 03 Ch 33
 
Distributed System
Distributed System Distributed System
Distributed System
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]
 
Inter Process Communication
Inter Process CommunicationInter Process Communication
Inter Process Communication
 

Similar a Distributed File Systems Chapter 12 Slides

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
 
Distributed file system
Distributed file systemDistributed file system
Distributed file systemJanani S
 
3. distributed file system requirements
3. distributed file system requirements3. distributed file system requirements
3. distributed file system requirementsAbDul ThaYyal
 
SQLBits X SQL Server 2012 Rich Unstructured Data
SQLBits X SQL Server 2012 Rich Unstructured DataSQLBits X SQL Server 2012 Rich Unstructured Data
SQLBits X SQL Server 2012 Rich Unstructured DataMichael Rys
 
Chapter 8 distributed file systems
Chapter 8 distributed file systemsChapter 8 distributed file systems
Chapter 8 distributed file systemsAbDul ThaYyal
 
Document Archiving & Sharing System
Document Archiving & Sharing SystemDocument Archiving & Sharing System
Document Archiving & Sharing SystemAshik Iqbal
 
1.2 active directory
1.2 active directory1.2 active directory
1.2 active directoryMuuluu
 
OS (a) - 5 Points - What is an inode- (b) - 5 Points - How does a soft.docx
OS (a) - 5 Points - What is an inode- (b) - 5 Points - How does a soft.docxOS (a) - 5 Points - What is an inode- (b) - 5 Points - How does a soft.docx
OS (a) - 5 Points - What is an inode- (b) - 5 Points - How does a soft.docxlmark1
 
A JCR View of the World - adaptTo() 2012 Berlin
A JCR View of the World - adaptTo() 2012 BerlinA JCR View of the World - adaptTo() 2012 Berlin
A JCR View of the World - adaptTo() 2012 BerlinAlexander Klimetschek
 
Distributed System by Pratik Tambekar
Distributed System by Pratik TambekarDistributed System by Pratik Tambekar
Distributed System by Pratik TambekarPratik Tambekar
 
4.file service architecture
4.file service architecture4.file service architecture
4.file service architectureAbDul ThaYyal
 
4.file service architecture (1)
4.file service architecture (1)4.file service architecture (1)
4.file service architecture (1)AbDul ThaYyal
 
Ch11 OS
Ch11 OSCh11 OS
Ch11 OSC.U
 
Hadoop Distributed File System
Hadoop Distributed File SystemHadoop Distributed File System
Hadoop Distributed File SystemMilad Sobhkhiz
 

Similar a Distributed File Systems Chapter 12 Slides (20)

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
 
DFSNov1.pptx
DFSNov1.pptxDFSNov1.pptx
DFSNov1.pptx
 
Distributed file system
Distributed file systemDistributed file system
Distributed file system
 
3. distributed file system requirements
3. distributed file system requirements3. distributed file system requirements
3. distributed file system requirements
 
SQLBits X SQL Server 2012 Rich Unstructured Data
SQLBits X SQL Server 2012 Rich Unstructured DataSQLBits X SQL Server 2012 Rich Unstructured Data
SQLBits X SQL Server 2012 Rich Unstructured Data
 
Chapter 8 distributed file systems
Chapter 8 distributed file systemsChapter 8 distributed file systems
Chapter 8 distributed file systems
 
Document Archiving & Sharing System
Document Archiving & Sharing SystemDocument Archiving & Sharing System
Document Archiving & Sharing System
 
1.2 active directory
1.2 active directory1.2 active directory
1.2 active directory
 
OS (a) - 5 Points - What is an inode- (b) - 5 Points - How does a soft.docx
OS (a) - 5 Points - What is an inode- (b) - 5 Points - How does a soft.docxOS (a) - 5 Points - What is an inode- (b) - 5 Points - How does a soft.docx
OS (a) - 5 Points - What is an inode- (b) - 5 Points - How does a soft.docx
 
A JCR View of the World - adaptTo() 2012 Berlin
A JCR View of the World - adaptTo() 2012 BerlinA JCR View of the World - adaptTo() 2012 Berlin
A JCR View of the World - adaptTo() 2012 Berlin
 
Ranjitbanshpal
RanjitbanshpalRanjitbanshpal
Ranjitbanshpal
 
CH11.pdf
CH11.pdfCH11.pdf
CH11.pdf
 
Distributed System by Pratik Tambekar
Distributed System by Pratik TambekarDistributed System by Pratik Tambekar
Distributed System by Pratik Tambekar
 
4.file service architecture
4.file service architecture4.file service architecture
4.file service architecture
 
4.file service architecture (1)
4.file service architecture (1)4.file service architecture (1)
4.file service architecture (1)
 
Os6
Os6Os6
Os6
 
Ch11 OS
Ch11 OSCh11 OS
Ch11 OS
 
OSCh11
OSCh11OSCh11
OSCh11
 
OS_Ch11
OS_Ch11OS_Ch11
OS_Ch11
 
Hadoop Distributed File System
Hadoop Distributed File SystemHadoop Distributed File System
Hadoop Distributed File System
 

Último

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
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
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 

Último (20)

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
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
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 

Distributed File Systems Chapter 12 Slides

  • 1. Slides for Chapter 12: Distributed File Systems From Coulouris, Dollimore, Kindberg and Blair Distributed Systems: Concepts and Design Edition 5, © Addison-Wesley 2012
  • 2. Figure 12.1 Storage systems and their properties Sharing Persis- Distributed Consistency Example tence cache/replicas maintenance Main memory 1 RAM File system 1 UNIX file system Distributed file system Sun NFS Web Web server Distributed shared memory Ivy (DSM, Ch. 18) Remote objects (RMI/ORB) 1 CORBA Persistent object store 1 CORBA Persistent Object Service Peer-to-peer storage system 2 OceanStore (Ch. 10) Types of consistency: 1: strict one-copy. 3: slightly weaker guarantees. 2: considerably weaker guarantees. Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5 © Pearson Education 2012
  • 3. Figure 12.2 File system modules Directory module: relates file names to file IDs File module: relates file IDs to particular files Access control module: checks permission for operation requested File access module: reads or writes file data or attributes Block module: accesses and allocates disk blocks Device module: disk I/O and buffering Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5 © Pearson Education 2012
  • 4. Figure 12.3 File attribute record structure File length Creation timestamp Read timestamp Write timestamp Attribute timestamp Reference count Owner File type Access control list Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5 © Pearson Education 2012
  • 5. Figure 12.4 UNIX file system operations filedes = open(name, mode) Opens an existing file with the given name. filedes = creat(name, mode) Creates a new file with the given name. Both operations deliver a file descriptor referencing the open file. The mode is read, write or both. status = close(filedes) Closes the open file filedes. count = read(filedes, buffer, n) Transfers n bytes from the file referenced by filedes to buffer. count = write(filedes, buffer, n) Transfers n bytes to the file referenced by filedes from buffer. Both operations deliver the number of bytes actually transferred and advance the read-write pointer. pos = lseek(filedes, offset, Moves the read-write pointer to offset (relative or absolute, whence) depending on whence). status = unlink(name) Removes the file name from the directory structure. If the file has no other names, it is deleted. status = link(name1, name2) Adds a new name (name2) for a file (name1). status = stat(name, buffer) Gets the file attributes for file name into buffer. Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5 © Pearson Education 2012
  • 6. Figure 12.5 File service architecture Client computer Server computer Application Application Directory program program service Flat file service Client module Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5 © Pearson Education 2012
  • 7. Figure 12.6 Flat file service operations Read(FileId, i, n) -> Data If 1 ≤ i ≤ Length(File): Reads a sequence of up to n items — throws BadPosition from a file starting at item i and returns it in Data. Write(FileId, i, Data) If 1 ≤ i ≤ Length(File)+1: Writes a sequence of Data to a — throws BadPosition file, starting at item i, extending the file if necessary. Create() -> FileId Creates a new file of length 0 and delivers a UFID for it. Delete(FileId) Removes the file from the file store. GetAttributes(FileId) -> Attr Returns the file attributes for the file. SetAttributes(FileId, Attr) Sets the file attributes (only those attributes that are not shaded in Figure 12.3). Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5 © Pearson Education 2012
  • 8. Figure 12.7 Directory service operations Lookup(Dir, Name) -> FileId Locates the text name in the directory and returns the — throws NotFound relevant UFID. If Name is not in the directory, throws an exception. AddName(Dir, Name, FileId) If Name is not in the directory, adds (Name, File) to the — throws NameDuplicate directory and updates the file’s attribute record. If Name is already in the directory: throws an exception. UnName(Dir, Name) If Name is in the directory: the entry containing Name is — throws NotFound removed from the directory. If Name is not in the directory: throws an exception. GetNames(Dir, Pattern) -> NameSeq Returns all the text names in the directory that match the regular expression Pattern. Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5 © Pearson Education 2012
  • 9. Figure 12.8 NFS architecture Client computer Server computer Application Application program program UNIX system calls UNIX kernel UNIX kernel Virtual file system Virtual file system Local Remote file system UNIX NFS NFS UNIX file file Other client server system system NFS protocol Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5 © Pearson Education 2012
  • 10. Figure 12.9 NFS server operations (simplified) – 1 lookup(dirfh, name) -> fh, attr Returns file handle and attributes for the file name in the directory dirfh. create(dirfh, name, attr) - Creates a new file name in directory dirfh with attributes attr and > newfh, attr returns the new file handle and attributes. remove(dirfh, name) status Removes file name from directory dirfh. getattr(fh) -> attr Returns file attributes of file fh. (Similar to the UNIX stat system call.) setattr(fh, attr) -> attr Sets the attributes (mode, user id, group id, size, access time and modify time of a file). Setting the size to 0 truncates the file. read(fh, offset, count) -> attr, Returns up to count bytes of data from a file starting at offset. data Also returns the latest attributes of the file. write(fh, offset, count, data) -> attr Writes count bytes of data to a file starting at offset. Returns the attributes of the file after the write has taken place. rename(dirfh, name, todirfh, Changes the name of file name in directory dirfh to toname in toname) -> status directory to todirfh . link(newdirfh, newname, dirfh, name) Creates an entry newname in the directory newdirfh which refers to -> status file name in the directory dirfh. Continues on next slide ... Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5 © Pearson Education 2012
  • 11. Figure 12.9 NFS server operations (simplified) – 2 symlink(newdirfh, newname, string) Creates an entry newname in the directory newdirfh of type -> status symbolic link with the value string. The server does not interpret the string but makes a symbolic link file to hold it. readlink(fh) -> string Returns the string that is associated with the symbolic link file identified by fh. mkdir(dirfh, name, attr) -> Creates a new directory name with attributes attr and returns the newfh, attr new file handle and attributes. rmdir(dirfh, name) -> status Removes the empty directory name from the parent directory dirfh. Fails if the directory is not empty. readdir(dirfh, cookie, count) -> Returns up to count bytes of directory entries from the directory entries dirfh. Each entry contains a file name, a file handle, and an opaque pointer to the next directory entry, called a cookie. The cookie is used in subsequent readdir calls to start reading from the following entry. If the value of cookie is 0, reads from the first entry in the directory. statfs(fh) -> fsstats Returns file system information (such as block size, number of free blocks and so on) for the file system containing a file fh. Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5 © Pearson Education 2012
  • 12. Figure 12.10 Local and remote file systems accessible on an NFS client Server 1 Client Server 2 (root) (root) (root) export ... vmunix usr nfs Remote Remote people students x staff users mount mount big jon bob ... jim ann jane joe Note: The file system mounted at /usr/students in the client is actually the sub-tree located at /export/people in Server 1; the file system mounted at /usr/staff in the client is actually the sub-tree located at /nfs/users in Server 2. Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5 © Pearson Education 2012
  • 13. Figure 12.11 Distribution of processes in the Andrew File System Workstations Servers User Venus program Vice UNIX kernel UNIX kernel Venus User Network program UNIX kernel Vice Venus User program UNIX kernel UNIX kernel Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5 © Pearson Education 2012
  • 14. Figure 12.12 File name space seen by clients of AFS Local Shared / (root) tmp bin . . . vmunix cmu bin Symbolic links Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5 © Pearson Education 2012
  • 15. Figure 12.13 System call interception in AFS Workstation User Venus program UNIX file Non-local file system calls operations UNIX kernel UNIX file system Local disk Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5 © Pearson Education 2012
  • 16. Figure 12.14 Implementation of file system calls in AFS User process UNIX kernel Venus Net Vice open(FileName, If FileName refers to a mode) file in shared file space, pass the request to Check list of files in local cache. If not Venus. present or there is no valid callback promise, send a request for the file to the Vice server that is custodian of the volume containing the Transfer a copy of the file. file and a callback promise to the workstation. Log the Place the copy of the callback promise. file in the local file Open the local file and system, enter its local return the file name in the local cache descriptor to the list and return the local application. name to UNIX. read(FileDescriptor, Perform a normal Buffer, length) UNIX read operation on the local copy. write(FileDescriptor, Perform a normal Buffer, length) UNIX write operation on the local copy. close(FileDescriptor) Close the local copy and notify Venus that the file has been closed. If the local copy has been changed, send a copy to the Vice server Replace the file that is the custodian of contents and send a the file. callback to all other clients holding callback promises on the file. Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5 © Pearson Education 2012
  • 17. Figure 12.15 The main components of the Vice service interface Fetch(fid) -> attr, data Returns the attributes (status) and, optionally, the contents of file identified by the fid and records a callback promise on it. Store(fid, attr, data) Updates the attributes and (optionally) the contents of a specified file. Create() -> fid Creates a new file and records a callback promise on it. Remove(fid) Deletes the specified file. SetLock(fid, mode) Sets a lock on the specified file or directory. The mode of the lock may be shared or exclusive. Locks that are not removed expire after 30 minutes. ReleaseLock(fid) Unlocks the specified file or directory. RemoveCallback(fid) Informs server that a Venus process has flushed a file from its cache. BreakCallback(fid) This call is made by a Vice server to a Venus process. It cancels the callback promise on the relevant file. Instructor’s Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5 © Pearson Education 2012