Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 24
  1. #1
    Member
    Join Date
    Feb 2005
    Posts
    24

    Default Hard drive needs to be replaced

    Hi,

    The hosting company is telling us they need to replace the hard drive. But they will not move the current server data along. They say we need to take care of backup and restore.

    The server has over 100 domains in there. Each cPanel account has mailboxes, databases, files, cron jobs, and so on. Over time, there have been some additions installed into it like FDFToolkit for Php and Image Magick, to name 2 examples.

    We don't have experience in backing up an entire disk to load the data back on the new drive. Can anyone who has done this before help us? What should we do to be able to restore the server as it is now the soonest?

    We don't have physical access to the server, just remote via SSH.

    Thanks for any help on this matter.

    Veronica

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    That's extremely unreasonable of your host and I'd suggest that once you're beyond this crisis that you look for a more customer responsive datacenter, of which there are many.

    Presumably, you have some other disk you can backup to? If so, then you can perform a cPanel full backup by configuring it in WHM and then running:

    /scripts/cpbackup

    And then use the resultant backup to restore from.

    If you don't have a separate drive to backup to, then you'll probably still have to do the full backup and store the results (usually in /backup/cpbackup/daily/*) off-server using FTP. Then FTP them backup to the same equivalent place and restore from the backups on the new drive.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Feb 2005
    Posts
    24

    Default

    Hi chirpy,
    Thanks for your response.

    We don't have another drive where to backup. Maybe I can talk to the hosting company about adding another drive to run the backup? I'm not sure if this will be possible.

    About backing up all to the drive and download with FTP, I just tried doing tarball of some public_html directories. One of them is 1GB, another one is over 600 MB and there are much more. I don't think the server will even have physical space to make a full backup to itself. And then how will I be able to download it with FTP?

    I am very disappointed with the hosting company, I don't think they should leave us on our own with the data. They say they don't copy or move data because if liability issues. But this needs someone experienced to move this data. They have been very good so far and I didn't expect this.

    This WHM backup you mention will just move over the cpanel accounts, right? Any ideas about how to proceed with other installed apps?

    Thanks for your help.

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    The WHM full backup creates tarballs (accountname.tar.gz files) which contains everything cPanel needs to restore the account in its entirety, including all the account data and files. It's the tarballs you would then FTP off the server (or copy to a spare drive) and then restore through the WHM restore functions.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by veronicabend
    We don't have another drive where to backup. Maybe I can talk to the hosting company about adding another drive to run the backup? I'm not sure if this will be possible.
    Yes, it is possible to add a 2nd HD. We have done with many clients.

    I don't think the server will even have physical space to make a full backup to itself. And then how will I be able to download it with FTP?
    FTPing your data to a remote server is not a very good idea. I suggest you find an offline backup service, if the you are not cherishing the idea of a 2nd HD.

    I am very disappointed with the hosting company, I don't think they should leave us on our own with the data. They say they don't copy or move data because if liability issues. But this needs someone experienced to move this data.
    The vast majority of data centers hold their clients responsible for the maintenance and integrity of their own backups and restorations. It is in your best interest and strongly encouraged that you maintain backup copies of your clients' files in an alternative location such as an offline backup system, or a 2nd HD, or a tape.

    During the replacement of your HD, the server will be down for several hours. If there are unforeseen difficulties, your server might be shut down for a little long time. If this is not plausible for you, then you might want to ask your data center whether it is possible to get a new server. If not that, you may want to consider an offline backup, or a 2nd HD.
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  6. #6
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Quote Originally Posted by AndyReed
    Yes, it is possible to add a 2nd HD. We have done with many clients.
    That's out of your control. It's up to the server provider if they will allow the addition of a 2nd drive. I think you misunderstood the question.

    FTPing your data to a remote server is not a very good idea. I suggest you find an offline backup service, if the you are not cherishing the idea of a 2nd HD.
    Eh? That makes no sense. An offline backup service is just as likely to offer FTP as any other protcol. Nothing at all wrong with using FTP to whatever resource you can use to store backups off-server Again, you don't seem to have understood the OP's problem at hand.

    The vast majority of data centers hold their clients responsible for the maintenance and integrity of their own backups and restorations. It is in your best interest and strongly encouraged that you maintain backup copies of your clients' files in an alternative location such as an offline backup system, or a 2nd HD, or a tape.
    Which is irrelevant and nothing to do with this situation.

    The vast majority of data centers hold their clients responsible for the maintenance and integrity of their own backups and restorations
    Which also isn't relevant, since it's poor customer service managment for any datacenter not to offer to move data from a failing drive for them, even if there is a cost. Most of the respectable datacenters will offer such a service.
    Last edited by chirpy; 07-20-2006 at 12:54 PM.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  7. #7
    Member
    Join Date
    Feb 2005
    Posts
    24

    Default

    Thanks for all your replies.

    We have got the datacenter to add 2 new hard drives to the server. They are at it, hopefully, now. They will leave the failing drive also there for now, as secondary, until we are able to move the data from it to the new drives.

    From now on we will be using one of these new drives for backup. I will have to configure cPanel backup so it performs full backup to this drive. I asked them to make a big backup partition in there.

    I agree we need to keep backups. But I also think it would have been very nice of them to help us moving the data from the failing drive to the new drive, especially since it is not a consequence of something we did, and they are the ones who have more knowledge about how to use the server, copy files, which files can be copied directly and which ones cannot, for which files services need to be stopped, how to stop and then restart services, etc. The hard drive got bad and that's it. It was a surprise to me when they said they would not move any of the data.

    Once they have added the new drives, I will have to see how I can move the data over.

  8. #8
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    I'm glad you got some movement from your datacentre.

    For restoring full backups, I'd suggest a read of this:
    http://forums.cpanel.net/showthread....694#post253694

    To migrate data from a replaced system drive that's been mounted as a slave drive:
    http://forum.ev1servers.net/showthre...threadid=38797
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  9. #9
    Member
    Join Date
    Feb 2005
    Posts
    24

    Default

    Hi Chirpy,

    Thanks for those links. They will be very helpful.

    Since I was not able to do full backups with cPAnel, I will have to go with copying from the slave disk. I have been reading that post and it is a good explanation. The part that makes me feel rather nervous is when they mention that after executing all those commands, I'll find myself fixing little things here and there. Since my server knowledge is not vast, I'm fearing that. Did you ever do something like this?

    Thanks again,
    Veronica

  10. #10
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    I do several a week

    So long as you follow the main post you should be OK. The main things to remember to do once all the rsync commands have been done is to:

    /scripts/upcp --force

    Then rebuild apache+php

    Then run:

    /scripts/fixeverything

    That usually does all that you need.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  11. #11
    Member
    Join Date
    Mar 2002
    Posts
    175

    Default

    Quote Originally Posted by chirpy
    That's out of your control. It's up to the server provider if they will allow the addition of a 2nd drive. I think you misunderstood the question.


    Eh? That makes no sense. An offline backup service is just as likely to offer FTP as any other protcol. Nothing at all wrong with using FTP to whatever resource you can use to store backups off-server Again, you don't seem to have understood the OP's problem at hand.

    That's what I thought too. Glad someone else thought that was a little odd. The data center saying they don't move customers data due to liability sounds weird too. Ask if they can put a replacement drive in and at least mount the old one as a last ditch "Hail Mary" effort to move the data over. I that works, or even if it doesn't I'd be telling the data center its a liability risk to you by having them as a supplier soon after things calm down and you have the sites in a better data center.

  12. #12
    Member
    Join Date
    Feb 2005
    Posts
    24

    Default

    Hi chirpy,

    how do I rebuild apache + php?
    could you give me some guidance on that as well?

    Thank you so much!

    Veronica

  13. #13
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    WHM > Software > Update Apache
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  14. #14
    Member
    Join Date
    Feb 2005
    Posts
    24

    Default

    Hi chirpy,

    Thanks so much for your guidance on this.

    Datacenter says OS Reload is finished but I don't see the old drive so I have asked them how I can access it. I had asked for it to be mounted at /old.

    Once I know how to access the old drive, do I need to stop any processes before I start copying the data over as in the post you reference, with rsync? The new drive has a new copy of cpanel running.

    Thanks again,
    Veronica

  15. #15
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Yes, you should sop pretty much everything. This is the command set I use:

    /etc/init.d/chkservd stop
    /etc/init.d/httpd stop
    /etc/init.d/exim stop
    /etc/init.d/pure-ftpd stop
    /etc/init.d/proftpd stop
    /etc/init.d/mysql stop
    /etc/init.d/xinetd stop
    killall -9 eximstats
    /etc/init.d/cpanel stop
    /etc/init.d/crond stop
    /etc/init.d/courier-authlib stop
    /etc/init.d/courier-imap stop


    When you've finished all the work, a reboot is usually a good idea.

    Mounting the old drive can be a little tricky and is best done by your provider. If you do need help with it, post the output of the following commands:

    df -h

    fdisk -l
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. Hard drive mounted but still shows up in "Format/Mount a new Hard Drive"
    By desiguru in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-31-2010, 03:27 AM
  2. New hard drive installed by host, but not sure which drive to mount.
    By vaughnt in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-27-2007, 01:12 PM
  3. Transferring from slave to primary (when hard disk replaced)
    By djblamire in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-30-2006, 07:57 PM
  4. Replies: 19
    Last Post: 12-08-2005, 07:26 PM
  5. Replies: 0
    Last Post: 06-01-2004, 07:10 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube