The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Link type between working machine and server machine palash2k UNIX for Dummies Questions & Answers 1 05-22-2008 03:43 AM
nim master manoj.solaris AIX 0 04-22-2008 11:43 AM
Become a Master iBot Oracle Updates (RSS) 0 04-06-2008 02:10 AM
Moving machine to other site spacewalker UNIX for Advanced & Expert Users 1 03-20-2006 07:48 AM
PHP for ASP-master Silver Shell Programming and Scripting 1 11-28-2002 09:45 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-03-2007
Registered User
 

Join Date: Dec 2007
Location: Maine
Posts: 2
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.

Dave
Reply With Quote
Forum Sponsor
  #2  
Old 12-05-2007
Registered User
 

Join Date: Nov 2003
Location: Minnesota
Posts: 388
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.
Reply With Quote
  #3  
Old 12-05-2007
Registered User
 

Join Date: Dec 2007
Location: Maine
Posts: 2
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.

Dave
Reply With Quote
  #4  
Old 12-06-2007
Registered User
 

Join Date: Nov 2003
Location: Minnesota
Posts: 388
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.
Reply With Quote
  #5  
Old 12-09-2007
Just Ice's Avatar
Lights on, brain off.
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 629
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:
Quote:
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!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:20 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0