[comp.sys.sun] Problems with automount

cyrus@pprg.unm.edu (Tait Cyrus) (11/23/88)

Help!!!!!!  I am trying, for the first time, to use automount.  I can't
for the life of me figure out how to do things so that the machine does
not hang on commands.

I was playing trying to mount pprg:/usr/pcb/cyrus on /var/tmp/cyrus

I created a map in /etc/automount.map that contained:
	/var/tmp/cyrus -o soft,bg pprg:/home/hi/cyrus
and started automount:
	automount /var/tmp /etc/automount.map

After starting automount, ANY command directed at /var/tmp hangs

I've rtfm and am still confused.  Any help/hints/suggestions in how to use
automount would be greatly appreciated.

Thanks

W. Tait Cyrus   (505) 277-0806		e-mail: cyrus@pprg.unm.edu
University of New Mexico			
Dept of ECE - Parallel Processing Research Group
Albuquerque, New Mexico 87131

joe@uunet.uu.net (Joe Michel-Angelo) (12/09/88)

cyrus@pprg.unm.edu (Tait Cyrus):
> Help!!!!!!  I am trying, for the first time, to use automount.  I can't
> for the life of me figure out how to do things so that the machine does
> not hang on commands.

Are you sure your remote host is alive? Does your kernel have the LOFS
stuff installed?  Does your remote host support normal NFS mounts (to it)?

We aren't using the SUNOS4.0 automount/LOFS, rather, the stuff shipped
with NSE under SUNOS3.4/3.5.

My configuration is simple:

	/etc/auto.master:
		/hosts	/usr/etc/auto.hosts

	/usr/etc/auto.hosts:
		machineA machineA:/dirA
		machineB machineB:/dirB
		machineC machineC:/dirC

	All one has to do is "cd /hosts/machineA" to be at machineA:/dirA.

``Works fer me''

	Joe Angelo -- Senior Systems Engineer/Systems Manager
	at Teknekron Software Systems, Palo Alto 415-325-1025
	joe@tss.com - uunet!tekbspa!joe - tekbspa!joe@uunet.uu.net

guy@uunet.uu.net (Guy Harris) (12/10/88)

>I created a map in /etc/automount.map that contained:
>	/var/tmp/cyrus -o soft,bg pprg:/home/hi/cyrus
>and started automount:
>	automount /var/tmp /etc/automount.map

Try

	cyrus -soft,bg pprg:/home/hi/cyrus

instead.  There are two errors with the map file entry you set up:

1) The man page says the first token is supposed to be the "name of a
subdirectory within the directory specified in the automount command line
(not a relative pathname)"; this is somewhat confusing at best, and
inaccurate at worst.  It *is* supposed to be a relative pathname, in the
sense that it's relative to the mount point upon which the automounter
mounts itself.  (I think I've seen this problem with the man page stated
somewhere else.)

2) In addition, the "mount options" portion is not supposed to contain a
"-o"; it's supposed to be preceded with a "-" (since the mount options are
optional, it needs to be able to distinguish mount options from a
specification of a directory to mount).

>After starting automount, ANY command directed at /var/tmp hangs.

I wasn't able to reproduce that either with your original file (although
using a newly-created directory, rather than "/var/tmp") or with the "-o
soft,bg" replaced with "-soft,bg".  It just refused to recognize "/<mount
point>/cyrus"; it didn't hang. 

Note that mounting the automounter on "/var/tmp" is NOT a good idea (I
presume you did that only as a test); that's why I used a different
directory.  It's like mounting an NFS file system on there (literally -
the automounter is just an NFS server running in user mode), except that
the file system in question doesn't let you create anything on it
(attempts to do so cause EROFS to be returned).  Many UNIX programs tend
to get rather upset when told "/usr/tmp" is on a read-only file system....