디스크 오류가 발생한 후 RAID 10 시스템이 RAID 0으로 다운그레이드되어 비활성화되었습니다. 구성 요소(/dev/sda, /dev/sdb, /dev/sdc, /dev/sdd)와 함께 ubuntu 18.04에서 실행됩니다. 고장난 디스크(/dev/sda)를 교체하고 데이터 손실 없이 RAID 10 시스템을 재조립하려면 어떻게 해야 합니까?
mdadm을 사용하여 시스템을 조립하려는 시도가 다음 오류와 함께 실패합니다.
sudo mdadm --assemble /dev/md126 --uuid abaac928:7741653b:cf17fcec:bf6572d3 --verbose
mdadm: looking for devices for /dev/md126
mdadm: no recogniseable superblock on /dev/md/ubuntu-server:0
mdadm: no recogniseable superblock on /dev/sdg2
mdadm: no recogniseable superblock on /dev/sdg1
mdadm: Cannot assemble mbr metadata on /dev/sdg
mdadm: /dev/sdf has wrong uuid.
mdadm: /dev/sde has wrong uuid.
mdadm: No super block found on /dev/sda (Expected magic a92b4efc, got 00000000)
mdadm: no RAID superblock on /dev/sda
mdadm: No super block found on /dev/loop1 (Expected magic a92b4efc, got b4d75336)
mdadm: no RAID superblock on /dev/loop1
mdadm: No super block found on /dev/loop0 (Expected magic a92b4efc, got b4d75336)
mdadm: no RAID superblock on /dev/loop0
mdadm: /dev/sdd is identified as a member of /dev/md126, slot 2.
mdadm: /dev/sdc is identified as a member of /dev/md126, slot 1.
mdadm: /dev/sdb is identified as a member of /dev/md126, slot 0.
mdadm: added /dev/sdc to /dev/md126 as 1
mdadm: added /dev/sdd to /dev/md126 as 2 (possibly out of date)
mdadm: no uptodate device for slot 3 of /dev/md126
mdadm: added /dev/sdb to /dev/md126 as 0
mdadm: /dev/md126 assembled from 2 drives - not enough to start the array.
시스템의 나머지 3개 디스크는 /dev/sdb, /dev/sdc 및 /dev/sdd입니다. 다음은 /dev/sd[bcd] 디스크의 상태입니다.
sudo mdadm --examine /dev/sdd
/dev/sdd:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : abaac928:7741653b:cf17fcec:bf6572d3
Name : ubuntu-server:0
Creation Time : Wed Jan 8 22:10:46 2020
Raid Level : raid10
Raid Devices : 4
Avail Dev Size : 7813772976 (3725.90 GiB 4000.65 GB)
Array Size : 7813772288 (7451.79 GiB 8001.30 GB)
Used Dev Size : 7813772288 (3725.90 GiB 4000.65 GB)
Data Offset : 264192 sectors
Super Offset : 8 sectors
Unused Space : before=264112 sectors, after=688 sectors
State : clean
Device UUID : dd5aab0c:b1799a3f:78f4f65f:c89e538b
Internal Bitmap : 8 sectors from superblock
Update Time : Fri Apr 28 23:45:11 2023
Bad Block Log : 512 entries available at offset 40 sectors
Checksum : b2a92143 - correct
Events : 1912260
Layout : near=2
Chunk Size : 512K
Device Role : Active device 2
Array State : AAA. ('A' == active, '.' == missing, 'R' == replacing)
고장난 디스크 /dev/sda를 교체했지만 RAID 10이 인식되지 않아 시스템에 연결할 수 없습니다.
데이터를 복구하기 위해 어레이를 조립하고 다시 RAID 10으로 인식하는 방법에 대한 도움이 필요합니다.