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.

Restore cPanel/WHM from a corrupted drive

Discussion in 'Data Protection' started by Sarteck, Sep 18, 2014.

  1. Sarteck

    Sarteck Registered

    Joined:
    Nov 8, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    We have a server with a corrupted drive, but using RIP we were able to get most of the old filesystem (minus /boot) safely backed up. Unfortunately, we did not have cPanel backups on this server.

    We attempted the steps outlined in this third-party guide:
    Restore cpanel server from corrupted drive - cPanel KnowledgeBase

    However, this left us with a seemingly broken system that was unable to load WHM or cPanel due to "wrong ELFCLASS" (the previous system was CentOS 4.9 32-bit with cPanel 11.34.2.8, the current system is CentOS 6.5 64-bit with latest cPanel).

    We've now installed a fresh cPanel/WHM (again), and we have the files available, but I would like to ask for advice on how we should proceed.

    We have advised the customer about the importance of backups, but of course hindsight is 20/20, and we'd like to restore the data if at all possible. Any help/advice would be appreciated.

    Regards,
    Sarteck
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    The third-party guide you referenced is likely the best way to proceed if you do not have any cPanel generated backups to restore the accounts with. Try skipping "/usr/local/cpanel" to see if that makes a difference on the second attempt. Note that once you have the accounts in a working state, it's likely a good idea to create backup archives for the accounts, setup a new OS/cPanel, and then restore the accounts from backup.

    Thank you.
     
  3. storminternet

    storminternet Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    462
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    wrong ELFCLASS might be occurred because of the different operating system architecture on old server and new server.
    Either you should setup server with 32 bit architecture and perform the migration or skip the migration step "/usr/local/cpanel" as suggested by Michael. There is lib folder in it.

    Mismatched library files can cause this error.
     
Loading...

Share This Page