Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

Possible to upgrade CentOS 6.5 to 7 without total rebuild?

Discussion in 'General Discussion' started by electric, Jan 25, 2017.

Tags:
  1. electric

    electric Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    727
    Likes Received:
    3
    Trophy Points:
    318
    Hello,

    Is it possible to upgrade a cpanel server from CentOS 6.5 to CentOS 7 without rebuilding the entire server from scratch?

    If not, what is the recommended migration strategy for handling this migration?

    Thanks.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Directly upgrading an OS to a new major version is highly discouraged, and likely to result in several issues on the system. Ideally, you should provision a new server with the new version of the OS. Then, install cPanel, configure the server, and migrate the accounts from the existing system over to it via "WHM >> Transfer Tool". Otherwise, you'd need to backup your accounts to a remote destination, reinstall the OS and cPanel, and then restore the accounts from the backup archives.

    Thank you.
     
    linux4me2 likes this.
  3. SactoBob

    SactoBob Member

    Joined:
    Aug 15, 2015
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Sacramento
    cPanel Access Level:
    DataCenter Provider
    Hard to do an full re-install and xfer as mentioned when you have 100+ sites on their own IP. How do you migrate and keep them the same IP? Temporarily put all those IPs on an interface in the down state on the new server and move like that?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can setup a new IP address on the destination server, transfer the accounts, and then use the IP Migration Wizard feature after you have removed the IP address from the source server and added it to the destination server.

    Thank you.
     
  5. SactoBob

    SactoBob Member

    Joined:
    Aug 15, 2015
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Sacramento
    cPanel Access Level:
    DataCenter Provider
    I don't think this would work for my circumstance. I need to keep all the websites on the same IP as I don't control DNS for some of them and I can't move their MXes to a new IP address either. So I need a migration path that would let me bring up a new cPanel on Centos 7, temporarily shutdown incoming email on the Centos 6 system, move all the sites to Centos 7 and keep them on the same IPs they were on the old system. I'm thinking as a VM I can put the same class C on an interface on the Centos 7 system in the down state, move the sites (making sure they are put on the same IP), then afterwards take the Centos 6 down and bring up the interface on the Centos 7 box? Sounds complicated, I hope I'm making myself clear!
     
  6. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,484
    Likes Received:
    60
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    Take a look at the below guide for the upgrade.
    TipsAndTricks/CentOSUpgradeTool - CentOS Wiki

    If it would have been my server, I will not go with the inplace upgrade, instead, what I would do take a fresh backup of the accounts on the server, then talk with the DC and arrange for a second hard disk on my server, get an CentOS7 install on it separately. Then I would ask the DC to swap the disk, so the current one goes as secondary and the new CentOS7 installed on as primary and then do either a crash drive recovery or full cPanel backup restoration... The most safest way..
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page