Summary: NIS Map Disappeared?!?

From: Darin S. Lory (darin@kaman.com)
Date: Mon Mar 09 1992 - 20:33:54 CST


Thanks goes out to Brent Alan Wiese <brent@crick.ssctr.bcm.tmc.edu> at the Systems Support
Center, Baylor College of Medicine since he is the only one that responded.

Thank You, Brent

********************************************
Original Message:
********************************************
Help!! I setup a NIS map on a Sun 490 (Sun OS 4.1) running as the NIS Master and DNS Server
as a map called <ypprinters>. It had been working for the longest time and is utilized on
the slew of Sun 490's the US Army has in its use. I had rebooted the 490 during
lunchtime to clear up a problem with the SCSI bus and now I can't do a ypcat on the map.

lenny.kaman.com# ypcat ypprinters
no such map in server's domain

It just says," no such map in server's domain". I did a make in /var/yp and checked to
make sure that ypserv, ypbind, and ypxfrd are still running, which they are.

I had followed the procedure in O'Reilly and Associates book, "Managing NFS and NIS" by Hal
Stern (excellent book by the way).

Funny thing is that I can go to any other machine and type ypcat ypprinters and get the map:
 
dica.kaman.com% ypcat ypprinters
5 103 0 lenny LN03R "ASCII Apple LaserWriter IINTX"
4 103 2 carol PRINTER "Hewlett-Packard Laserjet III"
3 mez 0 jimbo LN03R "Kyocera"
2 103 1 lenny LN03R "DECwriter III"
1 103 0 lenny PRINTER "Apple LaserWriter IINTX"

And I put the editable file in /etc:

lenny.kaman.com# more /etc/ypprinters
1 1 103 0 lenny PRINTER "Apple LaserWriter IINTX"
2 2 103 1 lenny LN03R "DECwriter III"
3 3 mez 0 jimbo LN03R "Kyocera"
4 4 103 2 carol PRINTER "Hewlett-Packard Laserjet III"
5 5 103 0 lenny LN03R "ASCII Apple LaserWriter IINTX"

And here is the Makefile (in /var/yp) entry:

#
# NIS Entries created for the TDP Package
#
ypprinters.time: $(DIR)/ypprinters
        @$(MAKEDBM) $(DIR)/ypprinters $(YPDBDIR)/$(DOM)/ypprinters
        @touch ypprinters.time;
        @echo "updated ypprinters";
        @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) netgroup; fi
        @if [ ! $(NOPUSH) ]; then echo "pushed ypprinters"; fi

passwd: passwd.time
group: group.time
hosts: hosts.time
ethers: ethers.time
networks: networks.time
rpc: rpc.time
services: services.time
protocols: protocols.time
netgroup: netgroup.time
bootparams: bootparams.time
aliases: aliases.time
publickey: publickey.time
netid: netid.time
passwd.adjunct: passwd.adjunct.time
group.adjunct: group.adjunct.time
netmasks: netmasks.time
ypprinters: ypprinters.time
$(DIR)/netid:

***********************************************
Solution:
***********************************************

Well, I figured out the ypprinters problem. ypbind on master was looking at a slave for
resolve its NIS requests. Since ypprinters was not one of the NIS maps the slave posessed,
I did a yp transfer while in the /var/yp/`domainname` directory on the slave (ypwhich on the master
responded with the slaves' address):

/usr/etc/yp/ypxfr -h lenny.kaman.com -c -f ypprinters

I am sure this all happened because Master was rebooted at noontime.

Silly Me.

 
        -Darin
 



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:38 CDT