I recently upgraded my Freenas 0.72 based NAS into a ubuntu 10.10 server based NAS. The mdadm tool is easy to use following the guide, but the raid building is so slow - 10 hours for a 4TB raid 5 (3x2TB), it wasn't this long on the initial setup on freenas.. anyway..
the pain comes after I rebooted the machine, then I found my raid mount failed and mdadm says /dev/sdb failed, but I cannot verify log anywhere that tells me what is wrong with /dev/sdb. I checked /var/log/messages and syslog, cannot find anything error related to sdb. when I try to add it back, it says
Code:
mdadm /dev/md0 -a /dev/sdb1
mdadm: Cannot open /dev/sdb1: Device or resource busy
so I try to remove it, it tells me
Code:
mdadm /dev/md0 -r /dev/sdb1
mdadm: hot remove failed for /dev/sdb1: No such device or address
a more deeper look of sdb1
Code:
mdadm --examine /dev/sdb1
/dev/sdb1:
Magic : a92b4efc
Version : 00.90.00
UUID : 0cbf13fa:d1ac85d7:0cc163c1:e6c0f4aa (local to host yaonas)
Creation Time : Tue Mar 1 22:43:11 2011
Raid Level : raid5
Used Dev Size : 1953513408 (1863.02 GiB 2000.40 GB)
Array Size : 3907026816 (3726.03 GiB 4000.80 GB)
Raid Devices : 3
Total Devices : 3
Preferred Minor : 0
Update Time : Wed Mar 2 12:29:32 2011
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0
Checksum : 8a66bd5e - correct
Events : 19
Layout : left-symmetric
Chunk Size : 64K
Number Major Minor RaidDevice State
this 1 8 17 1 active sync /dev/sdb1
0 0 8 1 0 active sync /dev/sda1
1 1 8 17 1 active sync /dev/sdb1
2 2 8 33 2 active sync /dev/sdc1
I also used smartctl to check the disk, it says
Code:
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
so, it appears mdadm think sdb is bad, but I don't know why, should I ask the manufacture for a replacement (I used this drive for about 2 month)