Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
Hello our problem is as follow our main sata hard drive on server has started to fail so we need to change it with new hard drive before any real ...
  1. #1
    Just Joined!
    Join Date
    Apr 2011
    Posts
    1

    changing faulty hard drive

    Hello
    our problem is as follow
    our main sata hard drive on server has started to fail so we need to change it with new hard drive before any real damage
    i dont have such a experience on how we can do this
    the OS ( centos) and all installed services (apache + mysql + php ) and all our virtual host and domains ( using whm /cpanel ) are on this faulty hard drive
    also i dont have physical access to server and use SSH and whm to manage server
    so how should this faulty hard drive be changed and all data be transfered to the new hard drive correctly so the system boot from new hard drive with all content in place ?
    i have not done such a thing and im really confused
    regards

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    You need somewhere to make a backup bit-image of the disc and/or file systems it contains. The easiest would be for a replacement drive with the same size and configuration as the system drive to be made available, and connected to the system. Then you would use the 'dd' command to copy the contents of the system drive over to the replacement drive, then have the system drive replaced with the replacement drive, and the system rebooted. Doing this all via ssh is not a really great idea, but possible. However, when/if you have problems then you are SOL until you (or someone under your instructions) can access the system physically...

    So, get someone to attach a replacement drive to the system (with the current system drive still bootable), and get back to us for more detailed instructions. Just FYI, if the system drive is /dev/sda (likely), and the replacement drive is attached, then it should be /dev/sdb, or whatever. Assuming so, then you would do this (as root via ssh):
    Code:
    dd if=/dev/sda of=/dev/sdb
    When that is done, you would have them replace the system drive with the new one that you copied to, and reboot the system. At that point, either it works, or it doesn't and you need to figure out why...
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    One other note (IMPORTANT) is that if there are other drives attached to the system other than the boot drive, then when the replacement drive is attached before you copy to it, it will NOT be /dev/sdb, but something else. I have a bunch of drives (15) on my system, so if I were to do this, the replacement drive would likely be /dev/sdp, but given how Linux figures out which device id to use, it could be almost anything... That's why I said to ask for further instructions when the new drive is attached.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  4. #4
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,229
    ...I have a bunch of drives (15) on my system,
    Please forgive my butting in but this is the first time I heard of a system with 15 drives. This just blows my mind. Wow!
    nujinini
    Linux User #489667

  5. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    8 in 2 arrays, 4 (internal) in an LVM, 1 system drive, 2 external esata drives (backup and other stuff). This isn't counting the 3TB (8 drives) in NAS enclosures. So, altogether, I have 23 hard drives online, comprising (excluding RAID redundancies) about 18TB of data. Inventory:

    1 x 320GB system drive (I actually have 3 - each with a different OS, swappable)
    4 x 500GB drives in an LVM (internal for /home)
    4 x 2TB drives in JBOD array, mostly containing classic videos such as rips of my Doctor Who videos, old silent movies, etc.
    4 x 1.5TB drives in RAID-5 backup array, containing bit-images of critical system data - frequently updated.
    1 x 1.5TB drive for external backup (client data)
    1 x 1.5TB drive for video files
    4 x 500GB drives in RAID-5 NAS for Linux distributions, e-publications (books, magazines), and such
    4 x 250GB drives in RAID-5 NAS for backups of audio CD's and mp3 rips of those albums. FWIW, I have over 1000 albums of music...

    What's amazing, is how fast this stuff grows! It just reiterates my old saying - data expands to fill existing disc space + 10%...
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  6. #6
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,097
    OT: I got more, I got more
    Multiple DB Server, each one with 3 jbods (24 Drives each) + 16 Drives in the machine. That's 88
    You must always face the curtain with a bow.

  7. #7
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Ok. Let's run a "Who has the biggest personal drive farm" contest!
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  8. #8
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    BTW, Irithori, I can only fit 6 internal drives in my workstation + 2 DVD drives (8 totoal). I've run mini-comps that could fit more internal drives, but not for awhile... I think for a standard pedestal type of under-desk workstation, 8 3.5" drives is about the max. I have also 4 small array enclosures (4x3.5" drives each), and another 2 drive carrier/enclosure. Altogether == 23 drives + 2 DVD recorders.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  9. #9
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,097
    Ok, in a private environment you win
    I got only a 4Tb raid5 plus Backup.
    You must always face the curtain with a bow.

  10. #10
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Are we going for bragging rights now! Love ya Irithori!

    Speaking of bragging rights, I got to spend a couple hours yesterday in a workshop with David "The Dawg" Grisman, playing mandolin and getting tips from The Dawg and his "assistant", Don Sternberg, two of the half-dozen best mandolin players in the world today. He even played my 107 year old Gibson mandolin, commenting "Wow, that's a nice instrument!". At least I learned some tips on playing weird keys like diminished and augmented sharp/flat keys as alternatives to standard variations. Brain is still throbbing!
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...