Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
linux:raid [2009/02/04 20:05] a + how to know which drive to remove |
linux:raid [2009/07/06 01:30] (current) 193.164.137.52 |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| * [[http:// | * [[http:// | ||
| * [[: | * [[: | ||
| + | |||
| + | |||
| ===== Debian Woody + kernel 2.4 ===== | ===== Debian Woody + kernel 2.4 ===== | ||
| - | Good article (based on the one that has already been available on TNT) on this topic is on URL: [[http:// | + | Good article (based on the one that has already been available on old [[http:// |
| ===== Debian Sarge ===== | ===== Debian Sarge ===== | ||
| Line 16: | Line 18: | ||
| + | ===== RAID5 ===== | ||
| + | **Creating a new one** | ||
| + | mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sda1 /dev/sdb1 /dev/sdc1 | ||
| + | **Adding spare to RAID5** | ||
| + | mdadm --add /dev/md0 /dev/sdh1 | ||
| - | ===== sw RAID recover ===== | + | **Fixing / |
| + | echo " | ||
| + | mdadm --detail --scan >> / | ||
| + | |||
| + | |||
| + | ===== SW RAID recover ===== | ||
| **Copying the partition table from working HDD to new one** | **Copying the partition table from working HDD to new one** | ||
| Line 44: | Line 56: | ||
| echo check > / | echo check > / | ||
| + | |||
| + | ===== active (auto-read-only) ===== | ||
| + | |||
| + | md0 : active (auto-read-only) raid1 sda1[0] sdb1[1] | ||
| + | | ||
| + | |||
| + | to fix: | ||
| + | |||
| + | # mdadm --readwrite /dev/md0 | ||
| ===== Force the Linux kernel to re-read a partitiontable ===== | ===== Force the Linux kernel to re-read a partitiontable ===== | ||

