Moving NIS master to new machine

I am running a DNS/NIS server on and older 2.6 system. I would like to move it to a newer system running Sol9. I have not found a good HOWTO and was looking for some advice.

Thanks in advance.

Dave

Check out this link:

System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP)

Basically, you build the new NIS master then move the stuff to it. The next time you push maps out after that the clients should pick up the change. Details are in the doc.

Good luck.

Thanks. I did see that and I think I have a plan. I only have one question at the moment...

The plan is to build the new server and once it is ready, I want to rename it to be the same name and IP as the server that I am replacing. Can you think of any issues with that? I'll have to look for files that may have the host name hard set.

Dave

I think that would work fine, although I've not done it for a NIS master.

To do the rename Search Sun's doc site and google. I know for sure there is a how-to on changing the IP and Name of a Solaris server. I've used it in the past. There are about 6 total files you need to touch but I don't remember them all off the top of my head.

i've upgraded my sol 2.5.1 nis+ server to sol 8 and then later on moved it from an ultra-2 to v240 ... here's what i did ...

  1. build new server

  2. tar up the following files/directories and then move the tar file to new server:

  1. powerdown old server

  2. sys-unconfig new server and then rename and re-ip with old server's settings after booting

  3. untar the tar file and then reboot the box

  4. continue life

if you run into issues, turn off the new server and bring the old server back online for troubleshooting

btw --- make sure you don't have any changes happening to the nis+ environment (i.e., password resets, new accounts, etc.) when you do the changeover aside from the hardware ... you might want to do this off-hours so you don't mess up your users by accident ...

i'm not that intimately familiar with nis+ so i can't tell you what would happen if you make a mistake ... however, having the old server intact until after the transition is deemed successful will help you out big time ...

good luck!