The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Migrating a large customer between two servers in a DNS cluster

Discussion in 'General Discussion' started by Vliegtuig, Dec 9, 2014.

  1. Vliegtuig

    Vliegtuig Well-Known Member

    Joined:
    Jan 21, 2010
    Messages:
    74
    Likes Received:
    2
    Trophy Points:
    6
    Hi,

    We are planning to migrate a large customer between to servers in a DNS cluster. There are some caveats:
    • We do not control the DNS for this specific client
    • Transferring will probably take several hours
    • We want to test the entire website properly before actually migrating

    I am looking for a way to streamline this process. Currently the plan is:
    1. /scripts/pkgacct on source server
    2. scp the cpmove file
    3. /scripts/restoreacct on destination server
    4. Override /etc/hosts on a test client
    5. Test the site
    6. Lower DNS TTL
    7. Put source site in maintenance mode
    8. Rsync the entire site and copy the databases
    9. Make the actual DNS changes

    The problem with using a cpmove file is that the DNS entries are adjusted to point to the destination server as well. I don't think this will be a problem in this specific case since we do not control the DNS for this specific client, but I'd rather verify this before hand. Also: how would you do this if the the client-in-question WAS under DNS control?

    Would love to hear your advice.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, the steps you have outlined are correct. It's also correct that since the DNS is handled on a remote server, the entries in the DNS zone on the cPanel server are not relevant. If the DNS was handled locally, then you could manually update the "A" entries to point to the source server after restoring the zone, and then update it again when you are ready to activate the website.

    Thank you.
     
Loading...

Share This Page