Operating System - HP-UX
1833784 Members
4095 Online
110063 Solutions
New Discussion

How do I change the NIS master server

 
SOLVED
Go to solution
Dave Johnson_1
Super Advisor

How do I change the NIS master server

I am running 11.00 (we are upgrading over the next couple of months) and using NIS for user maintenance. I have 6 servers, 1 master, 2 slaves, 3 clients (I know it is really 6 clients).
I want to move one of the slaves to be the master and the current master down to a regular client. How do I do that exactly?
6 REPLIES 6
Robert-Jan Goossens_1
Honored Contributor

Re: How do I change the NIS master server

Dave,

check this doc.

Title: Steps to setup a NIS Master Server, NIS Slaves, and NIS Clients
Document ID: KBAN00000276

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000080360992

Robert-Jan
Dave Johnson_1
Super Advisor

Re: How do I change the NIS master server

While this document tells me how to setup NIS in the first place, it does not tell me how to promote a slave to master and demote a master to a client.
Victor Fridyev
Honored Contributor

Re: How do I change the NIS master server

Hi,

You can not promote slave to master. You have to copy all NIS files (/etc/passwd, /etc/group, /etc/hosts, /etc/services etc...) from the old master to a new one, declare it as a NIS Master and reconfigure rest of slaves (point them to the new master). Clients should not feel any problem.

Good Luck
Entities are not to be multiplied beyond necessity - RTFM
Steven E. Protter
Exalted Contributor

Re: How do I change the NIS master server

Shalom,

There is a configuration file, /etc/rc.config.d/nameserver or nameservers which lets you define all these nice parametrs for NIS. It lets you define whether the server is a master or a slave and if its a slave, who its Master is.

Next reboot everything will be working.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: How do I change the NIS master server

Title: NIS: Moving the NIS Master within the same or different domain
Document ID: KBRC00001416

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000081003366

and look at Mark's answer in this thread.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1019044
Dave Johnson_1
Super Advisor

Re: How do I change the NIS master server

Robert-Jan,
Now that the document service is working again, it was not responding for a while, I got this document. It is exactly what I was looking for.
Thank you all,
-Dave