Computer Science Lecture 18, page 1 CS677: Distributed OS Last Class: Fault tolerance Reliable communication –One-one communication –One-many communication.

Slides:



Advertisements
Similar presentations
Chapter 12: File System Implementation
Advertisements

DISTRIBUTED FILE SYSTEMS Computer Engineering Department Distributed Systems Course Asst. Prof. Dr. Ahmet Sayar Kocaeli University - Fall 2013.
Distributed Storage March 12, Distributed Storage What is Distributed Storage?  Simple answer: Storage that can be shared throughout a network.
CS-550: Distributed File Systems [SiS]1 Resource Management in Distributed Systems: Distributed File Systems.
Computer Science Lecture 20, page 1 CS677: Distributed OS Today: Distributed File Systems Issues in distributed file systems Sun’s Network File System.
Computer Science Lecture 18, page 1 CS677: Distributed OS Last Class: Fault Tolerance Basic concepts and failure models Failure masking using redundancy.
Chapter 11: File System Implementation
File System Implementation
File System Implementation
Chapter 12 File-System Implementation
Computer Science Lecture 17, page 1 CS677: Distributed OS Last Class: Fault Tolerance Basic concepts and failure models Failure masking using redundancy.
Other File Systems: LFS and NFS. 2 Log-Structured File Systems The trend: CPUs are faster, RAM & caches are bigger –So, a lot of reads do not require.
Chapter 11: File System Implementation. File-System Structure File-System Implementation Directory Implementation Allocation Methods Free-Space Management.
Computer Science Lecture 21, page 1 CS677: Distributed OS Today: Coda, xFS Case Study: Coda File System Brief overview of other recent file systems –xFS.
Chapter 10: File-System Interface
Chapter 11: File System Implementation. 2 File System Implementation File System Implementation File-System Structure File-System Implementation Directory.
6/24/2015B.RamamurthyPage 1 File System B. Ramamurthy.
1 File Management in Representative Operating Systems.
Distributed File Systems Chapter 10. NFS Architecture (1) a)The remote access model. b)The upload/download model.
04/05/2004CSCI 315 Operating Systems Design1 File System Implementation.
04/07/2010CSCI 315 Operating Systems Design1 File System Implementation.
NFS. The Sun Network File System (NFS) An implementation and a specification of a software system for accessing remote files across LANs. The implementation.
7/15/2015B.RamamurthyPage 1 File System B. Ramamurthy.
Dr. Kalpakis CMSC 421, Operating Systems File System Implementation.
File Systems (2). Readings r Silbershatz et al: 11.8.
Sun NFS Distributed File System Presentation by Jeff Graham and David Larsen.
Lecture 4 Operating System & Application Software.
Network File System Phil Segel Muhammad Kamran Arain Ala F. Alnawaiseh Group 3.
Rensselaer Polytechnic Institute CSCI-4210 – Operating Systems David Goldschmidt, Ph.D.
CSC 456 Operating Systems Seminar Presentation (11/13/2012) Leon Weingard, Liang Xin The Google File System.
Networked File System CS Introduction to Operating Systems.
What is a Distributed File System?? Allows transparent access to remote files over a network. Examples: Network File System (NFS) by Sun Microsystems.
Chapter 10: File-System Interface Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005 Chapter 10: File-System.
File Systems (1). Readings r Reading: Disks, disk scheduling (3.7 of textbook; “How Stuff Works”) r Reading: File System Implementation ( of textbook)
Introduction to DFS. Distributed File Systems A file system whose clients, servers and storage devices are dispersed among the machines of a distributed.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 12: File System Implementation File System Structure File System Implementation.
File System Implementation
Chapter 11: File System Implementation Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005 Implementation.
12.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Chapter 12: File System Implementation Chapter 12: File System Implementation.
Module 4.0: File Systems File is a contiguous logical address space.
Ridge Xu 12.1 Operating System Concepts Chapter 12: File System Implementation File System Structure File System Implementation Directory Implementation.
ITEC 502 컴퓨터 시스템 및 실습 Chapter 11-2: File System Implementation Mi-Jung Choi DPNM Lab. Dept. of CSE, POSTECH.
Chapter 11: File System Implementation. 11.2Operating System – CSCI 380 Chapter 11: File System Implementation Chapter 11: File System Implementation.
Computer Science Lecture 19, page 1 CS677: Distributed OS Last Class: Fault tolerance Reliable communication –One-one communication –One-many communication.
Chapter 11: File System Implementation Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 11: File System Implementation Chapter.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition File System Implementation.
GLOBAL EDGE SOFTWERE LTD1 R EMOTE F ILE S HARING - Ardhanareesh Aradhyamath.
Distributed File Systems Chapter 10. NFS Architecture (1) a)The remote access model. b)The upload/download model Advantages or disadvantages?
Distributed File Systems Architecture – 11.1 Processes – 11.2 Communication – 11.3 Naming – 11.4.
Presentation-2 Group-A1 Professor:Mohamed Khalil Anita Kanuganti Hemanth Rao.
Lecture 19 Linux/Unix – File System
Computer Science Lecture 3, page 1 CS677: Distributed OS Last Class: Communication in Distributed Systems Structured or unstructured? Addressing? Blocking/non-blocking?
Distributed File Systems Group A5 Amit Sharma Dhaval Sanghvi Ali Abbas.
Review CS File Systems - Partitions What is a hard disk partition?
Distributed File Systems Questions answered in this lecture: Why are distributed file systems useful? What is difficult about distributed file systems?
Chapter 11: File System Implementation Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005 Outline n File-System.
Chapter Five Distributed file systems. 2 Contents Distributed file system design Distributed file system implementation Trends in distributed file systems.
Distributed Systems: Distributed File Systems Ghada Ahmed, PhD. Assistant Prof., Computer Science Dept. Web:
Computer Science Lecture 20, page 1 CS677: Distributed OS Today: Distributed File Systems Issues in distributed file systems Sun’s Network File System.
Computer Science Lecture 19, page 1 CS677: Distributed OS Last Class: Fault tolerance Reliable communication –One-one communication –One-many communication.
DISTRIBUTED FILE SYSTEM- ENHANCEMENT AND FURTHER DEVELOPMENT BY:- PALLAWI(10BIT0033)
Chapter 12: File System Implementation
Chapter 11: File System Implementation
File System Implementation
File System B. Ramamurthy B.Ramamurthy 11/27/2018.
Chapter 11: File System Implementation
Chapter 15: File System Internals
Today: Distributed File Systems
Last Class: Fault Tolerance
Presentation transcript:

