NFS – Network File System WeeSan Lee

Slides:



Advertisements
Similar presentations
DESIGN AND IMPLEMENTATION OF THE SUN NETWORK FILESYSTEM R. Sandberg, D. Goldberg S. Kleinman, D. Walsh, R. Lyon Sun Microsystems.
Advertisements

Booting and Shuting Down WeeSan Lee. Roadmap Bootstrapping Boot Loaders Startup/Init Scripts Reboot & Shutdown Q&A.
Chapter 2 Booting and Shutting Down Kim Grempler (Sections 2.0 to 2.3) Leon Dague (Sections 2.4 to 2.7)
Distributed Storage March 12, Distributed Storage What is Distributed Storage?  Simple answer: Storage that can be shared throughout a network.
U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts Amherst Operating Systems CMPSCI 377 Lecture.
NIS – Network Information System WeeSan Lee
Network File Sharing Chapter 18. Chapter Goals Understand concepts of network file sharing Understand NFS server setup Understand NFS client setup Understand.
NETWORK FILE SYSTEM (NFS) By Ameeta.Jakate. NFS NFS was introduced in 1985 as a means of providing transparent access to remote file systems. NFS Architecture.
Network File System Joe Paulowskey Joe Paulowskey Susan Mulholland Joe Woulfe.
Network File System CIS 238. NFS (Network File System) The most commercially successful and widely available remote file system protocol Designed and.
Joshua Caltagirone-Holzli
NFS Admin And Security Steve Nuchia Sravani Motati Ashish Katyarmal.
1 Network File System. 2 Network Services A Linux system starts some services at boot time and allow other services to be started up when necessary. These.
Remote Disk Access with NFS
NFS Server Setup NFS SERVER SETUP. Network File Service NFS Server Setup Allows to share Directories between UNIX Systems Daemons: netfs, nfs, nfslock.
SUSE Linux Enterprise Server Administration (Course 3037)
Linux Networking #2 Dr. Michael L. Collard 1.
Networked File System CS Introduction to Operating Systems.
Cosc 4750 Domain Name Service (DNS) IP Addresses Machines on the Internet need an addressing scheme (or couldn’t receive packets!) Each machine has a.
1 Network File Sharing. 2 Module - Network File Sharing ♦ Overview This module focuses on configuring Network File System (NFS) for servers and clients.
1 COP 4343 Unix System Administration Unit 15: file server – ftp – nfs.
New SA Training Topic 8: File System Access  Our organization uses a variety of services for accessing files on remote systems  WWW  FTP  CIFS/SMB.
Automating File Sharing Chapter 19. Chapter Goals Understand how to automount file systems under Windows. Understand how to create a consistent name space.
High Availability NFS on Linux Winson Wang Hewlett-Packard Company Cupertino, CA Tel:
Distributed File Systems Objectives –to understand Unix network file sharing Contents –Installing NFS –How To Get NFS Started –The /etc/exports File –Activating.
CIT 470: Advanced Network and System Administration
Centralized logins with NIS Eric Stolten Tim Meade Mark Sidnam.
Device and Filesystem Management CSCI N321 – System and Network Administration Copyright © 2000, 2010 by Scott Orr and the Trustees of Indiana University.
Sys Admin Course NFS and SAMBA Fourie Joubert. Sys Admin Course NFS NFS is the Network File System It allows Linux systems to share a file system, or.
NFS : Network File System SMU CSE8343 Prof. Khalil September 27, 2003 Group 1 Group members: Payal Patel, Malka Samata, Wael Faheem, Hazem Morsy, Poramate.
Automount NFS. Computer Center, CS, NCTU 2 Automatic mounting  Problems of /etc/fstab Maintenance of /etc/fstab in large network Crashed NFS server will.
Solaris Administration Network II
1 Linux Networking and Security Chapter 5. 2 Configuring File Sharing Services Configure an FTP server for anonymous or regular users Set up NFS file.
Network File System Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved NFS.
NFS Network File System. NFS (Network File System) Network file systems allow us to share files between users on different systems, often with different.
Distributed File Systems Objectives –to understand Unix network file sharing Contents –Installing NFS –How To Get NFS Started –The /etc/exports File –Activating.
Network File System Protocol
Daemons Ying Zhang CMSC691X, Summer02. Outline  Introduction  Init and Cron  System daemons  Print daemons and NFS daemons  Time synchronization.
Linux Filesystem WeeSan Lee. Roadmap Disk Partitions The Filesystem Filesystem Mouting & Umounting File Tree File Type File Permission.
Filesystem Management and Backups. 2 Section Overview Devices and Files Filesystem Management Network Filesystems Backups.
Chap 35 Remote Procedure Calls RPC allows one host to make a procedure call that appears to be part of a local process (fig 35.1), but is really executed.
Network File System Peter DSouza. NFS  Allows machines to mount a disk partition on a remote machine as if it were a local drive  Other systems similar.
Unix System Administration Chapter 31 Daemons. Out of the Goo, the Primordial Process l Init l Always the first process to run after system boot l Always.
PRESENTED BY ALI NASIR BITF13M040 AMMAR HAIDER BITF13M016 SHOIAB BAJWA BITF13M040 AKHTAR YOUNAS BITF13M019.
CIT 470: Advanced Network and System Administration
Distributed File Systems
Filesystem Management and Backups
Filesystem Caching (FS-Cache)
The Network File System
Ftp File and Print Server
CIT 470: Advanced Network and System Administration
Chapter 17 The Network File System
CIT 470: Advanced Network and System Administration
Automount NFS.
The Network File System
IS3440 Linux Security Unit 4 Securing the Linux Filesystem
Linux Administration Odds and Ends
NFS.
Automount NFS.
CIT 470: Advanced Network and System Administration
The Network File System
Automount NFS.
System Administration HW5 - Mini Private Lab
Chapter 17 The Network File System
The Network File System
The Network File System
The Network File System
Automounter Filesystem - autofs
The Network File System
Automount NFS.
Presentation transcript:

