From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Norbert Kasperczyk-Borgmann Newsgroups: gmane.os.tru64.managers Subject: Update: Strange Problem with NIS/YP Date: Fri, 28 Mar 2003 17:21:58 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3E8476A6.6060301@informatik.haw-hamburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1048868534 30555 80.91.224.249 (28 Mar 2003 16:22:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 28 Mar 2003 16:22:14 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Mar 28 17:22:12 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18ywcO-0007wa-00 for ; Fri, 28 Mar 2003 17:22:12 +0100 Original-Received: (qmail 895 invoked by uid 5); 28 Mar 2003 16:22:08 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 886 invoked by uid 49493); 28 Mar 2003 16:22:08 -0000 Original-Received: from nkb@informatik.haw-hamburg.de by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-1.8/5.0):. Processed in 0.68638 secs); 28 Mar 2003 16:22:08 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 28 Mar 2003 16:22:07 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HCG0008CW4QQ8@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 28 Mar 2003 11:22:06 -0500 (EST) Original-Received: from wombat.is.haw-hamburg.de ([141.22.192.33]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HCG007E2W4OPZ@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 28 Mar 2003 11:22:01 -0500 (EST) Original-Received: from fbi010.informatik.haw-hamburg.de (fbi010.informatik.haw-hamburg.de [141.22.10.10]) by wombat.is.haw-hamburg.de (8.11.6+Sun/8.11.0) with ESMTP id h2SGM0H16901 for ; Fri, 28 Mar 2003 17:22:00 +0100 (MET) Original-Received: from informatik.haw-hamburg.de by fbi010.informatik.haw-hamburg.de (8.11.1/1.1.22.3/10Aug00-0433PM) id h2SGLx60000260976; Fri, 28 Mar 2003 17:21:59 +0100 (MET) Original-To: tru64-unix-managers@ornl.gov X-Accept-Language: en, en-us User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.0.2) Gecko/20021120 Netscape/7.01 Xref: main.gmane.org gmane.os.tru64.managers:3825 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3825 Hi TRU64 Administrators, this is not a real Summary cause a bigger part of the Problems still exist. In the archive you can read me original question: http://www.xray.mpe.mpg.de/mailing-lists/tru64-unix-managers/2003-03/msg00293.html First, a big "thank you very much" goes to Joseph A Senulis (Joseph.Senulis@dnr.state.wi.us) who gives me a lonely answer: ===== Joe's answer beginn ==== We may have had a similar problem for a while. It turns out that we didn't have an rpc map, but YP really wanted one. Once we set that up, things worked much better. I am not sure that this is your problem though. You should verify that /etc/svc.conf and the YP configuration are correct. ===== Joe's answer end ==== I set up the map at my site but the problems still exists. After checking every byte of the NIS-Configuration it turns out that the map 'ypservers' was empty. After some testing I get the best result when just the name of the Master-Server is in this map. You create the map 'ypservers' by typing in each line of the file '/var/yp/src/ypservers' the hostname of one NIS-Server once (don't forget the name of the NIS-Master!!). After this you just type: 'make ypservers' in the directory '/var/yp'. This creates the map 'ypservers' if the following lines are in your Makefile: $(YPDBDIR)/$(DOM)/ypservers.time: $(DIR)/ypservers -@if [ -f $(DIR)/ypservers ]; then \ $(AWK) '{print $$0, $$0}' $(DIR)/ypservers \ | $(MAKEDBM) -a $(METHOD) - $(YPDBDIR)/$(DOM)/ypservers; \ $(TOUCH) $(YPDBDIR)/$(DOM)/ypservers.time; \ else \ $(ECHO) "couldn't find $(DIR)/ypservers"; \ fi ypservers: $(YPDBDIR)/$(DOM)/ypservers.time $(DIR)/ypservers: The command 'ypcat ypservers' should give twice at line the name of each ypserver e.g: NIS-MASTER@some.where NIS-MASTER@some.where After this the NIS-Master pushes every change at the sources just to the own database. The NIS-Slaves get their copy only through their cronjobs. I know that isn't the recommended configuration. But if you give the name of the NIS-Slaves there is a long time-out between the update and the push of the database. The following error messages occur after about 5 minutes at the NIS-Master when typing (e.g.) 'yppush mail.aliases' when a NIS-SLAVE is in the ypservers map: Status received from ypxfr on NIS_SLAVE@some.where: Map successfully transferred, but ypxfr couldn't send "Clear map" to ypserv If there was the file '/var/cluster/members/memberX/yp/ypxfr.log' at the NIS-SLAVE you can read there: Fri Mar 28 16:32:19: clnt call NIS-MASTER@some.where ypxfrd getdbm NOTOK ypservers code=2 Fri Mar 28 16:32:19: Attempt to use hi-speed xfr daemon on NIS-MASTER@some.where failed Fri Mar 28 16:32:19: Proceeding with basic xfr of ypservers ypxfr: bind_to_server clnt_call error: RPC: Timed out ypxfr: bind_to_server clnt_call error: RPC: Timed out is the name of your NIS Domain. The map itself is after about 1 second at the NIS-SLAVE (you can see it with a 'ls -l /var/yp/'. With the above configuration the Problem (RPC: Timed out) with the command 'yppasswd' still exists. I saw that only the map '/var/yp//passwd.byname.pag' get's an update immediatly after the call of 'yppasswd'!! All other maps (passwd.byname.dir, passwd.byuid.{dir | pag} still have there old time for a longer period. The user who calls 'yppasswd' can allways login with the new given passwort. I removed all old NIS Configuration at the Master and the Slave. At both server I do a fresh 'nissetup'. I believe there is a problem somewhere deep in the NIS-System (ypserv, ypxfrd, ...) itself. I hope someone of the engineering can spend some time to this problem. Best Regards Norbert -- Norbert Kasperczyk-Borgmann Hochschule fuer Angewandte Wissenschaften Hamburg - Hamburg University of Applied Sciences - Fachbereich E/I, Softwarelabor, Raum 1186 Berliner Tor 7, D-20099 Hamburg, Germany phone: +49 40 42875-8417 fax : +49 40 2803770 email: nkb@informatik.haw-hamburg.de