From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96107694919970.tru64-unix-managers.marc@archive.invalid> From: Kim Greer Date: Thu, 15 Jun 2000 13:47:52 +0000 To: tru64-unix-managers Subject: SUMMARY: automount on DU 4.x X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96107694919970 keywords: summary howto how-to automount auto.master disk NFS remote Many thanks for the quick, *helpful* replies from: Dr. Tom Blinn Sean O'Connell Oisin McGuinness Ian Mortimer Here is a summary of the replies I received concerning setting up automounting. The "complete" (trimmed-down) replies are shown after the summary and original question. I hope I haven't botched any attributions. ** Note that this setup is a simple one, limited to doing "conventional" NFS /etc/fstab-type mounting, except that it automounts (to avoid any confusion: /etc/fstab IS NOT USED) Further note that the "/b" in the AUTOMOUNT_ARGS can be some other directory name you wish to create. These instructions assume the remote disk is not already mounted, say by conventional "mount" command. Do NOT have an entry in _both_ /etc/fstab and /etc/auto.* (just a reminder if you are switching from "mount" to "automount".) NIS/YP is not needed IN THE EXAMPLE SHOWN - IT DOES MATTER OTHERWISE in a more complicated config. I will soon investigate the DU <-> Linux parameters and the DU <-> Solaris parameters. It is further assumed that remote_hostname:/etc/exports and any other files, permissions, daemons, etc. are correctly set up and running. 1. create file /etc/auto.master on the local computer, contents (generic names shown): /- /etc/auto.machine -intr 2. create file /etc/auto.machine on the local computer, contents (generic names shown): /nfs/remote_host_1/usra remote_host_1:/usra /nfs/remote_host_1/usrb remote_host_1:/usrb # /nfs/remote_host_2/usrc remote_host_2:/usrc /nfs/remote_host_2/usrd remote_host_2:/usrd 3. create directory that mount points will be put under: "mkdir /b" ("automount" did this for me automatically, I think). 4. with "rcmgr" or manually edit /etc/rc.config AUTOMOUNT="1" export AUTOMOUNT AUTOMOUNT_ARGS="-v -M /b -f /etc/auto.master" export AUTOMOUNT_ARGS 5. option 1: cd to /sbin/rc3.d ./S0nfsmount stop;./S20nfsmount start option 2: reboot I hope I haven't left out any steps. My specific problem was not specifying the *correct* AUTOMOUNT_ARGS in /etc/rc.config, and not understanding the NIS/YP interaction. I did however already have the "AUTOMOUNT="1"" entry, and did attempt running "automount" manually, but with wrong arguments. More Notes: It should go without saying, but anytime you make changes to /etc/fstab and-or /etc/auto.[master,machine], you should first unmount any possibly affected drives. Thanks again to Tom, Ian, Sean and Oisin, and any others whose reply comes after composing this summary. Kim Greer ===================================== ===================================== --------- Original Question---------- ===================================== > > keywords: automount mount fstab auto.direct auto.master disk NFS local remote > > Hi, all. I write in hopes that someone can refer me to a > cookbook for automounting. > > Systems: 3000 series and DPW-600AU > OSs: DU V4.0 [D,F] > Not Running NIS/YP, if that matters > Not Running C2 > Remote NFS "hard" mounting works fine with standard /etc/fstab > > What I've tried: > > a) made /etc/auto.direct file, contents: > (similar to this line) > /usr/source -ro remote-host:/usr/src/proto > > b) made /etc/auto.master, with contents: > # mount-point mapname mount-options > # > /net -hosts > /home auto.indirect -rw > /- auto.direct -ro,intr > > c) make sure the local mount point exists > > After doing : > > /sbin/rc3.d/S00inet stop > /sbin/rc3.d/S00inet start > /sbin/rc3.d/S55inetd stop > /sbin/rc3.d/S55inetd start > /sbin/rc3.d/S20nfsmount stop > /sbin/rc3.d/S20nfsmount start > or > rebooting > > I get no (obvious) messages that there is any problem. When I "ls" > the directory, it returns nothing. > > What obvious, or not so obvious, step(s) am I doing wrong? > > What if anything needs to be changed for mounting non-DU machines > like Linux or Solaris? > > I've read through back messages to this list and net searches, but nothing > so far seems to have any effect. ======================================================= ======= Editted Replies, in no particular order ======= ======================================================= ===================================== Reply from Dr. Tom Blinn ===================================== Do you have automount configured? Is the automount daemon running on your system? If the automount daemon isn't running, then no amount of setting up databases is going to get the mounts to happen. Tom Dr. Thomas P. Blinn + UNIX Software Group + Compaq Computer Corporation 110 Spit Brook Road, MS ZKO3-2/W17 Nashua, New Hampshire 03062-2698 Technology Partnership Engineering Phone: (603) 884-0646 Internet: tpb@zk3.dec.com Compaq's Easynet: alpha::tpb ACM Member: tpblinn@acm.org PC@Home: tom@felines.mv.net ===================================== Reply from Sean O'Connell ===================================== Here is an example of one of our machines. Make sure that you have enabled automounting in /etc/rc.config. In /etc/rc.config, I add AUTOMOUNT="1" AUTOMOUNT_ARGS="-v -M /b -f /etc/auto.master" and my /etc/auto.master looks like: # $Id: auto.master,v 1.1 2000/01/01 01:49:40 sto Exp $ # # mount-point mapname mount-options # /usr/home /etc/auto.home -intr /- /etc/auto.machine -intr and my /etc/auto.home is # $Id: auto.home,v 1.1 2000/01/01 01:50:31 sto Exp $ # # key mount-options location # fac server:/usr/home/& grad server:/usr/home/& guest server:/usr/home/& staff server:/usr/home/& and my /etc/auto.machine (for machine specific mounts) # $Id: auto.machine,v 1.2 2000/01/01 02:35:28 sto Exp $ # # key mount-options location # # faculty boxes /mach1/local mach1:/mach1/local /mach2/local mach2:/mach2/local /mach3/local mach3:/mach3/local # # web # /path/to/apache www:/path/to/apache /path/to/ftp www:/path/to/ftp # # misc # /usr/local/misc server:/usr/local/misc /usr/local/src server:/usr/local/src # # FreeBSD # /FreeBSD/local server:/FreeBSD/local ----------------------------------------------------------------------- ===================================== Reply from Oisin McGuinness ===================================== If you read the startup script /sbin/init.d/nfsmount (that in rc3.d just links to this), the start of automount is conditional on the existence, and values, of two environment variables, which need to be set in /etc/rc.config. You could add lines manually to this, or use rcmgr to do it. >From reading the script: AUTOMOUNT=1 export AUTOMOUNT AUTOMOUNT_ARGS="arguments desired for automount" ### e.g, -f /etc/auto.master export AUTOMOUNT_ARGS added into /etc/rc.config should do the trick. As the man page for automount hints: The automount daemon can be started from the /etc/rc.config file or from the command line. ===================================== Reply from Ian Mortimer ===================================== > Not Running NIS/YP, if that matters Yes it does. > b) made /etc/auto.master, with contents: > # mount-point mapname mount-options > # > /net -hosts > /home auto.indirect -rw > /- auto.direct -ro,intr If your mapname doesn't have a directory path automount looks for a NIS map of that name. To have it read the map from a file you need to specify the full path. So you need: /- /etc/auto.direct -ro,intr _____________________________________________ -------- End of replies -------------------- --------------------------------------------- KG Kim L. Greer klg@dec3.mc.duke.edu Duke University Medical Center voice: 919-684-7223 Div. Nuclear Medicine POB DUMC-3949 fax: 919-684-7123 Durham, NC 27710