[SLE] automount + yp == trouble
(If this appears twice, my apologies... I sent it before but have not seen it in list traffic.) I am attemping to integrate a couple of SuSE linux boxes (6.3) into a cluster of machines which interoperate with yp maps and utilize automount. ypcat auto.home returns the appropriate information. portmap is in hosts.allow. Here are my auto.* files: auto.master /home /etc/auto.home auto.home +auto.home cd -fstype=iso9660,ro :/dev/cdrom floppy -fstype=auto :/dev/fd0 /etc/rc.d/autofs status returns the following: Checking for service autofs: OK Configured Mount Points: - - ------------------------ automount -t 300 /home file /etc/auto.home automount -t 300 /home yp auto.home nobrowse Active Mount Points: - - -------------------- automount -t 300 /home file /etc/auto.home (I believe there should be "yp" in there instead of/in addition to "file".) /var/log/messages has only: Mar 30 11:52:15 sevengill automount[155]: attempting to mount entry /home/tobkin Mar 30 11:52:15 sevengill automount[289]: lookup(file): looking up tobkin Mar 30 11:52:15 sevengill automount[289]: lookup(file): lookup for tobkin failed for errors. I believe this means that the automounter is not seeing the yp auto.home map. I have also tried auto.master /home auto.home Can anyone tell me what magic I'm missing? Thanks, Lynette Bellini Systems Administrator University of Minnesota -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
On Fri, 31 Mar 2000, Lynette Bellini wrote:
auto.master /home /etc/auto.home
Setup on my clients (I removed the 'auto.misc' stuff here. That's irrelevant right now): # > cat /etc/auto.master +auto_master # > ypcat -k auto.master /home auto.home -nosuid,noquota # > cat /etc/auto.home +auto_home # > ypcat -k auto.home foo -rw,intr,nosuid,noquota host_foo:/export/home I can't recall right now if there was any magic in addition to this. It's been a while since I set up these maps. Just try my setup and see if that solves your problem. If not, just send me a mail, and I'll dig deeper in my setup.
/etc/rc.d/autofs status returns the following:
Checking for service autofs: OK Configured Mount Points: - - ------------------------ automount -t 300 /home file /etc/auto.home automount -t 300 /home yp auto.home nobrowse
Active Mount Points: - - -------------------- automount -t 300 /home file /etc/auto.home
(I believe there should be "yp" in there instead of/in addition to "file".)
Yes, that's correct: # > rcautofs status Configured Mount Points: ------------------------ automount -t 300 /home yp auto.home nosuid,noquota Active Mount Points: -------------------- automount -t 300 /home yp auto.home nosuid,noquota
/var/log/messages has only: Mar 30 11:52:15 sevengill automount[155]: attempting to mount entry /home/tobkin Mar 30 11:52:15 sevengill automount[289]: lookup(file): looking up tobkin Mar 30 11:52:15 sevengill automount[289]: lookup(file): lookup for tobkin failed
for errors. I believe this means that the automounter is not seeing the yp auto.home map. I have also tried
It should be something like this: Apr 1 10:16:58 ligo0-1 automount[208]: attempting to mount entry /home/foo Apr 1 10:16:58 ligo0-1 automount[13421]: lookup(yp): looking up foo Apr 1 10:16:58 ligo0-1 automount[13421]: lookup(yp): foo -> -rw,intr,nosuid,noquota host_foo:/export/home ... and so on. ---J.T.U. /==================================================================\ | Jon Trygve Utne |e-mail: jont@ii.uib.no | | Department of Informatics | Jon.Utne@mi.uib.no | | University of Bergen, Norway | Jon.Utne@student.uib.no | | Tlf(work) +47 55 58 82 95 |"Smith & Wesson: The original| | URL: http://www.ii.uib.no/~jont | point and click interface" | \==================================================================/ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Jon, thanks very much for your reply. Finding documentation on this has been rather difficult.
Setup on my clients (I removed the 'auto.misc' stuff here. That's irrelevant right now):
# > cat /etc/auto.master +auto_master
Mine now looks exactly like the above.
# > ypcat -k auto.master /home auto.home -nosuid,noquota
Mine looks like: # ypcat -k auto.master +auto_master /home auto_home -nobrowse /xfn -xfn /net -hosts -nosuid,nobrowse
# > cat /etc/auto.home +auto_home
Mine now looks exactly like the above.
# > ypcat -k auto.home foo -rw,intr,nosuid,noquota host_foo:/export/home
Mine looks like: # ypcat -k auto.home +auto_home projects www:/export/projects listserv moby:/export/newhome/listserv . . . (The NIS master runs Solaris; I wonder if something is different in the fields automount is expecting?)
I can't recall right now if there was any magic in addition to this. It's been a while since I set up these maps. Just try my setup and see if that solves your problem. If not, just send me a mail, and I'll dig deeper in my setup.
With the above configuration, automount does not start when I run autofs start, and the following information is captured to the messages file: Apr 3 13:34:08 sevengill automount[7971]: starting automounter version 3.1.3, path = automount, maptype = -t, mapname = 300 Apr 3 13:34:08 sevengill automount[7971]: Map argc = 4 Apr 3 13:34:08 sevengill automount[7971]: Map argv[0] = 300 Apr 3 13:34:08 sevengill automount[7971]: Map argv[1] = /home Apr 3 13:34:08 sevengill automount[7971]: Map argv[2] = yp Apr 3 13:34:08 sevengill automount[7971]: Map argv[3] = /etc/auto.home Apr 3 13:34:08 sevengill automount[7971]: cannot open lookup module -t (/usr/lib/autofs//lookup_-t.so: cannot open shared object file: No such file or directory) Thanks very much for your help. Lynette Bellini Systems Administrator University of Minnesota -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
On Mon, 3 Apr 2000, Lynette Bellini wrote:
# > ypcat -k auto.master /home auto.home -nosuid,noquota
Mine looks like:
# ypcat -k auto.master +auto_master [snip]
Isn't this a circular definition? This doesn't look good to me. Does this setup work at all?? We're now talking about the server side setup. On the NIS server you usually have the source files (i.e. the actual master map files) in /var/yp/ypfiles or /var/yp/src or whatever. This is usually done so that you can use NIS to keep ordinary users away from your servers. The directory typically contains something like auto.home auto.master auto.net group hosts netgroup networks passwd protocols rpc services This is (more or less) the contents of this directory on my server; YMMV. For example, if you are going to add a new user, you have to add an entry to /var/yp/<whatever>/passwd and run make so that the updated passwd map gets pushed to the clients. The command `ypcat passwd` on a client will then return the contents of /var/yp/<whatever>/passwd on the server. Likewise, the command `ypcat -k auto.master` on a client will return the contents of /var/yp/<whatever>/auto.master, and so on. The auto.master file will define the top mount points, so in my case the file looks like this: /net auto.net -nosuid,noquota /home auto.home -nosuid,noquota This works if the NIS server runs Linux or HP-UX. Because you have a Solaris server, you may need to have /net auto_net -nosuid,noquota /home auto_home -nosuid,noquota instead. You'll just have to experiment with '.' vs '_'. The files defines the top mount points and then tells which map specify the contents below the top points. So if auto.master on your server contains "+auto_master", then I don't see how this can work whatsoever. (But then again, I don't know everything about NIS. I have just made a setup that works well for me. ;-) )
Mine looks like:
# ypcat -k auto.home +auto_home projects www:/export/projects listserv moby:/export/newhome/listserv
Like I said for auto.master, get rid of the "+auto_home" line in /var/yp/<whatever>/auto.home . And some mount options for you directories is probably a Good Thing (tm), e.g. "-rw,intr,nosuid,noquota" or whatever you want. Does this help? ---J.T.U. /==================================================================\ | Jon Trygve Utne |e-mail: jont@ii.uib.no | | Department of Informatics | Jon.Utne@mi.uib.no | | University of Bergen, Norway | Jon.Utne@student.uib.no | | Tlf(work) +47 55 58 82 95 |"Smith & Wesson: The original| | URL: http://www.ii.uib.no/~jont | point and click interface" | \==================================================================/ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (2)
-
jont@ii.uib.no
-
lynette@software.umn.edu