Skip to main content

How to upgrade server from CentOS 5 to 6 without much downtime and pain?

Comments

12 comments

  • dalem
    if you have 2 servers its pretty painless (setting the main shared IP to the old IP but not having it on the system) move all accounts skipping the home directory then rsyncing the home directory twice stopping mysql and rsync it so all of the data is as fresh as possible. then set add the new old ip's to the new server only about 5-10 minutes of downtime not sure why your using pkgacct from the command line just use copy Multiple Accounts/Packages From Another Server
    0
  • cPanelMichael
    Hello :) Have you considered using the transfer options in Web Host Manager? It packages accounts the same way that /scripts/pkgacct does, but it makes it easier to manage than completing it all manually. You could move the IP addresses to the destination server after the transfer completes to avoid changing the name servers. Thank you.
    0
  • syno
    Thanks dalem and cPanelMichael for answers. cPanelMichael, you probably meant 'Copy Multiple Accounts/Packages From Another Server', but this is much harder to use than scripted pkgacct/restorepkg, because it requires a lot of attentive mouse clicking. First I should plan transfer in waves, becasue of difference or shared IPs (many shared IPs is also possible becasue older server could have users transferred from even older server). First I need to transfer accounts from one IP (maybe hundred(s)), then for second IP, etc. In multiple copy I need carefully first click hundreds of packages from the list, then hundreds correct account names from thsi wave, for each account name I need to click also 'Dedicated IP' or 'Skip Homedir' when needed. So with just 100 users migration I should click like 300 times and each username should be carefully checked from the list (so I don't click user from other IP). This is very hard, requires a lot of attention, and error prone. That's why I prefer to use pkgacct/restorepkg. What I would like intead is option to transfer IP from one server to another, with all linked to it users automatically, and/or ability to really force IP in restorepkg. And I like to really be sure it never touch DNS. Maybe cPanel could add more transfer friendly options into restorepkg? (Like --force IP really force it no matter what, and subdomain creation to not clean its directory, and protect dns from changing old records). Anyway, I (preferrably) need to transfer users to upgraded system on the same hardware (after os upgrade). And I really want to replace all these older rhel/centoses with centos 6. Would be good if cPanel devise checked intructions/plan for painless transfer like this (w/o touching DNS and IPs). I think many people will want to migrate from centos 5 as it became 'final'. But I have even older, centos4 (these even with unsupported version of cPanel, sigh). So long wanted to upgrade all this, but can't... I also don't want to migrate (i.e. copy in usual way) users from server A to server B, and then back to A after A's os is upgraded, because people don't like these movements (downtimes and mess with dns updates, which not always even possible if dns is external). Ideally all this migration should be done in one night per ~200 users server (I dont even believe in 2 hours like Bluehost could promise). ps. Why need to 'protect dns from changing old records' -- some domains could have changed its IP (migrated to other hosting, but dns left here), when I copy(ed) account cPanel assign(ed) new IP to these domains which is very wrong. Then I search manually which IPs is changed wrongly and revert them manually, mess.
    0
  • cPanelMichael
    I suggest opening a feature request for these improvements via: Submit A Feature Request Thank you.
    0
  • syno
    cPanelMichael, thanks, I posted feature request, but I don't see it appearing in the feature requests list. So I post its text here: [QUOTE]Please provide account migration features which can be applicable for upgrading server from old centos to centos 6. This request is based on forum thread - - - Updated - - - cPanelMichael, btw link to feature request system on your page is not working. You gave link to page http://forums.cpanel.net/cpfeatures.php which links to http://go.cpanel.net/iwant which does not work. Correct link seems to be http://features.cpanel.net/
    0
  • cPanelMichael
    The following URL is loading well for me: [url=http://go.cpanel.net/iwant]cPanel Feature Requests However, you are welcome to use [url=http://features.cpanel.net/]cPanel Feature Requests as well. Note that feature requests can take up to 48 hours to be approved. Thank you.
    0
  • syno
    It seems that feature request is not accepted...
    0
  • cPanelMichael
    [quote="syno, post: 1532172">It seems that feature request is not accepted...
    Did you get a specific rejection message or have you simply not seen it's approval as of yet? What did you name the feature request? Thank you.
    0
  • syno
    [quote="cPanelMichael, post: 1532492">Did you get a specific rejection message or have you simply not seen it's approval as of yet? What did you name the feature request? Thank you.
    No, I didn't get any message. I don't rememebr exact request title (except it had word centos in it) and I forgot to save it either. (As I didnt expect there will be problems with it.) But its text is fully quoted in #6.
    0
  • cPanelMichael
    [quote="syno, post: 1533082">No, I didn't get any message. I don't rememebr exact request title (except it had word centos in it) and I forgot to save it either. (As I didnt expect there will be problems with it.) But its text is fully quoted in #6.
    You may want to try submitting a new feature request for just a single feature. It looks like you had several features in the post you referenced, so limiting it to just one may help. Then, once it's approved, you can add comments on additional modifications that may go along with it. Thank you.
    0
  • Infopro
    [quote="syno, post: 1533082">No, I didn't get any message. I don't rememebr exact request title (except it had word centos in it) and I forgot to save it either. (As I didnt expect there will be problems with it.) But its text is fully quoted in #6.
    It was not rejected, it was being held in moderation. You can find the new Feature Request posted here: [url=http://features.cpanel.net/responses/migration-features-for-painless-upgrade-from-older-centos-to-centos-6]Migration features for painless upgrade from older Centos to Centos 6. | cPanel Feature Requests
    0
  • syno
    cPanelMichael, Infopro, Thanks! I see that feature request is appeared. If anyone else want to support it - please vote or comment!
    0

Please sign in to leave a comment.