Automounter Filesystem - autofs to replace important but crashed NFS replicated filesystems Simon Pendry), complicated but more powerful - automount (from Micro), SUN simple and concise amd (from Jan Maintenance of /etc/ in large network serverCrashed NFS will make operation blocked filesystems they when arereferenced and unmount them they when are no longer needed Supply a list of servers Transparent to users • • • • • • • Products automount daemonautomount Problems ofProblems /etc/fstab q q q Automatic mounting

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

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

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

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

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

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

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

Computer Center, CS, NCTU 9 A & Q

Computer Center, CS, NCTU 10