我被赋予任务在 Debian 9 上构建大型 SW RAID 50 阵列。由于现在我主要使用硬件控制器来执行此操作,它们可以自行管理很多工作。
我现在有几个问题,我设法构建了所需数量的 RAID 5 阵列,然后将它们放入 RAID 0。这是我的构建顺序
3times
mdadm --create /dev/md9 -v --raid-devices=4 --level=5 /dev/sda[ghij]
第一个问题 - cat /proc/mdstat 中的 raid5 阵列现在正在恢复,不知道为什么,或者它是否像初始化一样,因为磁盘是空的,而且我并没有尝试恢复任何东西。我需要等待才能继续吗?
mdadm --create /dev/md22 -v --raid-devices=3 --level=0 /dev/md1 /dev/md2 /dev/md3
mkfs.ext4 -F /dev/md22
第二个问题 - 我应该为每个 RAID5 阵列都创建文件系统吗?
mkdir -p /mnt/md22
mount /dev/md22 /mnt/md22
第三个问题 - 这里系统卡住了,它没有安装带有 RAID5 阵列的 RAID50 或 RAID0,不知道为什么,也许它与恢复 raid5 的状态或其中丢失的文件系统有关?到目前为止一切都很顺利,但从最后一步开始就很遗憾了。
12 小时后编辑:这是一个由 3x4 RAID5 和 RAID0 组成的池,共制作了 7 次,总共是 7xRAID0 和 21xRAID5,共 84 个磁盘。此系统不是我发明的,无法更改。dmesg 提示我哪里出了问题,谢谢,现在没问题了,今天安装突然就顺利了
之前:
[ 4603.087139] EXT4-fs (md22): error loading journal
我认为我的一些物理磁盘还存在其他问题 :/
[ 5502.746501] blk_update_request: critical medium error, dev sds, sector 339957760
[ 5502.746602] raid5_end_read_request: 119 callbacks suppressed
[ 5502.746613] md/raid:md5: read error not correctable (sector 339957760 on sds).
[ 5502.746632] md/raid:md5: read error not correctable (sector 339957768 on sds).
[ 5502.746639] md/raid:md5: read error not correctable (sector 339957776 on sds).
[ 5502.746643] md/raid:md5: read error not correctable (sector 339957784 on sds).
[ 5502.746653] md/raid:md5: read error not correctable (sector 339957792 on sds).
[ 5502.746663] md/raid:md5: read error not correctable (sector 339957800 on sds).
[ 5502.746667] md/raid:md5: read error not correctable (sector 339957808 on sds).
[ 5502.746671] md/raid:md5: read error not correctable (sector 339957816 on sds).
[ 5502.746674] md/raid:md5: read error not correctable (sector 339957824 on sds).
[ 5502.746681] md/raid:md5: read error not correctable (sector 339957832 on sds).
[ 5541.012635] sd 0:0:26:0: [sds] tag#27 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 5541.012661] sd 0:0:26:0: [sds] tag#27 Sense Key : Medium Error [current]
[ 5541.012667] sd 0:0:26:0: [sds] tag#27 Add. Sense: Unrecovered read error
[ 5541.012676] sd 0:0:26:0: [sds] tag#27 CDB: Read(16) 88 00 00 00 00 00 14 6a 71 78 00 00 04 00 00 00
[ 5541.012681] blk_update_request: critical medium error, dev sds, sector 342520184
[ 5541.012780] raid5_end_read_request: 118 callbacks suppressed
[ 5541.012786] md/raid:md5: read error not correctable (sector 342520184 on sds).
[ 5541.012795] md/raid:md5: read error not correctable (sector 342520192 on sds).
[ 5541.012799] md/raid:md5: read error not correctable (sector 342520200 on sds).
[ 5541.012803] md/raid:md5: read error not correctable (sector 342520208 on sds).
[ 5541.012807] md/raid:md5: read error not correctable (sector 342520216 on sds).
[ 5541.012810] md/raid:md5: read error not correctable (sector 342520224 on sds).
[ 5541.012814] md/raid:md5: read error not correctable (sector 342520232 on sds).
[ 5541.012817] md/raid:md5: read error not correctable (sector 342520240 on sds).
[ 5541.012821] md/raid:md5: read error not correctable (sector 342520248 on sds).
[ 5541.012824] md/raid:md5: read error not correctable (sector 342520256 on sds).
[ 5544.876259] mpt2sas_cm0: log_info(0x31080000): originator(PL), code(0x08), sub_code(0x0000)
[ 5544.876268] mpt2sas_cm0: log_info(0x31080000): originator(PL), code(0x08), sub_code(0x0000)
[ 5544.876273] mpt2sas_cm0: log_info(0x31080000): originator(PL), code(0x08), sub_code(0x0000)
[ 5544.876276] mpt2sas_cm0: log_info(0x31080000): originator(PL), code(0x08), sub_code(0x0000)
[ 5544.876341] sd 0:0:26:0: [sds] tag#27 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 5544.876349] sd 0:0:26:0: [sds] tag#27 Sense Key : Medium Error [current]
[ 5544.876354] sd 0:0:26:0: [sds] tag#27 Add. Sense: Unrecovered read error
[ 5544.876362] sd 0:0:26:0: [sds] tag#27 CDB: Read(16) 88 00 00 00 00 00 14 6a 75 10 00 00 00 08 00 00
[ 5544.876367] blk_update_request: critical medium error, dev sds, sector 342521104
[ 8705.323083] perf: interrupt took too long (2505 > 2500), lowering kernel.perf_event_max_sample_rate to 79750
[18909.385399] sd 0:0:30:0: [sdac] tag#454 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[18909.385427] sd 0:0:30:0: [sdac] tag#454 Sense Key : Medium Error [current]
[18909.385434] sd 0:0:30:0: [sdac] tag#454 Add. Sense: Unrecovered read error
[18909.385442] sd 0:0:30:0: [sdac] tag#454 CDB: Read(16) 88 00 00 00 00 00 3c 7e d0 68 00 00 04 00 00 00
[18909.385458] blk_update_request: critical medium error, dev sdac, sector 1014943848
[18909.385559] raid5_end_read_request: 119 callbacks suppressed
[18909.385569] md/raid:md8: read error not correctable (sector 1014943848 on sdac).
[18909.385580] md/raid:md8: read error not correctable (sector 1014943856 on sdac).
[18909.385588] md/raid:md8: read error not correctable (sector 1014943864 on sdac).
[18909.385592] md/raid:md8: read error not correctable (sector 1014943872 on sdac).
[18909.385595] md/raid:md8: read error not correctable (sector 1014943880 on sdac).
[18909.385601] md/raid:md8: read error not correctable (sector 1014943888 on sdac).
[18909.385611] md/raid:md8: read error not correctable (sector 1014943896 on sdac).
[18909.385619] md/raid:md8: read error not correctable (sector 1014943904 on sdac).
[18909.385623] md/raid:md8: read error not correctable (sector 1014943912 on sdac).
[18909.385626] md/raid:md8: read error not correctable (sector 1014943920 on sdac).