
我已經使用 mdadm 配置了包含 6x2TB 設備的 raid 5(我將其從 9 個設備縮小到 6 個):
/dev/md0:
Version : 1.2
Creation Time : Mon Sep 23 17:54:25 2013
Raid Level : raid5
Array Size : 9762030080 (9309.80 GiB 9996.32 GB)
Used Dev Size : 1952406016 (1861.96 GiB 1999.26 GB)
Raid Devices : 6
Total Devices : 6
Persistence : Superblock is persistent
Update Time : Tue Oct 6 09:48:34 2015
State : clean, degraded, recovering
Active Devices : 5
Working Devices : 6
Failed Devices : 0
Spare Devices : 1
Layout : left-symmetric
Chunk Size : 512K
Rebuild Status : 1% complete
Name : media:0
UUID : 8fe53fed:5206746d:3fcd5b2b:f176a8f9
Events : 208638
Number Major Minor RaidDevice State
0 8 34 0 active sync /dev/sdc2
1 8 17 1 active sync /dev/sdb1
2 8 65 2 active sync /dev/sde1
6 8 80 3 spare rebuilding /dev/sdf
4 8 49 4 active sync /dev/sdd1
7 8 97 5 active sync /dev/sdg1
正如您所看到的,突襲目前正在恢復,但在恢復過程之後/期間的某個地方,我的突襲一直失敗:
/dev/md0:
Version : 1.2
Creation Time : Mon Sep 23 17:54:25 2013
Raid Level : raid5
Array Size : 9762030080 (9309.80 GiB 9996.32 GB)
Used Dev Size : 1952406016 (1861.96 GiB 1999.26 GB)
Raid Devices : 6
Total Devices : 6
Persistence : Superblock is persistent
Update Time : Tue Oct 6 08:33:43 2015
State : clean, FAILED
Active Devices : 4
Working Devices : 5
Failed Devices : 1
Spare Devices : 1
Layout : left-symmetric
Chunk Size : 512K
Name : media:0
UUID : 8fe53fed:5206746d:3fcd5b2b:f176a8f9
Events : 208622
Number Major Minor RaidDevice State
0 8 34 0 active sync /dev/sdc2
1 8 17 1 active sync /dev/sdb1
2 8 65 2 active sync /dev/sde1
3 0 0 3 removed
4 0 0 4 removed
7 8 97 5 active sync /dev/sdg1
4 8 49 - faulty spare /dev/sdd1
6 8 80 - spare /dev/sdf
之後我必須用以下命令重新組裝突襲:
sudo mdadm --assemble --force -v /dev/md0 /dev/sdb1 /dev/sdc2 /dev/sdd1 /dev/sde1 /dev/sdf /dev/sdg1
在伺服器控制台中,我收到錯誤,如所附圖片(連結)中所示,然後突襲失敗,我必須重新組裝它:
我正在使用 ubuntu 14.04 和 mdadm v3.2.5。
有人可以告訴我這裡發生了什麼事嗎?