raid6 어레이를 실행하려고 하는데 시작되지 않습니다.
어레이의 간략한 역사: 어레이는 원래 6개의 디스크(각각 8TB)로 구축되었습니다.
mdadm --create --verbose /dev/md1 --level=6 --raid-devices=6 /dev/sdb1 /dev/sde1 /dev/sdg1 /dev/sdh1 /dev/sdi1 /dev/sdj1
디스크 1개를 추가하여 어레이 확장
mdadm -v --grow --raid-devices=7 /dev/md1
그런 다음 gparted에서 파티션 크기를 조정하십시오.
어레이를 확장하기 위해 2개의 디스크를 더 추가했지만 파티션 크기는 아직 조정되지 않았습니다. 부팅 시 어레이가 자동으로 시작되었지만 지금은 시작되지 않습니다.
mdadm: failed to start array /dev/md1: Input/output error
다음은 기타 관련 출력입니다.
s:~$ mdadm --detail /dev/md1
/dev/md1:
Version : 1.2
Creation Time : Wed Aug 25 16:25:06 2021
Raid Level : raid6
Used Dev Size : 18446744073709551615
Raid Devices : 9
Total Devices : 8
Persistence : Superblock is persistent
Update Time : Wed Oct 6 16:45:06 2021
State : active, FAILED, Not Started
Active Devices : 8
Working Devices : 8
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 512K
Consistency Policy : unknown
Name : Octavius:1 (local to host Octavius)
UUID : 80bd1af7:20800c35:be64a577:8b62e937
Events : 198308
Number Major Minor RaidDevice State
- 0 0 0 removed
- 0 0 1 removed
- 0 0 2 removed
- 0 0 3 removed
- 0 0 4 removed
- 0 0 5 removed
- 0 0 6 removed
- 0 0 7 removed
- 0 0 8 removed
- 8 177 5 sync /dev/sdl1
- 8 161 4 sync /dev/sdk1
- 8 145 3 sync /dev/sdj1
- 8 129 2 sync /dev/sdi1
- 8 97 1 sync /dev/sdg1
- 8 49 7 sync /dev/sdd1
- 8 33 0 sync /dev/sdc1
- 8 17 6 sync /dev/sdb1
/dev/sda1은 이 배열의 구성원이어야 하지만 누락되었습니다. 왜 삭제된 장치가 모두 표시되는지 모르겠습니다.
s:~$ sudo mdadm --examine /dev/sda1
/dev/sda1:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : 80bd1af7:20800c35:be64a577:8b62e937
Name : Octavius:1 (local to host Octavius)
Creation Time : Wed Aug 25 16:25:06 2021
Raid Level : raid6
Raid Devices : 9
Avail Dev Size : 15627798528 (7451.92 GiB 8001.43 GB)
Array Size : 54697251840 (52163.36 GiB 56009.99 GB)
Used Dev Size : 15627786240 (7451.91 GiB 8001.43 GB)
Data Offset : 251904 sectors
Super Offset : 8 sectors
Unused Space : before=251824 sectors, after=12288 sectors
State : active
Device UUID : 9bddd5dd:790156b1:7b8e38d3:37558974
Internal Bitmap : 8 sectors from superblock
Update Time : Wed Oct 6 16:45:06 2021
Bad Block Log : 512 entries available at offset 40 sectors
Checksum : b23ecdf9 - correct
Events : 0
Layout : left-symmetric
Chunk Size : 512K
Device Role : spare
Array State : AAAAAAAA. ('A' == active, '.' == missing, 'R' == replacing)
s:~$ sudo mdadm --examine /dev/sdb1
/dev/sdb1:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : 80bd1af7:20800c35:be64a577:8b62e937
Name : Octavius:1 (local to host Octavius)
Creation Time : Wed Aug 25 16:25:06 2021
Raid Level : raid6
Raid Devices : 9
Avail Dev Size : 15627798528 (7451.92 GiB 8001.43 GB)
Array Size : 54697251840 (52163.36 GiB 56009.99 GB)
Used Dev Size : 15627786240 (7451.91 GiB 8001.43 GB)
Data Offset : 251904 sectors
Super Offset : 8 sectors
Unused Space : before=251824 sectors, after=12288 sectors
State : active
Device UUID : ffa868e4:ee48f113:bd015c5c:7f92f378
Internal Bitmap : 8 sectors from superblock
Update Time : Wed Oct 6 16:45:06 2021
Bad Block Log : 512 entries available at offset 40 sectors
Checksum : a8fd97fc - correct
Events : 198308
Layout : left-symmetric
Chunk Size : 512K
Device Role : Active device 6
Array State : AAAAAAAA. ('A' == active, '.' == missing, 'R' == replacing)
어레이의 다른 모든 장치에 대한 출력은 /dev/sdb1과 동일합니다.
도움이나 조언이 있으면 도움이 될 수 있으며 도움이 될 수 있는 다른 결과를 제공할 수 있습니다.
답변1
그래서 문제가 어떻게 발생했는지는 모르겠지만 문제를 알아낸 것 같습니다.
모든 다이빙이 백업으로 표시된다는 사실을 놓쳤습니다.
:~$ sudo mdadm --stop /dev/md1
mdadm: stopped /dev/md1
:~$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md1 : inactive sdi1[2](S) sda1[9](S) sdc1[0](S) sdl1[5](S) sdb1[6](S) sdk1[4](S) sdj1[3](S) sdg1[1](S) sdd1[8](S)
70325093376 blocks super 1.2
그래서 나는 과감히(백업되지 않은 소량의 데이터가 손실될 위험은 적음) 어레이를 중지하고 강제로 조립하겠다고 생각했습니다. 이제 어레이가 재구축되고 있으며 데이터는 괜찮아 보입니다.
:~$ sudo mdadm --assemble --force /dev/md1 /dev/sda1 /dev/sdi1 /dev/sdc1 /dev/sdl1 /dev/sdb1 /dev/sdk1 /dev/sdj1 /dev/sdg1 /dev/sdd1 --verbose
mdadm: looking for devices for /dev/md1
mdadm: /dev/sda1 is identified as a member of /dev/md1, slot -1.
mdadm: /dev/sdi1 is identified as a member of /dev/md1, slot 2.
mdadm: /dev/sdc1 is identified as a member of /dev/md1, slot 0.
mdadm: /dev/sdl1 is identified as a member of /dev/md1, slot 5.
mdadm: /dev/sdb1 is identified as a member of /dev/md1, slot 6.
mdadm: /dev/sdk1 is identified as a member of /dev/md1, slot 4.
mdadm: /dev/sdj1 is identified as a member of /dev/md1, slot 3.
mdadm: /dev/sdg1 is identified as a member of /dev/md1, slot 1.
mdadm: /dev/sdd1 is identified as a member of /dev/md1, slot 7.
mdadm: Marking array /dev/md1 as 'clean'
mdadm: added /dev/sdg1 to /dev/md1 as 1
mdadm: added /dev/sdi1 to /dev/md1 as 2
mdadm: added /dev/sdj1 to /dev/md1 as 3
mdadm: added /dev/sdk1 to /dev/md1 as 4
mdadm: added /dev/sdl1 to /dev/md1 as 5
mdadm: added /dev/sdb1 to /dev/md1 as 6
mdadm: added /dev/sdd1 to /dev/md1 as 7
mdadm: no uptodate device for slot 8 of /dev/md1
mdadm: added /dev/sda1 to /dev/md1 as -1
mdadm: added /dev/sdc1 to /dev/md1 as 0
mdadm: /dev/md1 has been started with 8 drives (out of 9) and 1 spare.
:~$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md1 : active raid6 sdc1[0] sda1[9] sdd1[8] sdb1[6] sdl1[5] sdk1[4] sdj1[3] sdi1[2] sdg1[1]
54697251840 blocks super 1.2 level 6, 512k chunk, algorithm 2 [9/8] [UUUUUUUU_]
[>....................] recovery = 0.0% (1019952/7813893120) finish=1276.6min speed=101997K/sec
bitmap: 10/59 pages [40KB], 65536KB chunk
나는 이것을 다른 유사한 문제를 해결하기 위한 제안으로 받아들였지만 내 어레이의 상태(활성, 실패, 시작되지 않음)가 내가 찾을 수 있는 모든 예와 다르며 처음에는 강제 옵션이 마음에 들지 않습니다.
이것이 미래에 누군가에게 도움이 되기를 바랍니다...