🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #6542

Re: Moving YP master to new SERVER

#6542
From: Mike Macgirvin
Date: Tue, 15 Jan 1991 17:53
25 lines
1739 bytes
dsf@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@CAMIS.Stanford.EDU
Systems Administrator	SUMEX-AIM computer facility
Technical Details
Message-ID: <1285@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request
From: mike@relgyro.stanford.edu (Mike Macgirvin)
Newsgroups: comp.sys.sun
Subject: Re: Moving YP master to new SERVER
Keywords: Miscellaneous
Message-ID: <1285@brchh104.bnr.ca>
Date: 15 Jan 91 17:53:53 GMT
Sender: news@brchh104.bnr.ca
Organization: Sun-Spots
Lines: 25
Approved: Sun-Spots@rice.edu
X-Refs:  Original: v10n19
X-Sun-Spots-Digest: Volume 10, Issue 23, message 1
X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu