From owner-freebsd-questions@FreeBSD.ORG Thu Apr 17 16:30:11 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 830E037B401 for ; Thu, 17 Apr 2003 16:30:11 -0700 (PDT) Received: from stella.pyramus.com (ns2.pyramus.com [67.92.212.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C6BC43FCB for ; Thu, 17 Apr 2003 16:30:10 -0700 (PDT) (envelope-from blake@pyramus.com) Received: from pyramus.com (dark-star.pyramus.com [10.10.1.7]) by stella.pyramus.com (8.11.6/8.9.3) with ESMTP id h3HNUlX38265; Thu, 17 Apr 2003 16:30:47 -0700 (PDT) (envelope-from blake@pyramus.com) Message-ID: <3E9F375C.1030700@pyramus.com> Date: Thu, 17 Apr 2003 16:23:08 -0700 From: Blake Swensen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dan Nelson References: <3E9F10A9.3050207@pyramus.com> <20030417205745.GB28037@dan.emsphone.com> <3E9F1AFA.4080103@pyramus.com> <20030417220326.GD28037@dan.emsphone.com> In-Reply-To: <20030417220326.GD28037@dan.emsphone.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: FreeBSD List Subject: Re: Yp server not pushing out maps X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Apr 2003 23:30:11 -0000 Ok... this is interesting. So I ypxfr'ed all the maps back to the slave using your suggestion of forcing the transfer. Then I touched all the source files on the master server and did a make. make still tells me that: Updating passwd.byname... yppush: transfer of map passwd.byname to server samson failed yppush: status returned by ypxfr: Master's version not newer Note that the slave server is now not in the error messages... So for giggles I forced the transfer from itself... no errors. But the problem still persists when I make. If I unremark NOPUSH = "True" then make again, the errors go away. What the heck am I missing... my rc.conf looks like: nisdomainname="domain" # Set to NIS domain if using NIS (or NO). nis_server_enable="YES" # We're an NIS server (or NO). nis_server_flags="" # Flags to ypserv (if enabled). #nis_yppasswdd_enable="YES" # Run rpc.yppasswdd at boot time (or NO). #nis_yppasswdd_flags="-t /var/yp/master.passwd -v" # Flags to rpc.yppasswdd (if enabled). nis_client_enable="YES" nis_client_flags="-S domain,samson" Arrrgh. Dan Nelson wrote: > In the last episode (Apr 17), Blake Swensen said: > >>Ya, Dan. >> >>ypmatch YP_LAST_MODIFIED master.passwd.byuid reports: >>Slave: 1050612393 >>Master: 1050611746 >> >>slave: -rw------- 1 root wheel 40960 Apr 17 13:15 master.passwd.byuid >>Master:-rw------- 1 root wheel 40960 Apr 17 13:35 master.passwd.byuid >> >>The clocks are the same >>Slave: Thu Apr 17 14:23:22 PDT 2003 >>Master: Thu Apr 17 14:23:22 PDT 2003 > > > $ TZ=PST8PDT date -r 1050612393 > Thu Apr 17 13:46:33 PDT 2003 > $ TZ=PST8PDT date -r 1050611746 > Thu Apr 17 13:35:46 PDT 2003 > > What's strange is that YP_LAST_MODIFIED on the slave is 30 minutes > older than the timestamp of its db file on disk. Try running > "/usr/libexec/ypxfr -f -h master.passwd.byuid" on the > slave to force a pull, or touch master.passwd on the master and run > "make" again. > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The Internet Rescue Company - http://www.pyramus.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blake R. Swensen Pyramus Online, Inc. President 2080 SE Oak Grove Blvd. Suite 11 Milwaukie, Oregon 97267 800-327-5101 vox:503-353-0455 fax:503-353-0453 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "We measure success by the success of our clients"