Changing the NIS master server

Posted on 2003-03-28
Medium Priority
Last Modified: 2013-12-23
I have one nis master and one slave with a few clients.  I want to change my master to a different machine and then make the current master just a client. I'm looking for the easiest way to do this?? These machines are running solaris 2.8.Thanks.
Question by:myker
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 21

Expert Comment

ID: 8232681
This isn't the easiest way, but allows to to test & back out at each stage.

Create a new NIS domain. On the new NIS master:
1. Transfer all the /etc files like passwd, shadow, group, hosts aso from the old master.
2. Change the domainname ("domainname new_domain" + change /etc/defaultdomain)
3. rm /var/yp/binding/*
4. Remove the last two lines in /var/yp/aliases
domainname domainname
ypservers ypservers
5. ypinit -m
6. reboot
Now the new NIS master should bind to itseflf. Test that everything works before you go on with the next machine.

The next steps should be repeated on all the other, none NIS server, machines
1. Do the steps 2-4 above
2. reboot

On the old NIS servers you also need to "rm /var/yp/olddomainname"

The machines will use the old NIS server until they're rebooted.
LVL 51

Accepted Solution

ahoffmann earned 1000 total points
ID: 8234665
tfewster, must it be that hard? I'd do simply:
  1. Transfer all the /etc files like passwd, shadow, group, hosts etc. etc.
  2. ypinit -m
  3. configure as new NIS master, but don't start service (or disable network connection)
  4. shutdown NIS services on old master
  5. plug new master to net
  6. cross fingers ;-)
  7. cleanup on old master
LVL 21

Expert Comment

ID: 8235249
ahoffmann, that's certainly MUCH easier on a large network; As myker said there were only a few clients, I tried to avoid your step 6 ;-)
Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

LVL 38

Expert Comment

ID: 8236081
ahoffmann and tfewster's suggestion will work for you.

Here's my way to do the job:
(no interrupt to the network operations, no change to the clients).

Let's say box-A is your old NIS master, and you want to make box-B as the new master, if the two boxes have identical hardware. You can simply keep your slave server running and swap the harddisk between the two boxes, that means that you swap the hostname and ip for the boxes as well, and all the client boxes can leave unchange.

If the two boxes have different hardware, you need to do a bit more.

Perform Full system backup for the two boxes. put box-B off the network and restore box-A's backup to box-B, (connet to a hup but no connetion to the network),and run an upgrade install (use Solaris 8) to fix up all the device drivers. then shultdown box-A, connet box-B back to the network, and boot it up. do the same thing to box-A.(box-A get box-B's backup, the run upgrade install).

You might want to have a look at my comments in the following question:



Expert Comment

ID: 9157061
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
LVL 21

Expert Comment

ID: 9162208
Poins to ahoffmann for the first good answer

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question