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.

HardDrive Failure: please help

Discussion in 'General Discussion' started by Ankit_bond2005, Mar 25, 2007.

  1. Ankit_bond2005

    Ankit_bond2005 Active Member

    Joined:
    Mar 12, 2004
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    Hello,

    I just came to know that a harddrive on one my servers has failed.
    Luckily, the data can be recovered.

    Can anybody tell me if there is a utility or software which can automatically make cpanel accounts on the new hard-drive on which I have a fresh installation of cpanel from the other harddrive which I have on secondary at the moment with all the data?


    Any help would be highly appreciated.
     
  2. jonyzinho

    jonyzinho Active Member

    Joined:
    Apr 2, 2005
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Restore old every Accounts.

    Hi,

    You may restore every accounts by WHM.

    1.º - Go to "Configure Backup" and setup to your Second Drive.

    2.º - Go to "Restore Multiple Backups" in your WHM and select every accounts.

    Regards,

    Joao
     
  3. Ankit_bond2005

    Ankit_bond2005 Active Member

    Joined:
    Mar 12, 2004
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    Unfortunately the harddrive which had the full backups is complete gone but all that is left is actual data on the main harddrive.
     
  4. jonyzinho

    jonyzinho Active Member

    Joined:
    Apr 2, 2005
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Restore

    Copy entyre backup to your /home

    then

    /scripts/restorepkg username
    then
    chown -R username.username /home/username/
    then
    cd username
    chmod 755 or 750 public_html



     
  5. Ankit_bond2005

    Ankit_bond2005 Active Member

    Joined:
    Mar 12, 2004
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    I didn't understood what you mean by the word backup?

    I lost all the backups. All I have is the main drive with the file contents in /home/username
    Mysql was also on that drive.

    Your help is highly appreciated.
     
  6. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
  7. ujr

    ujr Well-Known Member

    Joined:
    Mar 19, 2004
    Messages:
    290
    Likes Received:
    0
    Trophy Points:
    16
    Ankit_bond2005 ,

    Since you are grabbing the files off the drive, you will most likely want to use rsynch. You obviously understand that can't do it anyway suggested above. So, use rsynch.

    There are a number of directories and files that you will want to move over to the new hard drive.

    There used to be a fantastic post on the ev1 site entitled "Restoring Cpanel from old drive after crash or hack". I can't find the post, but found an archive.

    Credit goes out to the original author. If you need help, post, as We have had to do this a number of times.

     
  8. ujr

    ujr Well-Known Member

    Joined:
    Mar 19, 2004
    Messages:
    290
    Likes Received:
    0
    Trophy Points:
    16
    One little reminder ... if your box is not setup like before with the same versions of binaries and php, etc... you will need to make some manual modifications before everything works correctly.

    Good Luck!
     
  9. Ankit_bond2005

    Ankit_bond2005 Active Member

    Joined:
    Mar 12, 2004
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    Hello,

    Thanks a lot everyone. I really appreciate it.

    My datacenter ie Sagonet is really awesome. They have fixed this for me.

    They really saved my day.
     
  10. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
  11. nexgate

    nexgate Registered

    Joined:
    Jan 19, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Move from old server to New server

    If the old server is still working. Can I still use this trick to move everything from the old server to the new server? If not, does anyone know what is the best way to do it?
     
  12. ujr

    ujr Well-Known Member

    Joined:
    Mar 19, 2004
    Messages:
    290
    Likes Received:
    0
    Trophy Points:
    16
    The above instructions are to move them from one (old) physical drive in the system to a new one. While you can try to rsynch over a net, I don't recommend doing that in dire situations--like failed drives.

    The instructions are still reasonably sound, as most of the cpanel scripts and other settings it takes are still in the same paths.

    However, this can vary from system to system (for instance if your apache is in /usr/local/apache/apache2 , or you have /home2 or have moved your mysql, or have other things not listed etc.) Make the necessary changes as needed.

    Also, without saying, you should be able to read your hard drive. If there are errors you can try to fsck it, and you can also use dd rescue, which is a program that can copy your drive bit by bit. (a very neat tool, but patience is needed with large drives, particularly with errors/bad blocks)
     
Loading...

Share This Page