NIS master/slave weirdness

From: Koos van den Hout (koos@kzdoos.xs4all.nl)
Date: Fri Jan 17 2003 - 06:11:51 EST


Executive summary:

I made a mistake on a NIS slave, which turned it into a master, and now the
only way to force it back into slave mode is to make it a client of the
master and not if itself. Which is not too good performance wise since it
is also a mailserver.

What happened in full:

I found out I needed to change /var/yp/securenets because the netmask
for one network was changed. I did this, and out of habit typed 'make'
on both server (server1) and client (server2). That last bit was a grave
error as it started to generate the maps on the slave from /etc/passwd,
/etc/group and such files.

I stopped this and then tried to force server2 back into 'slave' mode by
using yppush from the server. Which it just ignored. I tried and tried
until I decided to change the world around and /usr/lib/netsvc/yp/ypstop,
edit the file

/var/yp/binding/`domainname`/ypservers

and /usr/lib/netsvc/yp/ypstart again,

which had the slave itself (server2) as first entry and the master (server1)
as second. Changing the order made all the maps work again, and yppush
work again. I tried again whether the 'right' order in the ypservers
file would work and then it just happily ignores updates.

A tape with /var/yp in its un-make-ed state is already waiting for me, but
I would really like to understand what is happening. Why does the slave
ignore updates when it looks at itself as client.

The 'minor interesting bit' is that the map ypservers is completely empty.
It's there, but empty.

                                             Koos

--
Koos van den Hout,           PGP keyid RSA/1024 0xCA845CB5 via keyservers
koos@kzdoos.xs4all.nl        or DSS/1024 0xF0D7C263
-?)
Fax +31-30-2817051              Visit the site about books with reviews
/\\
http://idefix.net/~koos/                http://www.virtualbookcase.com/
_\_V
[demime 0.99c.7 removed an attachment of type application/pgp-signature]
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:37 EDT