不知道发生了什么,但我的 raid 6 作为 xfs 存储停止工作了
首先,我检查了所有设备的 SMART,但没有一个显示错误。
cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : inactive dm-8[1](S) dm-9[0](S) dm-11[3](S) dm-7[4](S) dm-10[2](S)
10736757757 blocks super 1.2
unused devices: <none>
我的mdadm.conf:
ARRAY /dev/md0 level=raid6 num-devices=5 metadata=1.2 UUID=7a7b49b9:ebaf805a:a9ec676c:d6c31c13
devices=/dev/dm-11,/dev/dm-10,/dev/dm-9,/dev/dm-8,/dev/dm-7
然后尝试停止并重新组装它:
mdadm --stop /dev/md0
mdadm --assemble --scan -v
mdadm: looking for devices for /dev/md0
mdadm: /dev/dm-12 is not one of /dev/dm-11,/dev/dm-10,/dev/dm-9,/dev/dm-8,/dev/dm-7
mdadm: /dev/dm-6 is not one of /dev/dm-11,/dev/dm-10,/dev/dm-9,/dev/dm-8,/dev/dm-7
mdadm: /dev/dm-5 is not one of /dev/dm-11,/dev/dm-10,/dev/dm-9,/dev/dm-8,/dev/dm-7
mdadm: /dev/dm-4 is not one of /dev/dm-11,/dev/dm-10,/dev/dm-9,/dev/dm-8,/dev/dm-7
mdadm: /dev/dm-3 is not one of /dev/dm-11,/dev/dm-10,/dev/dm-9,/dev/dm-8,/dev/dm-7
mdadm: /dev/dm-2 is not one of /dev/dm-11,/dev/dm-10,/dev/dm-9,/dev/dm-8,/dev/dm-7
mdadm: /dev/dm-1 is not one of /dev/dm-11,/dev/dm-10,/dev/dm-9,/dev/dm-8,/dev/dm-7
mdadm: /dev/dm-0 is not one of /dev/dm-11,/dev/dm-10,/dev/dm-9,/dev/dm-8,/dev/dm-7
mdadm: /dev/sdb is not one of /dev/dm-11,/dev/dm-10,/dev/dm- 9,/dev/dm-8,/dev/dm-7
mdadm: /dev/sdf2 is not one of /dev/dm-11,/dev/dm-10,/dev/dm-9,/dev/dm-8,/dev/dm-7
mdadm: /dev/sdf1 is not one of /dev/dm-11,/dev/dm-10,/dev/dm-9,/dev/dm-8,/dev/dm-7
mdadm: /dev/sdf is not one of /dev/dm-11,/dev/dm-10,/dev/dm-9,/dev/dm-8,/dev/dm-7
mdadm: /dev/sdc is not one of /dev/dm-11,/dev/dm-10,/dev/dm-9,/dev/dm-8,/dev/dm-7
mdadm: /dev/sdd is not one of /dev/dm-11,/dev/dm-10,/dev/dm-9,/dev/dm-8,/dev/dm-7
mdadm: /dev/sde is not one of /dev/dm-11,/dev/dm-10,/dev/dm-9,/dev/dm-8,/dev/dm-7
mdadm: /dev/sda is not one of /dev/dm-11,/dev/dm-10,/dev/dm-9,/dev/dm-8,/dev/dm-7
mdadm: /dev/dm-11 is identified as a member of /dev/md0, slot 3.
mdadm: /dev/dm-10 is identified as a member of /dev/md0, slot 2.
mdadm: /dev/dm-9 is identified as a member of /dev/md0, slot 0.
mdadm: /dev/dm-8 is identified as a member of /dev/md0, slot 1.
mdadm: /dev/dm-7 is identified as a member of /dev/md0, slot 4.
mdadm: added /dev/dm-9 to /dev/md0 as 0 (possibly out of date)
mdadm: added /dev/dm-10 to /dev/md0 as 2 (possibly out of date)
mdadm: added /dev/dm-11 to /dev/md0 as 3 (possibly out of date)
mdadm: added /dev/dm-7 to /dev/md0 as 4
mdadm: added /dev/dm-8 to /dev/md0 as 1
mdadm: /dev/md0 assembled from 2 drives - not enough to start the array
这给了我查看驱动器状态的提示:
mdadm --examine /dev/dm-{7..11} | egrep 'dev|Update|Role|State|Chunk Size|Checksum'
/dev/dm-7:
State : clean
Update Time : Mon Dec 11 09:36:51 2017
Checksum : 5a065503 - correct
Chunk Size : 512K
Device Role : Active device 4
Array State : .A..A ('A' == active, '.' == missing, 'R' == replacing)
/dev/dm-8:
State : clean
Update Time : Mon Dec 11 09:36:51 2017
Checksum : b1d36af4 - correct
Chunk Size : 512K
Device Role : Active device 1
Array State : .A..A ('A' == active, '.' == missing, 'R' == replacing)
/dev/dm-9:
State : active
Update Time : Mon Dec 11 09:36:41 2017
Checksum : bbfe3106 - correct
Chunk Size : 512K
Device Role : Active device 0
Array State : AA..A ('A' == active, '.' == missing, 'R' == replacing)
/dev/dm-10:
State : active
Update Time : Sun Nov 19 01:00:27 2017
Checksum : f5b76272 - correct
Chunk Size : 512K
Device Role : Active device 2
Array State : AAAAA ('A' == active, '.' == missing, 'R' == replacing)
/dev/dm-11:
State : active
Update Time : Tue Dec 5 23:58:46 2017
Checksum : fab4506f - correct
Chunk Size : 512K
Device Role : Active device 3
Array State : AA.AA ('A' == active, '.' == missing, 'R' == replacing)
第一辆于 11 月 19 日迷路,第二辆于 12 月 5 日迷路,最后一辆于 12 月 11 日迷路,导致另外两辆也停了下来。
重新组建突袭队的正确步骤是什么?