Automount NFS. Computer Center, CS, NCTU 2 Automatic mounting  Problems of /etc/fstab Maintenance of /etc/fstab in large network Crashed NFS server will.

Slides:



Advertisements
Similar presentations
Chapter 2 Booting and Shutting Down Kim Grempler (Sections 2.0 to 2.3) Leon Dague (Sections 2.4 to 2.7)
Advertisements

CS-550: Distributed File Systems [SiS]1 Resource Management in Distributed Systems: Distributed File Systems.
U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts Amherst Operating Systems CMPSCI 377 Lecture.
Homework 5b: Samba. Computer Center, CS, NCTU 2 Network-based File Sharing (1)  NFS (UNIX-based) mountd is responsible for mount request nfsd and nfsiod.
File System Implementation
Computer Science Lecture 18, page 1 CS677: Distributed OS Last Class: Fault tolerance Reliable communication –One-one communication –One-many communication.
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.
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.
NFS – Network File System WeeSan Lee
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
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
Module 8: Designing Active Directory Disaster Recovery in Windows Server 2008.
Microsoft ® Official Course Module 12 Monitoring, Managing, and Recovering AD DS.
Course 6425A Module 9: Implementing an Active Directory Domain Services Maintenance Plan Presentation: 55 minutes Lab: 75 minutes This module helps students.
Linux Filesystem Management
Linux Networking #2 Dr. Michael L. Collard 1.
Chapter 10 Networking and the Internet ITSC 1458.
1 Network File Sharing. 2 Module - Network File Sharing ♦ Overview This module focuses on configuring Network File System (NFS) for servers and clients.
Final Project – NFS and NIS jwbai. Computer Center, CS, NCTU 2 Goal master.passwd passwd group netgroup amd.conf userA, /nis/home/userA userB, /nis/home/userB.
1 COP 4343 Unix System Administration Unit 15: file server – ftp – nfs.
System Administration HW1 huanghs. Computer Center, CS, NCTU 2 Requirements  Basic Install FreeBSD and upgrade to up-to-date –RELEASE Recompile your.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
Automating File Sharing Chapter 19. Chapter Goals Understand how to automount file systems under Windows. Understand how to create a consistent name space.
Sun Solaris 9 Sun Certified System Administrator Part II Thousands of IT Professionals before you have already passed their certification.
Maintaining Active Directory Domain Services
Hour 7 The Application Layer 1. What Is the Application Layer? The Application layer is the top layer in TCP/IP's protocol suite Some of the components.
New SA Training Topic 6: Service Management Our organization takes advantage of many service type to provide functionality to users and ease management.
10.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts with Java – 8 th Edition Chapter 10: File-System Interface.
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.
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
System Administration HW2 Shell Script xclin. Computer Center, CS, NCTU 2 Requirements  Xferlog statistics (15%) use one-line command to show FTP transfer.
Solaris Administration Network II
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Chapter 10 Chapter 10: Managing the Distributed File System, Disk Quotas, and Software Installation.
File Systems Security File Systems Implementation.
Exercise 4 – NFS and NIS Announced Date: 2007/12/11 Due Date: 2007/12/25.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition File System Implementation.
Free Powerpoint Templates Page 1 Free Powerpoint Templates Users and Documents.
System Administration HW5 - Micro Computer Center yihshih / lctseng.
1 CMPT 471 Networking II DNS © Janice Regan,
Module 4: Managing Access to Resources. Overview Overview of Managing Access to Resources Managing Access to Shared Folders Managing Access to Files and.
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.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Chapter 17 The Network File System. Computer Center, CS, NCTU 2 NFS  Share filesystem to other hosts via network  NFS History Introduced by Sun Microsystems.
© 2005 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Configuring AutoFS Module 11 H3065S.
File System Implementation
Chapter 17 The Network File System
Automount NFS.
Introduction to Computers
Lab 1 introduction, debrief
IS3440 Linux Security Unit 4 Securing the Linux Filesystem
Linux Administration Odds and Ends
Multiple Processor Systems
NFS.
Automount NFS.
Lecture 15 Reading: Bacon 7.6, 7.7
Department of School of Computing and Engineering
Multiple Processor and Distributed Systems
Automount NFS.
Outline Review of Quiz #1 Distributed File Systems 4/20/2019 COP5611.
Chapter 17 The Network File System
Automounter Filesystem - autofs
Automount NFS.
Network File System (NFS)
Presentation transcript:

Automount NFS

