Difference between revisions of "RAID"

From Atomicorp Wiki
Jump to: navigation, search
(New page: Rebuilding a failed array. 1) the old state /dev/md0 is /dev/hda1 and /dev/hdc1 has /dev/hda failed 2) replace /dev/hda 3) partition /dev/hda to create RAID containers like hdc. They...)
 
 
(2 intermediate revisions by one user not shown)
Line 8: Line 8:
  
 
2) replace /dev/hda
 
2) replace /dev/hda
 
  
 
3) partition /dev/hda to create RAID containers like hdc. They must be the same size as the partitions on the other disk, and of type fd (Linux raid autodetect)
 
3) partition /dev/hda to create RAID containers like hdc. They must be the same size as the partitions on the other disk, and of type fd (Linux raid autodetect)
 
  
 
4)  mdadm --add /dev/md0  /dev/hda1
 
4)  mdadm --add /dev/md0  /dev/hda1
  
 +
5) To monitor progress: cat /proc/mdstat
  
5) To monitor progress: cat /proc/mdstat
+
6) Optional: [[Bootable RAID]]

Latest revision as of 10:59, 17 April 2007

Rebuilding a failed array.

1) the old state

/dev/md0 is /dev/hda1 and /dev/hdc1

has /dev/hda failed

2) replace /dev/hda

3) partition /dev/hda to create RAID containers like hdc. They must be the same size as the partitions on the other disk, and of type fd (Linux raid autodetect)

4) mdadm --add /dev/md0 /dev/hda1

5) To monitor progress: cat /proc/mdstat

6) Optional: Bootable RAID

Personal tools