Presentation is loading. Please wait.

Presentation is loading. Please wait.

DISTRIBUTED FILE SYSTEMS Pages - all 1. Topics  Introduction  File Service Architecture  DFS: Case Studies  Case Study: Sun NFS  Case Study: The.

Similar presentations


Presentation on theme: "DISTRIBUTED FILE SYSTEMS Pages - all 1. Topics  Introduction  File Service Architecture  DFS: Case Studies  Case Study: Sun NFS  Case Study: The."— Presentation transcript:

1 DISTRIBUTED FILE SYSTEMS Pages - all 1

2

3 Topics  Introduction  File Service Architecture  DFS: Case Studies  Case Study: Sun NFS  Case Study: The Andrew File System (no need) 3

4 4 Introduction  File system were originally developed for centralized computer systems and desktop computers.  File system was as an operating system facility providing a convenient programming interface to disk storage.

5 5 Introduction  Distributed file systems support the sharing of information in the form of files and hardware resources.  With the advent of distributed object systems (CORBA, Java) and the web, the picture has become more complex.  Figure 1 provides an overview of types of storage system.

6 6 Introduction SharingPersis- tence Distributed cache/replicas Consistency maintenance Example Main memory RAM File systemUNIX file system Distributed file systemSun NFS Web Web server Distributed shared memoryIvy (Ch. 18) Remote objects (RMI/ORB)CORBA Persistent object store 1 CORBA Persistent Object Service Peer-to-peer storage system OceanStore(Ch. 10) 1 1 1 Figure 1. Storage systems and their properties Types of consistency between copies: 1 - strict one-copy consistency √ - approximate consistency X - no automatic consistency

7 7 Introduction Figure 2. File system modules

8 8 Introduction  File systems are responsible for the organization, storage, retrieval, naming, sharing and protection of files.  Files contain both data and attributes.  A typical attribute record structure is illustrated in Figure 3.

9 9 Introduction File length Creation timestamp Read timestamp Write timestamp Attribute timestamp Reference count Owner File type Access control list Figure 3. File attribute record structure

10 10 Introduction  Figure 4 summarizes the main operations on files that are available to applications in UNIX systems.

11 11 Introduction filedes = open(name, mode) filedes = creat(name, mode) Opens an existing file with the given name. 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) count = write(filedes, buffer, n) Transfers n bytes from the file referenced by filedes to buffer. 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, whence) Moves the read-write pointer to offset (relative or absolute, 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. Figure 4. UNIX file system operations

12 12 Introduction  Distributed File system requirements  Related requirements in distributed file systems are:  Transparency  Concurrency  Replication  Heterogeneity  Fault tolerance  Consistency  Security  Efficiency

13 Transparency (1) 13 Access transparency: Client programs should be unaware of the distribution of files. Location transparency: Client program should see a uniform namespace. Files should be able to be relocated without changing their path name. Mobility transparency: Neither client programs nor system admin program tables in the client nodes should be changed when files are moved either automatically or by the system admin.

14 Transparency (2) 14 Performance transparency: Client programs should continue to perform well on load within a specified range. Scaling transparency: increase in size of storage and network size should be transparent.

15 Other Requirements 15 Concurrent file updates is protected (record locking). File replication to allow performance. Hardware and operating system heterogeneity. Fault tolerance Consistency : Unix uses on on-copy update semantics. This may be difficult to achieve in DFS Security and Efficiency

16 16 Case Study: Sun NFS (lab.)


Download ppt "DISTRIBUTED FILE SYSTEMS Pages - all 1. Topics  Introduction  File Service Architecture  DFS: Case Studies  Case Study: Sun NFS  Case Study: The."

Similar presentations


Ads by Google