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.

Server hard drive is about to crash

Discussion in 'General Discussion' started by vbtweb, Jan 23, 2005.

  1. vbtweb

    vbtweb Member

    Joined:
    Jan 10, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    My server hard drive is getting alot of errors.

    I talked to the people providing the server and they told me to make a backup of the drive and let them know when its done so it can be replaced.

    I have 2 hard drives, and one I mounted as home2 but its empty.

    I tried to configure backups to run and backup to it, but it wont work because it says there is no /home2 lol

    I'm really really bad at linux and I have no idea how to ghost the drive to the 2nd, and then back again, and the worst part is doing it remotely.

    Anyone have time to offer some instructions?

    Thanks
     
  2. vbtweb

    vbtweb Member

    Joined:
    Jan 10, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    bumping to try to get a reply
     
  3. dougvaughan

    dougvaughan Member

    Joined:
    Nov 26, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    As a total noob, I would like to know the answer to this as well.
     
  4. vbtweb

    vbtweb Member

    Joined:
    Jan 10, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    bumping it again hopeful someone will reply
     
  5. elleryjh

    elleryjh Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
  6. vbtweb

    vbtweb Member

    Joined:
    Jan 10, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Here is the command line I'm going to use for this

    Let's assume we have to clone a harddrive (sda). Which has a partition table setup below. It has 1 NTFS partition loaded with WinNT/Win2K and rest Linux partition. (swap, Linux and Raid partition). Assuming second (slave) harddrive (sdb) is also attached to the same system.
    Device Boot Start End Blocks Id System
    /dev/sda1 1 9 72261 83 HPFS/NTFS
    /dev/sda2 10 75 530145 82 Linux swap
    /dev/sda3 76 467 3148740 fd Linux raid autodetect
    /dev/sda4 468 2200 13920322+ 83 Linux

    A simple way to clone this drive (/dev/sda) to another drive attached to this system (/dev/sdb) is to use dd command.

    dd if=/dev/sda of=/dev/sdb

    This command will copy each bit from sda (Master drive) to sdb (Slave drive) including MBR (Master Boot record). Thus after cloning new drive (sdb) is ready for deployment. This will also copy any information like File System IDs etc.
     
  7. dougvaughan

    dougvaughan Member

    Joined:
    Nov 26, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Is this all that is necessary to completely clone a cpanel box's drive that you can simply replace the existing drive with?
     
Loading...

Share This Page