오래 전에 JMicron JMB363 카드의 부팅 메뉴에서 RAID1 쌍을 만들었습니다. Windows에서는 모두 잘 작동했고 RAID1 어레이는 단일 디스크로 인식되었습니다. 디스크에 어떤 파티션이 있었는지는 정확히 기억나지 않지만 Windows에서 미러가 작동할 때에만 사용된 NTFS 파티션이 하나 있었던 것은 확실합니다.
최근에 OS를 Windows에서 Linux로 옮겼는데 더 이상 NTFS 파티션을 사용할 수 없습니다. 두 디스크가 예상대로 파티션 관점에서 동일하다는 것을 알 수 있습니다.
#lsblk --fs
...
sdb linux_raid_member 1.2 MyRAIDLabel <uuid>
└─md127
sdc linux_raid_member 1.2 MyRAIDLabel <uuid>
└─md127
이 fdisk
명령은 디스크 쌍의 NTFS 파티션을 표시합니다.
#fdisk -l
Disk /dev/sdc: 465.76 GiB, 500107862016 bytes, 976773168 sectors
...
Device Boot Start End Sectors Size Id Type
/dev/sdc1 2048 204802047 204800000 97.7G 7 HPFS/NTFS/exFAT
Disk /dev/sdb: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: ST500DM002-1BD14
...
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 204802047 204800000 97.7G 7 HPFS/NTFS/exFAT
그러나 이상하게도 파일 시스템에는 /dev/sdb1
or 가 없고 /dev/sdc1
오직 /dev/sdb
and 만 있습니다 /dev/sdc
. 따라서 NTFS 파티션은 "숨겨진" 것처럼 보입니다.
장치 도 md
표시됩니다
...
Disk /dev/md127: 465.64 GiB, 499973619712 bytes, 976510976 sectors
...
그러나 내가 아는 한 md
소프트웨어를 통해 여러 디스크로 RAID를 달성하는 데 사용됩니다. JMicron 카드가 두 디스크 간의 동기화를 처리했는지 아니면 Windows 드라이버에서 처리했는지 이해할 수 없습니다. 질문은 다음과 같습니다.
카드가 RAID 어레이를 처리할 때에도 Linux md를 사용해야 합니까?
마운트하려고 하면 /dev/md127
오류가 발생합니다.
#mount -t auto -o loop /dev/md127 /mnt/raid
mount: /mnt/raid: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
마운트하려고 하거나 /dev/sdb
다른 /dev/sdc
오류가 발생하는 경우:
mount: /mnt/raid: unknown filesystem type 'linux_raid_member'
또 다른 설명할 수 없는 점은 두 디스크 장치에서 처음 16바이트를 읽으면 그 결과와 다른 결과가 나온다는 것입니다 md
.
# hexdump -C -n 16 /dev/md127
00000000 20 69 6e 20 6f 72 67 2e 61 70 61 63 68 65 2e 68 | in org.apache.h|
00000010
# hexdump -C -n 16 /dev/sdb
00000000 33 c0 8e d0 bc 00 7c 8e c0 8e d8 be 00 7c bf 00 |3.....|......|..|
00000010
# hexdump -C -n 16 /dev/sdc
00000000 33 c0 8e d0 bc 00 7c 8e c0 8e d8 be 00 7c bf 00 |3.....|......|..|
00000010
md
장치가 파일 콘텐츠로 시작하는 것 같습니다 .
어떻게 가능합니까?
어레이의 데이터를 어떻게 복구할 수 있습니까?
추가 md
자료:
다음은 파일에 보고된 몇 가지 추가 정보입니다 mdstat
.
#cat /proc/mdstat
Personalities : [raid1]
md127 : active (auto-read-only) raid1 sdb[1] sdc[0]
488255488 blocks super 1.2 [2/2] [UU]
bitmap: 0/4 pages [0KB], 65536KB chunk
unused devices: <none>
출력은 다음과 같습니다 mdadm
.
mdadm --detail /dev/md127
/dev/md127:
Version : 1.2
Creation Time : Sun Sep 7 17:57:53 2014
Raid Level : raid1
Array Size : 488255488 (465.64 GiB 499.97 GB)
Used Dev Size : 488255488 (465.64 GiB 499.97 GB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Sat Feb 25 20:21:09 2023
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Consistency Policy : bitmap
Name : MirrorRAID:0
UUID : 95f02fbb:71f61cca:e24e932f:2dcfc5e0
Events : 150294
Number Major Minor RaidDevice State
0 8 32 0 active sync /dev/sdc
1 8 16 1 active sync /dev/sdb
#mdadm --examine /dev/sdb
/dev/sdb:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : 95f02fbb:71f61cca:e24e932f:2dcfc5e0
Name : MirrorRAID:0
Creation Time : Sun Sep 7 17:57:53 2014
Raid Level : raid1
Raid Devices : 2
Avail Dev Size : 976511024 sectors (465.64 GiB 499.97 GB)
Array Size : 488255488 KiB (465.64 GiB 499.97 GB)
Used Dev Size : 976510976 sectors (465.64 GiB 499.97 GB)
Data Offset : 262144 sectors
Super Offset : 8 sectors
Unused Space : before=262056 sectors, after=48 sectors
State : clean
Device UUID : 934abcd2:ead8a42a:ca23dd27:cd380990
Internal Bitmap : 8 sectors from superblock
Update Time : Sat Feb 25 20:21:09 2023
Bad Block Log : 512 entries available at offset 72 sectors
Checksum : 87fc2008 - correct
Events : 150294
Device Role : Active device 1
Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
#mdadm --examine /dev/sdc
/dev/sdc:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : 95f02fbb:71f61cca:e24e932f:2dcfc5e0
Name : MirrorRAID:0
Creation Time : Sun Sep 7 17:57:53 2014
Raid Level : raid1
Raid Devices : 2
Avail Dev Size : 976511024 sectors (465.64 GiB 499.97 GB)
Array Size : 488255488 KiB (465.64 GiB 499.97 GB)
Used Dev Size : 976510976 sectors (465.64 GiB 499.97 GB)
Data Offset : 262144 sectors
Super Offset : 8 sectors
Unused Space : before=262056 sectors, after=48 sectors
State : clean
Device UUID : ce4a6223:22a98469:8486de1b:16f34071
Internal Bitmap : 8 sectors from superblock
Update Time : Sat Feb 25 20:21:09 2023
Bad Block Log : 512 entries available at offset 72 sectors
Checksum : ecbb0d7c - correct
Events : 150294
Device Role : Active device 0
Array State : AA ('A' == active, '.' == missing, 'R' == replacing)