1833123 Members
3156 Online
110051 Solutions
New Discussion

Re: NIS server migration

 
SOLVED
Go to solution
Susi
Occasional Advisor

NIS server migration

Currently, an HP-UX 10.2 box is the NIS server in our network. We want to switch, and make an HP-UX 11.0 machine the NIS master server and another HP-UX 11.0 the slave server. How do I 'unconfigure' the current server? How do I configure the new master and slave servers? Could I just copy the current NIS source files to the new master server? Are there any issues because of SUN and RedHat Linux clients in our network?
Carpe Diem!
3 REPLIES 3
Steve Labar
Valued Contributor
Solution

Re: NIS server migration

At your new NIS master server do the following commands:
domainname [domainname]
ypinit -m (follow prompts)
edit /etc/rc.config.d/namesvrs
change NIS_MASTER_SERVER variable to 1 and add the domainname. If you are going to use a NIS slave you should also set the YPSET_ADDRESS to the master's IP in the namesvrs file.

At your new NIS slave:
domainname [domainname]
ypinit -s [master_server hostname]
edit /etc/rc.config.d/namesvrs
change NIS_SLAVE_SERVER to 1
change appropriate domainname and change YPSET_ADDRESS to slave server's IP.

In the /var/yp directory there are some pretty good predefined scripts which could be entered into cron to allow the slave server to update its NIS tables on a regular basis.


To disable your original NIS master:
run /sbin/init.d/nis.server stop
edit /etc/rc.config.d/namesvrs
change NIS_MASTER_SERVER to 0

Make sure your new NIS master has all the appropriate updates to things like /etc/hosts /etc/passwd /etc/group /etc/services, etc.

Good Luck.

Stev
RAJESH GANGADHARAN
Regular Advisor

Re: NIS server migration

Hi
before doing ypinit in master server make sure that /ect/passwd, /etc/hosts, /etc/netgroups, /etc/mail/alias etc are uptodate, you can do a ypcat and get the files uptdated. thereafter you can do the ypinit
-RAJ
Let the choices you make today be the choices you can live with tomorrow.
Susi
Occasional Advisor

Re: NIS server migration

Thanks a lot for your help! I very much appreciate it!

Susi
Carpe Diem!