LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to rebuild a damaged raid 1 array? (https://www.linuxquestions.org/questions/linux-general-1/how-to-rebuild-a-damaged-raid-1-array-312203/)

mrpc_cambodia 04-11-2005 08:45 PM

How to rebuild a damaged raid 1 array?
 
hi,

i'm running redhat linux and i'm using a software raid level 1 with 2 harddisks (ide disks) mirrroring each other.

now i think one of my harddisks fails because i run this command "lsraid" and it showed the below message:

root# lsraid -a /dev/md0

/dev/md0 online
/dev/hda0 good
(unknown) missing

------------------------

so i want to know how can i reconstruct my raid 1 array? i mean if one of my harddisk really fails then i will replace with a new one but what are the steps that i should do to rebuild my raid 1?

i'm really new to this one.


Thanks,

trickykid 04-12-2005 08:22 AM

Do a cat /proc/mdstat and it will print off all of your raid devices.

To rebuild one, depending on if its being used/busy or not, you can do a:

/sbin/raidhotadd

man raidhotadd for more details.


All times are GMT -5. The time now is 12:36 PM.