PDA

View Full Version : Moving server to new IPs


prophecy
09-16-2003, 11:57 AM
What would be the best way to go about doing this?

Basically want to move the server (hardware and all) to new rack with new ips with minimal downtime.

l0rdphi1
09-16-2003, 12:28 PM
I recently had a server move forced upon me and here what I did:
Installed a clean DA on the new server

Re-created all user accounts on the new server (using random string for password)

Tarred and transfered to new server: /home/*
/var/named/*
/var/spool/virtual/*
/var/lib/mysql/*
/usr/local/directadmin/data/*
Ran a search and replace changing my old IP to the new IP on all files in /var/named and /usr/local/directadmin/data

Modified my nameserver IPs with my domain registrarI think that's everything that was involved. It's probably not the easiest method, but it works :)

Make sure you leave the old server up until everyone's domains repropagate. (Forwarding all incoming requests to the new server is another thing I did.)

Phi1.

prophecy
09-16-2003, 12:52 PM
Ok, I don't have to change servers, just IPs. I'm using the same hardware, but I want to have a smooth transition.

DirectAdmin Support
09-16-2003, 01:08 PM
Hello,

I wrote a little guide to help people through this. I hope to make script to do this in the future.

http://www.directadmin.com/change_ip.txt

John

(Ignore the image section)