User Tools

Site Tools


raid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
raid [2009/09/30 06:43] 172.26.0.166raid [2009/11/02 14:20] 172.26.0.166
Line 8: Line 8:
   * Rows 0 - 2 are SATA, connected to the hardware 3ware RAID card   * Rows 0 - 2 are SATA, connected to the hardware 3ware RAID card
   * Row 3 are IDE   * Row 3 are IDE
- 
 ===== Software RAID ===== ===== Software RAID =====
 The Linux kernel has the ''md'' (mirrored devices) driver for software RAID devices.  There are currently two 80 GB IDE hard drives connected to the server, ''/dev/hda'' and ''/dev/hdd'' These were set up as five RAID devices during the install of Rocks/CentOS. The Linux kernel has the ''md'' (mirrored devices) driver for software RAID devices.  There are currently two 80 GB IDE hard drives connected to the server, ''/dev/hda'' and ''/dev/hdd'' These were set up as five RAID devices during the install of Rocks/CentOS.
Line 50: Line 49:
              
 unused devices: <none></code> unused devices: <none></code>
 +
 +==== Repair RAID ====
 +
 +Setting a disk faulty/failed:
 +
 +# mdadm --fail /dev/md0 /dev/hdc1
 +
 +DO NOT run this every on a raid0 or linear device or your data is toasted!
 +
 +Removing a faulty disk from an array:
 +
 +# mdadm --remove /dev/md0 /dev/hdc1
 +Clearing any previous raid info on a disk (eg. reusing a disk from another decommissioned raid array)
 +
 +# mdadm --zero-superblock /dev/hdc1
 +Adding a disk to an array
 +
 +# mdadm --add /dev/md0 /dev/hdc1
 +
  
 === To Do list: === === To Do list: ===
Line 84: Line 102:
   * Which port is inactive or missing? (p1, p5, etc)   * Which port is inactive or missing? (p1, p5, etc)
  
-<note important>The controller supports hot swapping but you **must** remove a faulty drive through the ''tw_cli'' tool before you can swap drives.</note>+<note warning>The controller supports hot swapping but you **must** remove a faulty drive through the ''tw_cli'' tool before you can swap drives.</note>
  
 Remove the faulty port: Remove the faulty port:
raid.txt · Last modified: 2010/09/19 23:58 by aorth