LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-09-2004, 11:24 AM   #1
tswain
LQ Newbie
 
Registered: Oct 2004
Location: Oregon
Posts: 11

Rep: Reputation: 0
Moving NIS to another server


My current NIS (master) server is dying. The hard drive is reporting massive amounts of disk errors.

I want to move the NIS master to another linux server.

Has any one out there done this?

Thanks,

T
 
Old 01-03-2005, 05:11 PM   #2
tswain
LQ Newbie
 
Registered: Oct 2004
Location: Oregon
Posts: 11

Original Poster
Rep: Reputation: 0
Moving NIS master to another server...

Folks,

I had a couple ways to go on this, one being that I could just start over, and the other I could just move it. I choose the latter, with the former as a backup.

All of the information can be obtained from the O'Reilly book Managing NIS and NFS, Chapter 2 & 4.

1. Bring up the the new server as a client with ypbind to get the inital maps..
2. Add the new server to ypservers and run make -C /var/yp
3. Run ypinit -s ypxfr should transfer all the maps to the slave server. The book describes to use makedbm, but I could get this work.
4. Each map needs to be rebuilt on the new server. Copy over the Makefile and source files. do not push them out to the server(s) make NOPUSH=1
5. Copy the new maps (from the new master) to the old server and run 'ypxfr -h newmaster -f passwd.byname' and do this to all the maps. This force the old master server to get the new maps from the newmaster server.
6. If you have additional slave servers you push these maps to the existing slaves.

T
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SUSE 9 and 10 NIS clients with RedHat 8.0 NIS server not working fishsponge Linux - Networking 0 11-29-2005 07:43 AM
Cant login after moving to new NIS server monkeyleader Linux - Networking 0 12-01-2004 08:05 AM
how to join NIS server (SUN machine) to Linux NIS server? KoRiR Linux - Networking 3 04-28-2004 01:19 PM
How to setup a solaris NIS client while with a Linux NIS server? ntcm Linux - Networking 1 03-31-2004 07:51 AM
moving NIS server from Solaris to RH9 voda Linux - Networking 0 08-26-2003 08:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration