Restore cPanel/WHM from a corrupted drive
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:
[url=http://www.cpanelkb.net/restore-cpanel-server-from-corrupted-drive/]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
-
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. 0 -
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. 0
Please sign in to leave a comment.
Comments
2 comments