Automounter Filesystem - autofs

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

NFS. The Sun Network File System (NFS) An implementation and a specification of a software system for accessing remote files across LANs. The implementation.
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
File Systems (2). Readings r Silbershatz et al: 11.8.
1 COP 4343 Unix System Administration Unit 16: file server – samba.
NFS Server Setup NFS SERVER SETUP. Network File Service NFS Server Setup Allows to share Directories between UNIX Systems Daemons: netfs, nfs, nfslock.
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.
System Administration NFS & Web Servers. NFS SERVER.
Teradyne License Service and Monitoring Bob Van der Kloot Teradyne, Inc
Windows Interoperability. What can Samba do? Allow for peaceful coexistence between Windows and Linux/UNIX systems regarding: File sharing Printer sharing.
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.
Sun Solaris 9 Sun Certified System Administrator Part II Thousands of IT Professionals before you have already passed their certification.
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.
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.
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
CIS 192B – Lesson 3 Network Information Services.
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.
System Administration HW5 - Micro Computer Center yihshih / lctseng.
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.
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.
© 2005 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Configuring AutoFS Module 11 H3065S.
Hesiod Jonathan Reed What is Hesiod? The Hesiod Name Service is an important component of Athena. Used transparently by Athena, user rarely.
Windows interoperability with Unix/Linux
File System Implementation
Distributed File Systems
Homework 3 frank.
Overview – SOE Cfengine v3.6.5
LINUX ADMINISTRATION
Chapter 6 File Systems CSNB113 SYSTEM ADMINISTRATION
WINDOWS NT VERSUS UNIX NT & UNIX OVERVIEW by Zhuo Hong Liu
Chapter 17 The Network File System
File System Implementation
Automount NFS.
The Network File System
DHCP, DNS, Client Connection, Assignment 1 1.3
IS3440 Linux Security Unit 4 Securing the Linux Filesystem
Linux Administration Odds and Ends
NFS.
Final Project Announce: Due:
Automount NFS.
DISTRIBUTED FILE SYSTEMS
CIT 470: Advanced Network and System Administration
Final Project– NFS and NIS
Department of School of Computing and Engineering
The Network File System
Automount NFS.
Chapter 15: File System Internals
System Administration HW5 - Micro Computer Center
System Administration HW5 - Mini Private Lab
Created By : Asst. Prof. Ashish Shah, J. M
Announced Date: 2006/12/20 Due Date: 2007/1/3
Chapter 17 The Network File System
The Network File System
The Network File System
The Network File System
Automount NFS.
Network File System (NFS)
Presentation transcript:

Automounter Filesystem - autofs

Automatic mounting Problems of /etc/fstab automount daemon Products 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

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 https://datahunter.org/autofs http://ishm.idv.tw/?p=117 自動掛載分成直接模式 (direct) 和間接模式 (indirect)。 indirect 模式下,目錄會被自動生成,降低手動的需求

automount (2) Example of automount maps master indirect direct /net /etc/auto.net -rw, intr /- /etc/auto.direct -ro, intr master WWW -rw,soft,nosuid,vers=2 vega:/home/www mail -rw,soft,nosuid,quota ccserv:/spool/mail ftp -ro,soft,nosuid ftp:/home/ftp indirect /vlsi/vlsi1 -rw,soft,nosuid scorpio:/vlsi1 /vlsi/vlsi2 -rw,soft,nosuid scorpio:/vlsi2 direct

automount (3) Master map Restart automounter when you change the maps /etc/auto_master (FreeBSD) /etc/auto.master (Linux) /etc/auto_master (Solaris) Restart automounter when you change the maps /etc/rc.d/automount {start|stop} /etc/rc.d/automountd {start|stop} /etc/rc.d/autounmountd {start|stop} (FreeBSD) /etc/init.d/autofs {start|stop} (Solairs) /etc/init.d/autofs {start|stop|reload|status} (Linux)

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 -ro mybsd:/usr/man mybsd2(1):/usr/man /www/data -ro mybsd4,altair:/www/data

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 mybsd exports /usr/share/man Automount at the path /net/mybsd/usr/share/man /net -host -nosuid,soft

automount (6) Configure automount with NIS /etc/auto_master /etc/autofs/include_yp ln –s /etc/autofs/include_yp /etc/autofs/include Setup NIS maps on NIS master Edit /etc/rc.conf +auto_master #!/bin/sh ypcat –k $1 autofs_enable=“YES”

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 …

Q & A