SUMMARY: problems with NIS-Map ypslaves

From: Carsten Hennig (hennig@darmstadt.gmd.de)
Date: Wed Jul 03 1991 - 08:40:46 CDT


Thanks for the many replies. Below I summarize two of them.

My original question was the following:

> I don't know whether this problem is discussed yet.
>
> Our environment:
>
> - about 100 Workstations (3/60, 3/75, 3/80, 3/140, 4/110,
> 4/40, 4/65)
> - 5 Server 3/280
> - 4 Server 4/280
> - 1 Server 4/470
>
> all runnning SunOS 4.1.1 (exclude 2 3/280-Server which will be
> upgraded soon)
>
> The problem:
>
> It is about a month ago that we switched the NIS-Masterserver
> from a 4/280, running SunOS 4.0.3, to the 4/470, which was already
> running SunOS 4.1.1.
>
> Now, if we make a 'make' in /var/yp on the NIS-Master (named 'oslo'),
> the following error message comes up:
>
> >>Finding NIS servers:Map ypslaves.oslo unknown NIS client error code >--
> >>using ypservers
>
> After this message the 'make' goes on and makes everything expected.
> So, we only want to remove this error message.
>
> My questions now are :
>
> - what kind of map is 'ypslaves' ?
> - how can I create this map ?
> - why isn't this map where it should be ?
>
>
> Many thanks in advance for any help.

Now, there seem to be two possibilities to solve the problem.

1.) How to build the requested map ypslaves.oslo:
    oslo.root: cat >/etc/ypslaves.master_server
    YP_LAST_MODIFIED 677346113
    YP_MASTER_NAME oslo
     <and all NIS-slaves two times per line>

    oslo.root: cd /var/yp
    oslo.root: /usr/etc/yp/makedbm /etc/ypslaves.oslo IPSI/ypslaves.oslo

2.) Insert the following lines into your Makefile in /var/yp:
    YPSERVERS=$(DIR)/ypservers
    YPSLAVES=$(DIR)/ypslaves.oslo
    ypservers.time : $(YPSERVERS)
        @(awk '!/^#/ && !/^$$/ { print $$1, $$0 }' $(YPSERVERS) $(CHKPIPE)) | \
                $(MAKEDBM) - $(YPDBDIR)/$(DOM)/ypservers;
        @touch $@
        @echo "update ypservers";
        @if [ ! $(NOPUSH) ]; then $(YPPUSH) ypservers; fi
        @if [ ! $(NOPUSH) ]; then echo "pushed ypservers"; fi

    ypslaves.majestix.time : $(YPSLAVES)
        @(awk '!/^#/ && !/^$$/ { print $$1, $$0 }' $(YPSLAVES) $(CHKPIPE)) | \
                $(MAKEDBM) - $(YPDBDIR)/$(DOM)/ypslaves.oslo;
        @touch $@
        @echo "update ypslaves.oslo";
        # @if [ ! $(NOPUSH) ]; then $(YPPUSH) ypslaves.oslo; fi
        # @if [ ! $(NOPUSH) ]; then echo "pushed ypslaves.oslo"; fi

    In /etc/ypslaves.oslo on oslo should be the following:
    # list of yp slave-servers
    <names of the NIS-slaves once per line>

The first solution works without problems.

The second solution doesn't work without problems, but it works. The
problem is that yppush hangs up, when I do a 'make ypslaves'. But only
the NIS-Master needs this map, so I could break yppush with ^C.

Now the error message is away, and I hope this summary will help
any of you, who has the same problem.

Thanks again for the responses from:

Claus Assmann <ca@idefix.informatik.uni-kiel.dbp.de>
Dick St.Peters <stpeters@dawn.crd.ge.com>
David Fetrow <fetrow@orac.biostat.washington.edu>
Daryl Crandall <daryl@oceanus.mitre.org>
Andy Feldt <feldt@phyast.nhn.uoknor.edu>
Stan Sawyer <stan@nli.com>
Alan K. Ho <librainc!ho@uunet.UU.NET>
Ray Ballisti <ray@ifh.ethz.ch>

---
Carsten Hennig
(hennig@darmstadt.gmd.de)



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