Hi all, got one response so far (from ed.rolison@itc.alstom.com, thanks Ed!), and this one solved the problem. I attach Ed's response to this summary, seems things are much more easier as my NIS-Book says, :-) Btw., Ed: The /etc/hosts is not the problem, the new server had an entry there - I think something's going wrong during the rpc call, maybe due to caches or things like that. But, as I said: It's much more easier to do it the way Ed described, without all that ypxfr-work... Here's Ed's reply: > I've recenlty done the changing of NIS. > (I assume we are talking NIS/yp rather than NIS+ here) > > Copy the 'source' files for the zone to the new master. > Hack /var/yp/Makefile according to your new config > > On each of the machine you wish to change, run ypinit > ypinit -m for the master > ypinit -s <master> for the slave servers > > (which amongst other things, re-builds/checks the list of ypservers (in > /var/yp/binding/<domain>/ypservers) > > And then restart yp on all of the above. > I think it was that simple... > The error message you would seem to be getting is that one of the servers > cannot figure out which one is the > master. I encountered similar problems, the source of the problem was > because the NIS master was not in the /etc/hosts > file. (It must be to ypbind, despite the fact that you may be using DNS for > resolution). kind regards, and thanks for help, Harald ============================================ Harald Husemann Systems Engineer Teammanager Unix administration and Configuration Management Materna Gmbh Vo_kuhle 37 D-44141 Dortmund, Germany Phone: +49-231-5599-8684 Mobile: +49-179-2300651 -----Urspr|ngliche Nachricht----- Von: Husemann, Harald [mailto:harald.husemann@Materna.DE] Gesendet: Mittwoch, 28. August 2002 12:14 An: Sun Managers (E-mail) Betreff: NIS: Problem with changing a master server Hi Gurus, I've a problem with changing a NIS master server. My NIS Admin Guide (O' Reilly, "Managing NFS and NIS") says I should setup the new master a NIS-slave, rebuild the NIS-maps on the new master with NOPUSH=1, and then transfer the newly generated NIS-maps to the old server using ypxfr: ypxfr -h newmaster -f <NIS-map>. I've setup the slave, rebuild the maps, but when I try the ypxfr, I get the following error message: ypxfr: couldnot get <newmaster> address (info) <newmaster> passwd.byuid ypxfrd getdbm failed (reason = -1) -- using ypxfr What does this mean? The address of the new master is present in the old master's /etc/hosts, so I thought it should work. I also added the new master's hostname to the ypservers-map and rebuild the ypservers map using makedbm... Where's the problem? Anyone seen this before? Thanks for your help, will summarize. kind regards, Harald ============================================ Harald Husemann Systems Engineer Teammanager Unix administration and Configuration Management Materna Gmbh Vo_kuhle 37 D-44141 Dortmund, Germany Phone: +49-231-5599-8684 Mobile: +49-179-2300651 _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagers _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Wed Aug 28 10:53:03 2002
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:54 EST