Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2004
    Posts
    347

    Question How to move from one server to other without downtime?

    I have already one dedicated server in DC1. It is my second server (my first) is in DC2. Because of almost-every-day downtimes in DC2 I want to move this server to DC1.

    But of course, I have almost 300 clinets on server in DC2, and I don't want them to feel that I'm moveing or something. Please get me advice how to do this without any or with small (around 10-15 minutes) downtime?

    The servers in DC1 & DC2 are of course cPanel/WHM 9.4.

    The configuration of all my name servers are:

    I have two name servers - ns1.domain.com and ns2.domain.com pointing to DC2 IP's. The secont two - ns3.domain.com and ns4.domain.com are pointing to DC1 but another server than I want to move on. I have two A records of ns3.domain.com and ns4.domain.com in my DC2 server pointing to ns3.domain.com / ns4.domain.com on DC1 (I hope you will understand).

    Please give me advice how to do this whole moving.

  2. #2
    Member rpmws's Avatar
    Join Date
    Aug 2001
    Location
    back woods of NC, USA
    Posts
    1,858

    Default Re: How to move from one server to other without downtime?

    Originally posted by netlook
    I have already one dedicated server in DC1. It is my second server (my first) is in DC2. Because of almost-every-day downtimes in DC2 I want to move this server to DC1.

    But of course, I have almost 300 clinets on server in DC2, and I don't want them to feel that I'm moveing or something. Please get me advice how to do this without any or with small (around 10-15 minutes) downtime?

    The servers in DC1 & DC2 are of course cPanel/WHM 9.4.

    The configuration of all my name servers are:

    I have two name servers - ns1.domain.com and ns2.domain.com pointing to DC2 IP's. The secont two - ns3.domain.com and ns4.domain.com are pointing to DC1 but another server than I want to move on. I have two A records of ns3.domain.com and ns4.domain.com in my DC2 server pointing to ns3.domain.com / ns4.domain.com on DC1 (I hope you will understand).

    Please give me advice how to do this whole moving.
    mod your dns zones for a super fast refresh time. waith 24 hours. as you copy accounts using cpanel copy, change the dns zone on the first server to reflect the new IP address. It will then point traffic to new server. Once you are satisified that all has moved over change the namserver IP's to IPs on the new box. At this point it won't make a traffic change becuase that was done earlier with the zone update. Once the NIC ns IPs and changed you should be able to shut down server1. Don't forget your certs and make sure any special root cron jobs went over. I liek to watch mysql dbs as well.
    Just keeping my "eye" on things....
    R. Paul Mathews
    RPMWS - diehard cPanel Nutcase

  3. #3
    Member h2oski's Avatar
    Join Date
    Dec 2001
    Posts
    71

    Default

    I just did this over the weekend.

    300+ accounts moved with zero downtime.
    exactly as rpmws said, the best way is to update each dns zone as the accounts were transfered.

    The key was to let the dns cluster system update the dns zones on the old server for me

    As rpmws said, change the TTL on each dns zone
    cd /var/named
    perl -pi.bak -e "s/14400/900/g" *.db
    /etc/rc.d/init.d/named restart

    then setup clustering:
    add the old server to the new server in the cluster section and select 'Synchronize Changes'.
    (it will give you a failure message when you add it to the cluster - don't worry everything is fine)

    After 24 hours do the mass transfer in WHM.
    Now as the accounts are created on the new server the dns zones will be updated one-by-one on the old server.

    the rest is exactly as rpmws posted.
    Last edited by h2oski; 06-15-2004 at 02:29 PM.

  4. #4
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    Originally posted by h2oski
    as netlook said
    You mean as rpmws said.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  5. #5
    Member h2oski's Avatar
    Join Date
    Dec 2001
    Posts
    71

    Default

    Originally posted by squirrel
    You mean as rpmws said.

  6. #6
    Member h2oski's Avatar
    Join Date
    Dec 2001
    Posts
    71

    Default

    **Important

    when you change the A record for your hostname to point to the new server remove the old server from the cluster.

    I believe failing to remove the server from the cluster was causing my server to crash

Similar Threads & Tags
Similar threads

  1. Best way to move sites from one cpanel to another with minial downtime
    By l00ph0le in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 01-22-2010, 07:17 AM
  2. MailScanner/ClamAV High Server Load until the server downtime
    By WhiteBear in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-11-2007, 09:04 PM
  3. how to move a site with min downtime?
    By neorder in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-09-2003, 08:32 AM
  4. How To: Move sites with LEAST downtime
    By WebmastTroy in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 05-13-2003, 04:38 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube