U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts Amherst Operating Systems CMPSCI 377 Lecture.

Slides:



Advertisements
Similar presentations
U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts Amherst Operating Systems CMPSCI 377 Lecture.
Advertisements

Serverless Network File Systems. Network File Systems Allow sharing among independent file systems in a transparent manner Mounting a remote directory.
U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts Amherst Operating Systems CMPSCI 377 Lecture.
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.
1DT057 DISTRIBUTED INFORMATION SYSTEM DISTRIBUTED FILE SYSTEM 1.
Consistency in NFS and AFS. Network File System (NFS) Uses client caching to reduce network load Built on top of RPC Server cache: X Client A cache: XClient.
Caching in Distributed File System Ke Wang CS614 – Advanced System Apr 24, 2001.
Operating Systems CMPSCI 377 Lecture 11: Memory Management
File System Implementation
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.
Other File Systems: AFS, Napster. 2 Recap NFS: –Server exposes one or more directories Client accesses them by mounting the directories –Stateless server.
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.
U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts, Amherst Operating Systems CMPSCI 377 Lecture.
Jeff Chheng Jun Du.  Distributed file system  Designed for scalability, security, and high availability  Descendant of version 2 of Andrew File System.
5.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 5: Working with File Systems.
NFS. The Sun Network File System (NFS) An implementation and a specification of a software system for accessing remote files across LANs. The implementation.
University of Pennsylvania 11/21/00CSE 3801 Distributed File Systems CSE 380 Lecture Note 14 Insup Lee.
U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts Amherst Operating Systems CMPSCI 377 Lecture.
File Systems (2). Readings r Silbershatz et al: 11.8.
DESIGN AND IMPLEMENTATION OF THE SUN NETWORK FILESYSTEM R. Sandberg, D. Goldberg S. Kleinman, D. Walsh, R. Lyon Sun Microsystems.
Distributed File Systems Sarah Diesburg Operating Systems CS 3430.
Lecture 23 The Andrew File System. NFS Architecture client File Server Local FS RPC.
Sun NFS Distributed File System Presentation by Jeff Graham and David Larsen.
Distributed File Systems Concepts & Overview. Goals and Criteria Goal: present to a user a coherent, efficient, and manageable system for long-term data.
CSE 486/586, Spring 2012 CSE 486/586 Distributed Systems Distributed File Systems Steve Ko Computer Sciences and Engineering University at Buffalo.
1 Microsoft Distributed File System (Dfs) Brett O’Neill CSE 8343 – Group A6.
CSC 456 Operating Systems Seminar Presentation (11/13/2012) Leon Weingard, Liang Xin The Google File System.
Distributed File Systems 1 CS502 Spring 2006 Distributed Files Systems CS-502 Operating Systems Spring 2006.
Networked File System CS Introduction to Operating Systems.
Distributed Systems. Interprocess Communication (IPC) Processes are either independent or cooperating – Threads provide a gray area – Cooperating processes.
Advanced Operating Systems - Spring 2009 Lecture 21 – Monday April 6 st, 2009 Dan C. Marinescu Office: HEC 439 B. Office.
Distributed File Systems
Distributed File Systems Case Studies: Sprite Coda.
Distributed File Systems Overview  A file system is an abstract data type – an abstraction of a storage device.  A distributed file system is available.
What is a Distributed File System?? Allows transparent access to remote files over a network. Examples: Network File System (NFS) by Sun Microsystems.
Introduction to DFS. Distributed File Systems A file system whose clients, servers and storage devices are dispersed among the machines of a distributed.
Presented By: Samreen Tahir Coda is a network file system and a descendent of the Andrew File System 2. It was designed to be: Highly Highly secure Available.
ITEC 502 컴퓨터 시스템 및 실습 Chapter 11-2: File System Implementation Mi-Jung Choi DPNM Lab. Dept. of CSE, POSTECH.
Sun Network File System Presentation 3 Group A4 Sean Hudson, Syeda Taib, Manasi Kapadia.
Distributed File Systems
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition File System Implementation.
Distributed File Systems Architecture – 11.1 Processes – 11.2 Communication – 11.3 Naming – 11.4.
Distributed File Systems Group A5 Amit Sharma Dhaval Sanghvi Ali Abbas.
Distributed File Systems Questions answered in this lecture: Why are distributed file systems useful? What is difficult about distributed file systems?
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:
Case Study -- Sun’s Network File System (NFS) NFS is popular and widely used. NFS was originally designed and implemented by Sun Microsystems for use on.
System Models Advanced Operating Systems Nael Abu-halaweh.
File-System Management
Distributed File Systems
Distributed File Systems
File System Implementation
NFS and AFS Adapted from slides by Ed Lazowska, Hank Levy, Andrea and Remzi Arpaci-Dussea, Michael Swift.
Today: Coda, xFS Case Study: Coda File System
CSE 451: Operating Systems Winter Module 22 Distributed File Systems
Distributed File Systems
DISTRIBUTED FILE SYSTEMS
Distributed File Systems
Outline Announcements Lab2 Distributed File Systems 1/17/2019 COP5611.
CSE 451: Operating Systems Spring Module 21 Distributed File Systems
Distributed File Systems
CSE 451: Operating Systems Winter Module 22 Distributed File Systems
CSE 451: Operating Systems Distributed File Systems
Chapter 15: File System Internals
Outline Review of Quiz #1 Distributed File Systems 4/20/2019 COP5611.
Distributed File Systems
Distributed File Systems
Network File System (NFS)
Presentation transcript:

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts Amherst Operating Systems CMPSCI 377 Lecture 21: Distributed File Systems

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science 2 Distributed File Systems Most common use of distributed systems Idea: Given set of disks attached to different nodes, share as if all were attached to every node Examples: Edlab: one server, workstations on LAN AppleShare: nodes are servers with disk & client

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science 3 Distributed File Systems: Issues Naming & transparency Remote file access Caching Server with state or without Replication

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science 4 Naming & Transparency Issues How are files named? Do filenames reveal location? Do filenames change if file moves? Do filenames change if user moves?

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science 5 Transparency Location transparency: filename does not reveal physical storage location Location independence: filename need not change if file’s storage location changes In practice: Most naming schemes do not have location independence Many have location transparency

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science 6 Naming Strategies: Absolute Names Disadvantages: User must know complete name – aware of which files are local & which are remote File is location dependent (cannot move) Makes sharing harder Not fault-tolerant Advantages: Easy to find fully specified filename Easy to add & delete new names No global state Scales easily Examples: AppleShare, Windows NT

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science 7 Naming Strategies: Mount Points Mount points (NFS – Network File System) Each host has set of local names for remote locations Mount table ( /etc/fstab ): specifies At boot: bind local name to remote Users refer to local pathnames NFS manages mapping

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science 8 Mount Points: Pros & Cons Advantages: Location transparent Remote name can change across reboots Disadvantages: Single unified strategy hard to maintain Same file can have different names

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science 9 NFS Example Partial contents of /etc/fstab for Edlab:

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science 10 NFS Example

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science 11 Naming Strategies: Global Name Space Single name space: Examples: AFS (CMU’s Andrew File System) Sprite (Berkeley) No matter which node you are on, filenames remain the same Client: gets filename structure from server(s) When users access files, server sends copies to workstation, where they are cached

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science 12 Global Name Space: Pros & Cons Advantages: Naming – consistent Ensures all files are same regardless of where you login Late binding of names ) moving them is easier Disadvantages: Difficult for OS to keep files consistent (caching) Global name space may limit flexibility Performance issues

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science 13 Distributed File Systems: Issues Naming & transparency Remote file access Caching Server with state or without Replication

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science 14 Remote File Access & Caching Can access files: Remotely: returns results using RPC = remote service Transfer part of file, perform local access = caching Caching issues: Where & when are file blocks cached? When are modifications propagated back to remote file? What happens when multiple clients cache same file?

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science 15 Remote File Caching Local disk:  Reduces access time (compared to remote)  Safe if node fails – Difficult to keep local copy consistent with remote copy – Requires client to have disk! Local memory:  Quick access time  Works without disks – Difficult to keep local copy consistent with remote copy – Smaller cache size – Not fault-tolerant

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science 16 Cache Update Policies Write-through: write to remote disk  Reliable – Low-performance = remote service for all writes Write-back: write only to cache Write to disk on evictions, periodic synch  Quick  Reduces network traffic (repeated writes to same block) – User machine crashes ) data loss

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science 17 Cache Consistency Client-initiated consistency: client contacts server and checks consistency Can check every access, at given intervals, only upon opening a file Server-initiated consistency: server detects potential conflicts, invalidates caches Server needs to know which clients have cached which parts of which files which clients are readers & which are writers

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science 18 Case Study: Sun’s Network File System NFS: standard for distributed UNIX file access Designed to run on LANs Nodes are both servers & clients Servers have no state Uses mount protocol to make global name local /etc/exports : lists local names server willing to export /etc/fstab : lists global names that local nodes import Corresponding global name must be in /etc/exports on server

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science 19 NFS Implementation NFS defines set of RPC operations for remote file access: 1. Directory search, reading directory entries 2. Manipulating links & directories 3. Accessing file attributes 4. Reading/writing files Does not rely on node homogeneity Heterogeneous nodes support NFS mount & remote access protocols using RPC Users may need to know different names depending upon which node they log on

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science 20 NFS Implementation

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science 21 Summary Distributed File Systems Naming & transparency Remote file access Caching Server with state or without Replication