NFS – Network File System WeeSan Lee

Roadmap Introduction How to setup a NFS server? How to setup a NFS client? nfsstat Automatic Mounting Q&A

Introduction Created by Sun in 1985 Was original designed for diskless clients Version 2 is slow  Write operation is not complete until receiving ACK from the server Version 3 permits async writes  Faster Version 4  Supports strong security, ACLs, unicode filenames, replication and migration, etc

Introduction (cont) Uses RPC  Remote Procedure Call – a system-independent way for process communication over a network Could be UDP and TCP  Now, TCP is preferable

How to setup a NFS server? /etc/exports  $ cat /etc/exports /home /24(rw,async,root_squash) /home/ftp(noaccess) /import /24(ro) $ exportfs -a /etc/hosts.allow  $ cat /etc/hosts.allow portmap: / mountd: / Map root UID & GID to nobody

How to setup a NFS server? (cont) /etc/init.d/nfs {start|stop|restart|reload|status}  portmap  rpc.statd  nfsd  rpc.mountd  rpc.rquotad Turns NFS on over reboot  $ chkconfig nfs on

How to setup a NFS client? /etc/init.d/portmap start  portmap  rpc.statd Manual mount the NFS partitions  $ mount :/home /home  $ mount :/import /import Mount the NFS partitions at boot time  $ cat /etc/fstab :/home/homenfsdefaults :/import/importnfsdefaults 0 0  $ mount -a

How to setup a NFS client? (cont) Experiment defaults with  soft,timeo=5  hard,intr To umount a NFS partition  $ umount /home To show the NFS server's export list  $ showmount -e

nfsstat Displays stats. about NFS server and client For server  $ nfsstat -s For client  $ nfsstat -c

Automatic Mouting Mount filesystems on-demand Originally comes from Sun To start  $ /etc/init.d/autofs start Master map file (/etc/auto.master)  Associates each mount point with a indirect map  $ cat /etc/auto.master /misc/etc/auto.misc /net-host

Automatic Mouting (cont) To automount /home & /import  Add the following lines into /etc/auto.master /home/etc/auto.home /import/etc/auto.import  $ cat /etc/auto.home *-soft,timeo= :/home/&  $cat /etc/auto.import *-soft,timeo= :/import/&

Reference LAH  Ch 16: The Network File System