Automount NFS.

Slides:



Advertisements
Similar presentations
1 Dynamic DNS. 2 Module - Dynamic DNS ♦ Overview The domain names and IP addresses of hosts and the devices may change for many reasons. This module focuses.
Advertisements

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts Amherst Operating Systems CMPSCI 377 Lecture.
1 itec 400 Unix File Systems George Vaughan Franklin University.
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
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
A Guide to Unix Using Linux Fourth Edition
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.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
Setting up NIS and HTTP. Network Information Service Reading: 1. Linux NIS HOWTO: howto/HOWTOhttp://
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.
Oracle Data Integrator Procedures, Advanced Workflows.
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.
Automount NFS. Computer Center, CS, NCTU 2 Automatic mounting  Problems of /etc/fstab Maintenance of /etc/fstab in large network Crashed NFS server will.
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
Solaris Administration Network II
Copyright © 2002 Legato Systems, Inc. Version: 1.0 Author: Shu-na Chu Doc d1795 Version: 1.0 Author: Shu-na Chu Doc d1795 8/11/2005 Legato Confidential.
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.
Core System Services. INIT Daemon The init process is the patron of all processes. first process that gets started in any Linux/ UNIX -based system.
Free Powerpoint Templates Page 1 Free Powerpoint Templates Users and Documents.
1 CMPT 471 Networking II DNS © Janice Regan,
Distributed Systems: Distributed File Systems Ghada Ahmed, PhD. Assistant Prof., Computer Science Dept. Web:
© 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.
Getting Started with Linux
Windows interoperability with Unix/Linux
File System Implementation
Overview – SOE Cfengine v3.6.5
LINUX ADMINISTRATION
Chapter 6 File Systems CSNB113 SYSTEM ADMINISTRATION
Exercise 7 Samba.
Chapter 17 The Network File System
File System Implementation
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.
Final Project Announce: Due:
Automount NFS.
Lecture 15 Reading: Bacon 7.6, 7.7
DISTRIBUTED FILE SYSTEMS
CIT 470: Advanced Network and System Administration
The Network File System
Multiple Processor and Distributed Systems
Chapter 15: File System Internals
Periodic Processes Chapter 9.
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
Linux Filesystem Management
Automounter Filesystem - autofs
Automount NFS.
Network File System (NFS)
Presentation transcript:

Automount NFS

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 (Solaris/Linux) amd (from Jan-Simon Pendry), complicated but more powerful (Generally Used)

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

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 chimchim:/usr/man band(1):/usr/man /www/data -ro ccbsd4,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 chimchim exports /usr/share/man Automount at the path /net/chimchim/usr/share/man /net -host -nosuid,soft

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 …

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

amd (3) Selector Description arch Architecture of the current machine autodir Default directory under which to mount filesystems domain Local NIS domain name host Local hostname key Volume name being resolved map Name of mount map being used os Operating System Option Description rhost Remote host on which the volume lives rfs Remote filesystem name type Type of mount, nfs or ufs (local disk) fs Local mount point opts Mount options remopts Options to use if server is nonlocal

amd (4) Starting amd Stopping amd % amd -a /tmp_mnt -l syslog -x fatal, error, user /net /etc/amd.conf Stopping amd % kill -15 <amd_pid> options Description -x Sets run-time logging options, such as fatal, error, user, warn, info, … -r Restart existing mounts -l Log file name or “syslog” -a Specify alternative location for mount points /net Sets the automount directory /etc/amd.conf The map files

amd (5) Remount without kill amd amd in FreeBSD Edit rc.conf 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"