SUMMARY - adding slave NIS server

From: kes@gvlf6.VFL.Paramax.COM
Date: Wed Dec 23 1992 - 16:42:27 CST


Below is a summary of my post of two days ago. I was trying to set up
some new slave servers that were on a different segment of ethernet from
the master and existing slave servers.

The correct reply came from John Shin(sp?) at Sun:

be in single user mode
run portmap
set new domainname
run ypbind -ypsetme <<<<<------ this was the key
run /usr/etc/yp/ypset A.B.C.D ( Internet address of NIS master )
cd /var/yp
/usr/etc/yp/ypinit -s <master>

Below are all the answers and my original post at the bottom.
Thanks to:
From: Jeff Bacon <bacon@mtu.edu>
From: Arie Bikker <aribi@geo.vu.nl>
From: reagan!brian@uu2.psi.com (Brian Decker)
From: stern@sunne.East.Sun.COM (Hal Stern - NE Area Systems Engineer)
From: Christian Lawrence <cal@soac.bellcore.com>
From: mgh@bihobl2.bih.harvard.edu (Michael G. Harrington)

Kes
-------------------------------------------------------------------------
From: Jeff Bacon <bacon@mtu.edu>

are you trying to do this from single-user mode?
if so, is the master in the slave's host file?
------------------------------------------------------------------------
From: Arie Bikker <aribi@geo.vu.nl>

hi,

i seem to recall (isn't human memory fuzzy ;) having the same kind of problem.
the solution was
mkdir /var/yp/<domainname>
on the slave server.
------------------------------------------------------------------------
From: reagan!brian@uu2.psi.com (Brian Decker)

1. Are you running ypinit -s *mastername*' ??

2. If so, there are several scripts in '/usr/etc/yp' that use ypxfr to transfer
    maps from a master to a slave. Try running them on the slave servers.
------------------------------------------------------------------------
From: stern@sunne.East.Sun.COM (Hal Stern - NE Area Systems Engineer)

are you running ypserv on the master server?
running ypinit may have killed it.
------------------------------------------------------------------------
From: reagan!brian@uu2.psi.com (Brian Decker)

Kes,

Try this on your master server:

syrinx# ypcat -k ypservers > /tmp/ypservers
-- edit /tmp/ypservers to add new slave name --
syrinx# cd /var/yp
syrinx# cat /tmp/ypservers | makedbm - /var/yp/`domainname`/ypservers

Now you can run *ypinit -s* to initialize the slave server, and then ypserv
to provide service to clients. ( Nod to Mr. Stern's fine "Managing NFS & NIS" )
------------------------------------------------------------------------
From: Christian Lawrence <cal@soac.bellcore.com>

It sounds like there's a mix up resulting from the conversion from the old
domain to the new domain. Check that /etc/defualtdomain is correct. Check
that you have moved the old database dir (/var/yp/<YP.domain>) to something
not confusing (e.g. /var/yp/old.<YP.domain>). Then go to single user, make
sure the portmapper is running, and try ypinit -s again (making sure that
you have an entry in the local /etc/hosts to map the master address/name.

It should work !
------------------------------------------------------------------------
From: mgh@bihobl2.bih.harvard.edu (Michael G. Harrington)

>From your short description it seems that you might have forgot to run
/usr/etc/ypbind. You have to do this before executing ypinit -s venus.

Hope it helps.

-----------------------------------------------------------------
My original question:

Hi,

I'm looking for some help adding new slave servers. I have several
slave servers running now and I'm trying to add some more. I ran ypinit -m
on the master and added the new slave servers. I can do a ypcat ypservers
and see the proper list. I also can rcp files from the master to the
machines I want to be slaves, so I know the connection is good. When I run:

ypinit -s <master>

I get:

Can not enumerate maps from <master>. Please make sure <master> is up.

I can telnet and rsh from the slaves to the master. The slaves we are
trying to add were previously running on a different domain, but the
domainname *was* changed to the new domain name.

Configuration: 4/490 running 4.1.1 as my YP master
               several 3/180(4.1.1) and a 690(4.1.2) running as slave servers
               trying to add a 4/490(4.1.1) and 3/180(4.1.1) as slave servers

Any suggestions?

Thanks for the help,



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