Moving YP master to new SERVER

Mike Macgirvin mike at relgyro.stanford.edu
Wed Jan 16 04:53:53 AEST 1991


dsf at ihlpm.att.com (Dale Stuart Finkey) writes:

>I have looked at all the SUN YP documentation and cannot figure out how to
>switch the 3/280 to a YP slave and make the 4/470 the YP master.

There are important pieces of the procedure in the Systems and Network
Admin docs, but it isn't exactly straightforward.

1. On the NEW server, collect all the necessary files and run "ypinit -m".

2. On the OLD server, run ypxfr and get all of the files from the NEW
   server (or ftp /var/yp/{domain}/* if you think it's faster).

3. Go back to the NEW server and touch all the files and run make from
   /var/yp, or just yppush everything.

The key to all of this is that the master server's name gets put in all of
the maps. You need to build the maps with the new name, and then get them
out to all of the slave servers. If you have more than one slave, then you
can use yppush to help you, once you've gotten the new files to the old
server. If you do the "ypinit" procedure "by hand", remember to recreate
the ypservers map with the new server as the first entry.

mike (Mike Macgirvin)	mtm at CAMIS.Stanford.EDU
Systems Administrator	SUMEX-AIM computer facility



More information about the Comp.sys.sun mailing list