Computer Center, CS, NCTU 2 Automatic mounting  Problems of /etc/fstab Maintenance of /etc/fstab in large network Crashed NFS server will make operation blocked  automount daemon Mount filesystems when they are referenced and unmount them when they are no longer needed Supply a list of replicated filesystems to replace important but crashed NFS servers Transparent to users  Products automount (from SUN Micro), simple and concise amd (from Jan-Simon Pendry), complicated but more powerful

Computer Center, CS, NCTU 3 automount (1)  Three kinds of configuration files (map) Direct map Indirect map Master map  List which direct and indirect maps that automount should pay attention to Difference between direct and indirect  All mount points in indirect map has common directory defined in master map Provide information about filesystems that are to be automounted

Computer Center, CS, NCTU 4 automount (2)  Example of automount maps /net /etc/auto.net-rw, intr /-/etc/auto.direct-ro, intr WWW-rw,soft,nosuid,vers=2vega:/home/www mail-rw,soft,nosuid,quotaccserv:/spool/mail ftp-ro,soft,nosuidftp:/home/ftp /vlsi/vlsi1-rw,soft,nosuidscorpio:/vlsi1 /vlsi/vlsi2-rw,soft,nosuidscorpio:/vlsi2 master indirect direct

Computer Center, CS, NCTU 5 automount (3)  Master map /etc/auto.master(Linux) /etc/auto_master(Solaris)  Restart automounter when you change the maps /etc/init.d/autofs {start|stop}(Solairs) /etc/init.d/autofs {start|stop|reload|status}(Linux)

Computer Center, CS, NCTU 6 automount (4)  Replicated filesystem There are several identical NFS and I would like to mount anyone of them Constrain  Read-only  These replicated filesystem should be truly identical Automounter will choose a server based on its own idea of which one is the best /usr/man-rochimchim:/usr/man band(1):/usr/man /www/data-roccbsd4,altair:/www/data

Computer Center, CS, NCTU 7 automount (5)  Automatic automounts automount can query the mountd to find out what filesystems the server exports Using –host as map name in the master map file -host does not enumerate all possible hosts  It waits for individual subdirectory names to be referenced  If chimchim exports /usr/share/man –Automount at the path /net/chimchim/usr/share/man /net-host-nosuid,soft

Computer Center, CS, NCTU 8 amd (1)  Advantages over automount Sends “keep alive” queries to remote servers at regular intervals and maintains a list of servers that are accessible  Return an “operation would block” rather than hanging Not proprietary source code Offer another mount types that are not supported by automount  union Map syntax is more generic Provide a query-and-manipulation tool, amq …

Computer Center, CS, NCTU 9 amd (2)  Flexible map syntax One map used by many machines Contain conditions that control which parts of map entry are activate  Selector variable /defaultstype:=nfs;fs:=${autodir}/${key};opts:=nfsv3,rw, \ grpid,quota,intr,soft,nodev,nosuid,resvport, \ timeo=10,retrans=5,nqnfs mailrhost:=ccserv;rfs:=/spool/mail ftprhost:=ftp;rfs:=/home/ftp raid1host==cchome;type:=ufs;dev:=/dev/da0s1e\ host!=cchome;type:=nfs;rhost:=cchome;rfs:=/${key};\ opts:=nfsv3,rw,soft,nosuid,resvport drongohost==magpie;type:=link;fs:=/${key} \ host!=magpie;type:=nfs;rhost:=magpie;rfs:=/${key}

Computer Center, CS, NCTU 10 amd (3) SelectorDescription archArchitecture of the current machine autodirDefault directory under which to mount filesystems domainLocal NIS domain name hostLocal hostname keyVolume name being resolved mapName of mount map being used osOperating System OptionDescription rhostRemote host on which the volume lives rfsRemote filesystem name typeType of mount, nfs or ufs (local disk) fsLocal mount point optsMount options remoptsOptions to use if server is nonlocal

Computer Center, CS, NCTU 11 amd (4)  Starting amd % amd –a /tmp_mnt –l syslog –x fatal, error, user /net /etc/amd.conf  Stopping amd % kill -15 optionsDescription -xSets run-time logging options, such as fatal, error, user, warn, info, … -rRestart existing mounts -l Log file name or “ syslog ” -aSpecify alternative location for mount points /netSets the automount directory /etc/amd.confThe map files

Computer Center, CS, NCTU 12 amd (5)  Remount without kill amd Unmount such mounted partition  % umount /amd/magpie Delete such virtual /net/DIR  % rm /net/magpie cd /net/DIR  % cd /net/magpie  amd in FreeBSD Edit rc.conf … amd_enable=“YES” amd_flags=“-a /amd –y sa.nis –l /var/log/amd.log –x all /net auto.home” …