Computer Science Lecture 18, page 1 CS677: Distributed OS Last Class: Fault tolerance Reliable communication –One-one communication –One-many communication Distributed commit –Two phase commit –Three phase commit Failure recovery –Checkpointing –Message logging

Computer Science Lecture 18, page 2 CS677: Distributed OS Recovery Techniques thus far allow failure handling Recovery: operations that must be performed after a failure to recover to a correct state Techniques: –Checkpointing: Periodically checkpoint state Upon a crash roll back to a previous checkpoint with a consistent state

Computer Science Lecture 18, page 3 CS677: Distributed OS Coordinated Checkpointing Periodically checkpoint state –Take a distributed snapshot [discussed in Lec. 11] Upon a failure, roll back to the latest snapshot –All process restart from the latest snapshot

Computer Science Lecture 18, page 4 CS677: Distributed OS Message Logging Checkpointing is expensive –All processes restart from previous consistent cut –Taking a snapshot is expensive –Infrequent snapshots => all computations after previous snapshot will need to be redone [wasteful] Combine checkpointing (expensive) with message logging (cheap) –Take infrequent checkpoints –Log all messages between checkpoints to local stable storage –To recover: simply replay messages from previous checkpoint Avoids recomputations from previous checkpoint

Computer Science Lecture 18, page 5 CS677: Distributed OS Today: Distributed File Systems Overview of stand-alone (UNIX) file systems Issues in distributed file systems Next two classes: case studies of distributed file systems NFS Code xFS Log-structured file systems (time permitting)

Computer Science Lecture 18, page 6 CS677: Distributed OS File System Basics File: named collection of logically related data –Unix file: an uninterpreted sequence of bytes File system: –Provides a logical view of data and storage functions –User-friendly interface –Provides facility to create, modify, organize, and delete files –Provides sharing among users in a controlled manner –Provides protection

Computer Science Lecture 18, page 7 CS677: Distributed OS Unix File System Review User file: linear array of bytes. No records, no file types Directory: special file not directly writable by user File structure: directed acyclic graph [directories may not be shared, files may be shared (why?) ] Directory entry for each file –File name –inode number –Major device number –Minor device number All inodes are stored at a special location on disk [super block] –Inodes store file attributes and a multi-level index that has a list of disk block locations for the file

