Solved

Recover from dead hard drive (RAID 1)

Posted on 2009-05-20
6
618 Views
Last Modified: 2013-11-08
Hi,

I have a server running four hard drives:
System RAID 1: 2 x 20GB IDE
Storage RAID 1: 2 X 500GB SATA

I am in the process of creating a disaster recovery plan. Say if one of the 20GB drives were to fail I would like to have some instructions on how to configure a new drive to replace the dead drive.

System configuration:

OS: Centos 5
CPU AMD Athlon 3500+
RAM 1.0GB
HDD hard drives running software raid configuration
2 x 20GB IDE system
2 x 500GB SATA storage

Pablo.
0
Comment
Question by:pabgm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
6 Comments
 
LVL 39

Expert Comment

by:PUNKY
ID: 24437361
Turn off the system.
Replace the failed hard drives with new hard drives that are of equal or greater capacity.
If the raid is already set recovery automatically, the recovery process will start automatically when turn on the system.
If the raid recovery is not set up yet, when prompted during system startup, press Ctrl and i (or whatever your raid card) at the same time to enter the raid configuration, check there see if recovery option is set.
 
0
 

Author Comment

by:pabgm
ID: 24439429
Hi,

This is software raid configured by the OS. There is no hardware raid.

Pablo.

0
 
LVL 4

Accepted Solution

by:
colinvann earned 500 total points
ID: 24483861
After you have replaced the physical drive and have booted the system you will be running in a degraded RAID state.

You can check this by running the following command:
  cat /proc/mdstat

Before adding the new disk into the array you would need to create a partition on the new drive of type 'Linux RAID auto' (assuming the new disk is /dev/hda)
  fdisk /dev/hda
  n - new partition
  p - primary partition
  1 - partition 1
  t - change type of partition
  fd - Linux RAID (software RAID)
  w - write the partition table to disk
  q - quit

Now that you have a partition you can add it to the array and it will start rebuilding (assuming /dev/md0 is the RAID device):
  mdadm --manage /dev/md0 -a /dev/hda1

you can check the progress of replication of data to the new disk by watching the contents of the /proc/mdstat file:
  watch "cat /proc/mdstat"

Note: If you do not have mdadm installed you can install it as follows:
  yum install mdadm

Hope that helped.
Colin
0
 

Author Comment

by:pabgm
ID: 24599185
So lets say I remove a disk, my system should still boot?
0
 
LVL 4

Expert Comment

by:colinvann
ID: 24619039
Correct.

If your initial ram disk has the drivers for software RAID (which it must do already because the system is currently booting off a software RAID1 partition) you should be fine.
0

Featured Post

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
Learn how the use of a bunch of disparate tools requiring a lot of manual attention led to a series of unfortunate backup events for one company.
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question