1856420 Members
29301 Online
104112 Solutions
New Discussion

Re: Migrating NIS server

 
Cenoce_2
Advisor

Migrating NIS server

What would be the best way to migrate NIS master from a node to another NIS Clinet.

8 REPLIES 8
Jaime Bolanos Rojas.
Honored Contributor

Re: Migrating NIS server

Cenoce,

I am sure this thread will be able to help you know, the links are still active, I just checked them.

http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=999839

Regards,

Jaime.
Work hard when the need comes out.
Cenoce_2
Advisor

Re: Migrating NIS server

Whether two NIS master server can exists in same domain?.
Jaime Bolanos Rojas.
Honored Contributor

Re: Migrating NIS server

Cenoce, according to NIS configuration, one have to be the master and the other the slave.

Regards,

jaime.
Work hard when the need comes out.
Cenoce_2
Advisor

Re: Migrating NIS server

Presentely I have One master one slave and two node as client. I want to make one of the clinet as master and want to remove the old master.

For this i was planning to make one client as new master ( this condition there wil be two master in same domain is this posibel).
Jaime Bolanos Rojas.
Honored Contributor

Re: Migrating NIS server

Cenoce,

Actually you have one master, that is going to be gone, that's ok becuase you have a slave that is going to take over.

You have two clients, one of them you are going to configure as a Master, that's ok, becuase when the master comes up, the Slave ( actual master ) is going to be back as the Slave.

So the correcto configuration is 1 master, 1 slave and one client, thinking also the master is also a client.

For more info take a look a this page

http://docs.hp.com/en/5991-1153/ch04s01.html

Regards,

Jaime.
Work hard when the need comes out.
Cenoce_2
Advisor

Re: Migrating NIS server

Thanks a lot.
MarkSyder
Honored Contributor

Re: Migrating NIS server

Just in case you need any further help:

The following instructions assume you have the old server and the new available at the same time. They also assume your NIS directory is called /var/yp/source (as mine is).

1. Transfer the contents of /var/yp/source on the old server to the same directory on the new.

2. Copy /var/yp/Makefile and /usr/sbin/ypinit from the old to the new.

3. vi /etc/rc.config.d/namesvrs on the new master. Set NIS_MASTER_SERVER=1. Set YPPASSWD_OPTIONS="/var/yp/source/passwd -m passwd PWFILE=/var/yp/source/passwd".

4. Edit the same file on the old server set NIS_MASTER_SERVER=0 and YPPASSWD_OPTIONS="/var/yp/source/fakefile -m passwd PWFILE=/var/yp/source/fakefile".

5. Run ypinit -m on the new server.

6. Run /sbin/init.d/nis.server start on the new server.

7. Run /sbin/init.d/nis.server stop on the old server.

8. Log into a random selection of clients and type ypwhich. They should be bound to the new master. As an additional check, try ypwhich -m which should show all the maps as belonging to the new server.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Robert-Jan Goossens
Honored Contributor

Re: Migrating NIS server