Automount NFS.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Linux Networking TCP/IP stack – kernel controls the TCP/IP protocol – Ethernet adapter is hooked to the kernel in with the ipconfig command – ifconfig.
Copyright © 2014 EMC Corporation. All Rights Reserved. Exporting NFS File Systems to UNIX/ESXi Upon completion of this module, you should be able to: Export.
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
B. Prabhakaran 1 Distributed File System File system spread over multiple, autonomous computers. A distributed file system should provide: Network transparency:
NFS Server Setup NFS SERVER SETUP. Network File Service NFS Server Setup Allows to share Directories between UNIX Systems Daemons: netfs, nfs, nfslock.
System Administration
Linux Installation and Administration – Lesson 5 Tutor: George Papamarkos Topic: Devices in Linux.
Linux Networking #2 Dr. Michael L. Collard 1.
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.
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.
Inetd...Server of Servers Looks at a number of ports Determines when a service is needed on any of those ports Calls the appropriate server Restarts new.
New SA Training Topic 6: Service Management Our organization takes advantage of many service type to provide functionality to users and ease management.
Introduction to DFS. Distributed File Systems A file system whose clients, servers and storage devices are dispersed among the machines of a distributed.
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
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
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:
Materi managing user & groups, file system Managing Software Packages and File Systems The Complete Guide to Linux System Administration Chapter 10.
© 2005 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Configuring AutoFS Module 11 H3065S.
Naming in Distributed File Systems Tao Zhang Advanced Operating System Professor: Dr. Yanqing Zhang.
Windows interoperability with Unix/Linux
CIT 470: Advanced Network and System Administration
Lesson # 9 HP UCMDB 8.0 Essentials
Filesystem Caching (FS-Cache)
LINUX ADMINISTRATION
Exercise 7 Samba.
Chapter 17 The Network File System
CIT 470: Advanced Network and System Administration
Automount NFS.
The Network File System
CSC-8320 Advanced Operating System
IS3440 Linux Security Unit 4 Securing the Linux Filesystem
Linux Administration Odds and Ends
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
Automount NFS.
Windows Server Administration Fundamentals
Chapter 15: File System Internals
System Administration HW5 - Mini Private Lab
Today: Distributed File Systems
Announced Date: 2006/12/20 Due Date: 2007/1/3
Chapter 17 The Network File System
The Network File System
The Network File System
Automounter Filesystem - autofs
The Network File System
Network File System (NFS)
Presentation transcript:

Automount NFS

Automatic mounting Problems of /etc/fstab automount (/autofs) daemon Maintenance of /etc/fstab in large network Crashed NFS server will make operation blocked automount (/autofs) 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 (Obsolete) autofs, starting with FreeBSD 10.1-RELEASE it has a new automounter very similar to the Solaris one

autofs (1) autofs Kernel component: autofs(5) Userspace applications automount(8): Update autofs mounts automountd(8): Daemon handling autofs mount requests autounmountd(8): Daemon unmounting automounted filesystems 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 https://www.freebsd.org/doc/handbook/network-nfs.html#network-autofs Provide information about filesystems that are to be automounted

autofs (2) Example of auto_master and map file master direct indirect mountpoint map_name [-options] /net /etc/auto.net -rw, intr /- /etc/auto.direct -ro, intr +autofs.map master key [-options] location /vlsi/vlsi1 -rw,soft,nosuid scorpio:/vlsi1 /vlsi/vlsi2 -rw,soft,nosuid scorpio:/vlsi2 direct WWW -rw,soft,nosuid,vers=2 vega:/home/www mail -rw,soft,nosuid,quota ccserv:/spool/mail ftp -ro,soft,nosuid ftp:/home/ftp * -intr,nfsv4 magpie:/share/& sys dragon:/sys/${OSNAME} indirect

autofs (3) Selector Description ARCH Expands to the output of uname -p CPU Same as ARCH HOST Expands to the output of uname -n OSNAME Expands to the output of uname -s OSREL Expands to the output of uname -r OSVERS Expands to the output of uname –v & Volume name being resolved

autofs (4) 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) autofs in FreeBSD Edit rc.conf … autofs_enable="YES"

autofs (5) 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

autofs (6) 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