Computer Science Lecture 18, page 8 CS677: Distributed OS Inode Structure Fields –Mode –Owner_ID, group_id –Dir_file –Protection bits –Last access time, last write time, last inode time –Size, no of blocks –Ref_cnt –Address[0], … address[14] Multi-level index: 12 direct blocks, one single, double, and triple indirect blocks

Computer Science Lecture 18, page 9 CS677: Distributed OS Distributed File Systems File service: specification of what the file system offers –Client primitives, application programming interface (API) File server: process that implements file service –Can have several servers on one machine (UNIX, DOS,…) Components of interest –File service –Directory service

Computer Science Lecture 18, page 10 CS677: Distributed OS File Service Remote access model –Work done at the server Stateful server (e.g., databases) Consistent sharing (+) Server may be a bottleneck (-) Need for communication (-) Upload/download mode –Work done at the client Stateless server Simple functionality (+) Moves files/blocks, need storage (-)

Computer Science Lecture 18, page 11 CS677: Distributed OS System Structure: Server Type Stateless server –No information is kept at server between client requests –All information needed to service a requests must be provided by the client with each request (what info?) –More tolerant to server crashes Stateful server –Server maintains information about client accesses –Shorted request messages –Better performance –Idempotency easier –Consistency is easier to achieve

Computer Science Lecture 18, page 12 CS677: Distributed OS NFS Architecture Sun’s Network File System (NFS) – widely used distributed file system Uses the virtual file system layer to handle local and remote files

Computer Science Lecture 18, page 13 CS677: Distributed OS NFS Operations Operationv3v4Description CreateYesNoCreate a regular file CreateNoYesCreate a nonregular file LinkYes Create a hard link to a file SymlinkYesNoCreate a symbolic link to a file MkdirYesNoCreate a subdirectory in a given directory MknodYesNoCreate a special file RenameYes Change the name of a file RmdirYesNoRemove an empty subdirectory from a directory OpenNoYesOpen a file CloseNoYesClose a file LookupYes Look up a file by means of a file name ReaddirYes Read the entries in a directory ReadlinkYes Read the path name stored in a symbolic link GetattrYes Read the attribute values for a file SetattrYes Set one or more attribute values for a file ReadYes Read the data contained in a file WriteYes Write data to a file

Computer Science Lecture 18, page 14 CS677: Distributed OS Communication a)Reading data from a file in NFS version 3. b)Reading data using a compound procedure in version 4. Both versions use Open Network Computing (ONC) RPCs - One RPC per operation (NFS v3); multiple operations supported in v4.

Computer Science Lecture 18, page 15 CS677: Distributed OS Naming: Mount Protocol NFS uses the mount protocol to access remote files –Mount protocol establishes a local name for remote files –Users access remote files using local names; OS takes care of the mapping

Computer Science Lecture 18, page 16 CS677: Distributed OS Naming: Crossing Mount Points Mounting nested directories from multiple servers NFS v3 does not support transitive exports (for security reasons) –NFS v4 allows clients to detects crossing of mount points, supports recursive lookups

Computer Science Lecture 18, page 17 CS677: Distributed OS Automounting Automounting: mount on demand

Computer Science Lecture 18, page 18 CS677: Distributed OS File Attributes (1) Some general mandatory file attributes in NFS. –NFS modeled based on Unix-like file systems Implementing NFS on other file systems (Windows) difficult –NFS v4 enhances compatibility by using mandatory and recommended attributes AttributeDescription TYPEThe type of the file (regular, directory, symbolic link) SIZEThe length of the file in bytes CHANGEIndicator for a client to see if and/or when the file has changed FSIDServer-unique identifier of the file's file system

Computer Science Lecture 18, page 19 CS677: Distributed OS File Attributes (2) Some general recommended file attributes. AttributeDescription ACLan access control list associated with the file FILEHANDLEThe server-provided file handle of this file FILEIDA file-system unique identifier for this file FS_LOCATIONSLocations in the network where this file system may be found OWNERThe character-string name of the file's owner TIME_ACCESSTime when the file data were last accessed TIME_MODIFYTime when the file data were last modified TIME_CREATETime when the file was created