센토스 7. 재부팅 후 SoftRAID 10이 손상되었습니다.
Raid 10 및 ext4(1,2)를 만들었습니다. 표준 절차 후에 전체 배열을 수행했습니다.동맹을 맺으세요부서(3). 나 한테 묻지마. 그 후 4개월의 작업이 흘렀습니다. 재부팅 후 Raid가 시작되지 않습니다(4). 현재 저는 어레이의 전체 섹터 복사를 수행하고 있습니다. 안타깝게도 데이터 백업은 2개월 전의 것입니다. 지난 4개월 동안 컴퓨터를 다시 시작하지 않았습니다.
질문:RAID를 복원하는 방법은 무엇입니까? 정렬로 인해 RAID 손상이 발생합니까? 그렇다면 어떻게 다시 받을 수 있나요?
1. mdadm --create --verbose /dev/md0 --level=10 --raid-devices=4 /dev/sda /dev/sdb /dev/sdc /dev/sdd
2. mkfs.ext4 -F /dev/md0
3. parted -a optimal /dev/md0
- mdadm --details/dev/md0
/dev/md0:
Version : 1.2
Raid Level : raid0
Total Devices : 2
Persistence : Superblock is persistent
State : inactive
Name : clustera.lab:0 (local to host clustera.lab)
UUID : def60eb0:d92a0ca5:5297ab23:446fdcdc
Events : 140006
Number Major Minor RaidDevice
- 8 32 - /dev/sdc
- 8 48 - /dev/sdd
고양이 /proc/mdstat
Personalities :
md0 : inactive sdd[3](S) sdc[2](S)
27344502784 blocks super 1.2
unused devices: <none>
fdisk -l
Disk /dev/sda: 14000.5 GB, 14000519643136 bytes, 27344764928 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: gpt
Disk identifier: A8EE15FE-6D52-4559-9DDE-F48143F736F3
# Start End Size Type Name
1 2048 27344762879 12.8T Microsoft basic primary
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/sdb: 14000.5 GB, 14000519643136 bytes, 27344764928 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: gpt
Disk identifier: A8EE15FE-6D52-4559-9DDE-F48143F736F3
# Start End Size Type Name
1 2048 27344762879 12.8T Microsoft basic primary
Disk /dev/sdc: 14000.5 GB, 14000519643136 bytes, 27344764928 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdc1 1 4294967295 2147483647+ ee GPT
Partition 1 does not start on physical sector boundary.
Disk /dev/sdd: 14000.5 GB, 14000519643136 bytes, 27344764928 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdd1 1 4294967295 2147483647+ ee GPT
Partition 1 does not start on physical sector boundary.
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.