Moving NIS master to new machine

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Moving NIS master to new machine
# 1  
Old 12-03-2007
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.

# 2  
Old 12-05-2007
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.
# 3  
Old 12-05-2007
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.

# 4  
Old 12-06-2007
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.
# 5  
Old 12-09-2007
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:
a. /etc/passwd
b. /etc/shadow
c. /etc/group
d. /etc/.rootkey
e. /etc/netgroup <-- only if you have anything special in it
f. /etc/nsswitch.conf <-- only if you have anything special in it
f. /var/nis
g. other files/directories specific to your nis+ server
3. powerdown old server

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

5. untar the tar file and then reboot the box

6. 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!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris - Moving off NIS to something better

Mostly Solaris 11 with some 10 and even fewer 8 and 9. At the moment, NIS is used. Looking for a better way and to get rid of NIS. (13 Replies)
Discussion started by: psychocandy
13 Replies

2. UNIX for Advanced & Expert Users

How to find out which server is LDAP/NIS master?

I have some scripts where I go and do some LDAP/NIS queries to report on users on Unix servers. What I am trying to figure out is, how do I know which server is the LDAP? The configs have been in place long before I took over so was hoping someone had some insight on how to figure this out. I must... (1 Reply)
Discussion started by: dagamier
1 Replies

3. UNIX Desktop Questions & Answers

How can I replicate master master and master master MySQL databse replication and HA?

I have an application desigend in PHP and MySQl running on apache web server that I is running on a Amazon EC2 server Centos. I want to implement the master-master and master slave replication and high availability disaster recovery on this application database. For this I have created two... (0 Replies)
Discussion started by: Palak Sharma
0 Replies

4. Red Hat

Yppasswdd not running on nis master server

Goodmorning i am preparing Nis for my test lab.Running Redhat 5.4 on master and centos for my client.Master server running portmap,ypserv,yppasswdd and client running portmap,ypbind and ypxfrd. ypcat and other yp commands are running fine frm client.But when i try yppasswdd on client to change... (1 Reply)
Discussion started by: Vaibhav.T
1 Replies

5. HP-UX

NIS Master and Client problem

I have a NIS Master server and NIS Clients. But when I started the service all the process and files that should be owne by root apper by the owner 0 This is an example 0 1709 1708 0 10:06:10 ? 0:00 /usr/sbin/nfsd 4 0 1710 1709 0 10:06:10 ? 0:00 /usr/sbin/nfsd 4 0 1708 1 0 10:06:10 ? 0:00... (2 Replies)
Discussion started by: GCSG
2 Replies

6. Solaris

Error while configuring NIS master

Hello - I have a Solaris machine, which I would like to configure as NIS master. When I run the command /usr/sbin/ypinit -m, I see below output. I am enclosing them in tags. /usr/sbin/ypinit -m In order for NIS to operate sucessfully, we have to construct a list of the NIS servers. Please... (1 Reply)
Discussion started by: manju--
1 Replies

7. Solaris

NIS master "ypwhich can't communicate with rpcbind"

Hello All, I just tried to create NIS master in my x86 vmware machine. I have followed the steps and created the necessary files and installed via ypinit command. Now the issue is after start the services when provide the ypwhich command showing following error. Please assist. bash-#svcs... (1 Reply)
Discussion started by: gowthamakanthan
1 Replies

8. Solaris

Problem while setting NIS master on Solaris 10

Hi All, I get below error while running cd /var/yp /usr/sbin/ypinit -m Error Code - 1 updated netmasks make : warning : target all not remade because of errors current working dir /var/yp *** error code 1 *** make : fatal error : command failed for target 'k' error running... (4 Replies)
Discussion started by: naw_deepak
4 Replies

9. Ubuntu

how to mount /home on NIS client machine

Hi All, can anyone tell me how to mount NIS user /home/<username> directory on the client machine in Ubuntu. Thanks (3 Replies)
Discussion started by: daya.pandit
3 Replies

10. UNIX for Advanced & Expert Users

NIS master / slave problems

Our NIS master server went down. We have since fixed it and brought it back up. However all of are machines still point to the slave server when looking at it with ypwhich. My question is how do i point the servers back to the master. Frank (2 Replies)
Discussion started by: frankkahle
2 Replies
Login or Register to Ask a Question