Sony Vaio VGN-AW47GH 노트북에서 친구의 데이터를 복구하려고 합니다. 여기에는 Toshiba MK5055GS 2.5인치 500GB HDD(내가 읽은 내용) 한 쌍이 1TB RAID0으로 결합되어 있습니다. 노트북이 더 이상 작동하지 않아서 Ubuntu 14.04 시스템으로 가져오려고 합니다.
/etc/mdadm/mdadm.conf
Ubuntu를 통해 RAID0을 설치할 수 있도록 하려면 파일 구문에 대한 도움이 필요합니다 . mdadm.conf
매뉴얼 페이지와 온라인 검색에서는 이를 조정하는 방법이 명확하지 않았기 때문에 친숙한 누군가가 나에게 올바른 방향을 알려줄 수 있기를 바랍니다 .
그들은 /dev/sda
&로 나타나고 실행 후 /dev/sdb
다음을 얻습니다.mdadm examine/scan
mdadm --assemble --scan
# mdadm --examine --scan /dev/sda
mdadm: ARRAY line /dev/md/imsm0 has no identity information.
ARRAY metadata=imsm UUID=99fcd315:2ac78f08:08014b0a:33f4585f
ARRAY /dev/md/Volume0 container=99fcd315:2ac78f08:08014b0a:33f4585f member=0 UUID=245d2401:2ad11a3c:6edacb92:47ce3340
결과 확인/스캔/dev/sdb
# mdadm --examine --scan /dev/sdb
mdadm: ARRAY line /dev/md/imsm0 has no identity information.
ARRAY metadata=imsm UUID=99fcd315:2ac78f08:08014b0a:33f4585f
ARRAY /dev/md/Volume0 container=99fcd315:2ac78f08:08014b0a:33f4585f member=0 UUID=245d2401:2ad11a3c:6edacb92:47ce3340
--scan 옵션이 없는 결과는 다음과 같습니다.
# mdadm --examine /dev/sda
mdadm: ARRAY line /dev/md/imsm0 has no identity information.
/dev/sda:
Magic : Intel Raid ISM Cfg Sig.
Version : 1.0.00
Orig Family : 08b9238d
Family : 08b9238d
Generation : 00001c59
Attributes : All supported
UUID : 99fcd315:2ac78f08:08014b0a:33f4585f
Checksum : 1b2c84f0 correct
MPB Sectors : 1
Disks : 2
RAID Devices : 1
Disk01 Serial : 9934C0KIT
State : active
Id : 00040000
Usable Size : 976768264 (465.76 GiB 500.11 GB)
[Volume0]:
UUID : 245d2401:2ad11a3c:6edacb92:47ce3340
RAID Level : 0
Members : 2
Slots : [_U]
Failed disk : 0
This Slot : 1
Array Size : 1953536000 (931.52 GiB 1000.21 GB)
Per Dev Size : 976768264 (465.76 GiB 500.11 GB)
Sector Offset : 0
Num Stripes : 3815500
Chunk Size : 128 KiB
Reserved : 0
Migrate State : idle
Map State : normal
Dirty State : clean
Disk00 Serial : 9934C0KJT
State : active failed
Id : 00000000
Usable Size : 976768264 (465.76 GiB 500.11 GB)[/CODE]
/dev/sdb 결과 확인
# mdadm --examine /dev/sdb
mdadm: ARRAY line /dev/md/imsm0 has no identity information.
/dev/sdb:
Magic : Intel Raid ISM Cfg Sig.
Version : 1.0.00
Orig Family : 08b9238d
Family : 08b9238d
Generation : 00001c59
Attributes : All supported
UUID : 99fcd315:2ac78f08:08014b0a:33f4585f
Checksum : 1b2c84f0 correct
MPB Sectors : 1
Disks : 2
RAID Devices : 1
[Volume0]:
UUID : 245d2401:2ad11a3c:6edacb92:47ce3340
RAID Level : 0
Members : 2
Slots : [_U]
Failed disk : 0
This Slot : ?
Array Size : 1953536000 (931.52 GiB 1000.21 GB)
Per Dev Size : 976768264 (465.76 GiB 500.11 GB)
Sector Offset : 0
Num Stripes : 3815500
Chunk Size : 128 KiB
Reserved : 0
Migrate State : idle
Map State : normal
Dirty State : clean
Disk00 Serial : 9934C0KJT
State : active failed
Id : 00000000
Usable Size : 976766862 (465.76 GiB 500.10 GB)
Disk01 Serial : 9934C0KIT
State : active
Id : 00040000
Usable Size : 976766862 (465.76 GiB 500.10 GB)
dev에 /dev/md/Volume0 파일이 없는 것 같습니다. 이제 일부 md 파일이 있습니다.
# ls -la /dev/md* | grep md
brw-rw---- 1 root disk 9, 126 May 24 22:05 /dev/md126
brw-rw---- 1 root disk 9, 127 May 25 22:27 /dev/md127
/dev/md:
lrwxrwxrwx 1 root root 8 May 25 22:27 imsm0 -> ../md127
/dev/md126의 경우
# mdadm --examine --scan /dev/md126
mdadm: ARRAY line /dev/md/imsm0 has no identity information.
/dev/md17의 경우
# mdadm --examine --scan /dev/md127
mdadm: ARRAY line /dev/md/imsm0 has no identity information.
ARRAY metadata=imsm UUID=99fcd315:2ac78f08:08014b0a:33f4585f
ARRAY /dev/md/Volume0 container=99fcd315:2ac78f08:08014b0a:33f4585f member=0 UUID=245d2401:2ad11a3c:6edacb92:47ce3340
요청 시 제공되는 추가 진단 정보:
# mdadm --assemble --scan
mdadm: ARRAY line /dev/md/imsm0 has no identity information.
mdadm: Container /dev/md126 has been assembled with 2 drives
# cat /proc/mdstat
Personalities : [raid10] [raid1] [raid6] [raid5] [raid4] [linear] [multipath] [raid0]
md126 : inactive sdb[1](S) sda[0](S)
5605 blocks super external:imsm
unused devices: <none>
# ls -la /dev/md*
brw-rw---- 1 root disk 9, 126 Jun 8 19:46 /dev/md126
# mount -o ro /dev/md126 /mnt
mount: /dev/md126: can't read superblock
# mdadm --stop /dev/md126
mdadm: stopped /dev/md126
# mdadm --assemble /dev/md0 --verbose --force /dev/sd[ab]
mdadm: looking for devices for /dev/md0
mdadm: /dev/sda is identified as a member of /dev/md0, slot -1.
mdadm: /dev/sdb is identified as a member of /dev/md0, slot -1.
mdadm: Marking array /dev/md0 as 'clean'
mdadm: added /dev/sdb to /dev/md0 as -1
mdadm: added /dev/sda to /dev/md0 as -1
mdadm: Container /dev/md0 has been assembled with 2 drives
# cat /proc/mdstat
Personalities : [raid10] [raid1] [raid6] [raid5] [raid4] [linear] [multipath] [raid0]
md0 : inactive sda[1](S) sdb[0](S)
5605 blocks super external:imsm
unused devices: <none>
# mdadm --readonly /dev/md0
# mount -o ro /dev/md0 /mnt
mount: /dev/md0: can't read superblock
2016년 12월 6일 업데이트됨
재부팅으로 인해 장치가 sda 및 sdb에서 sdg 및 sdi로 다시 섞였습니다. 죄송합니다. 모든 것을 중지하고 다음과 같이 실행하기 전까지는 -I 옵션을 시도할 기회가 없었습니다. IMSM_NO_PLATFORM 환경 설정도 포함했는데 재부팅 시 기본적으로 어디에 설정되어 있는지 잊어버렸습니다.
# export IMSM_NO_PLATFORM=1 # Allow mdadm to access/modify an IMSM array
# mdadm --stop /dev/md0
# mdadm -I /dev/sdg --verbose
mdadm: container /dev/md/imsm0 now has 1 device
mdadm: not enough devices to start the container
# mdadm -I /dev/sdi --verbose
mdadm: container /dev/md/imsm0 now has 2 devices
mdadm: not enough devices to start the container
# mdadm --query --detail /dev/md/imsm0
/dev/md/imsm0:
Version : imsm
Raid Level : container
Total Devices : 2
Working Devices : 2
UUID : 99fcd315:2ac78f08:08014b0a:33f4585f
Member Arrays :
Number Major Minor RaidDevice
0 8 96 - /dev/sdg
1 8 128 - /dev/sdi
# mdadm --query /dev/md/imsm0
/dev/md/imsm0: 0.00KiB (null) 0 devices, 2 spares. Use mdadm --detail for more detail.
# mdadm -I /dev/md/imsm0 --verbose
mdadm: not enough devices to start the container
# mdadm --assemble --scan
mdadm: array /dev/md/Volume0_0 now has 1 device
mdadm: No arrays found in config file or automatically
# ls -la /dev/md*
brw-rw---- 1 root disk 9, 126 Jun 12 17:02 /dev/md126
brw-rw---- 1 root disk 9, 127 Jun 12 17:00 /dev/md127
/dev/md:
total 0
drwxr-xr-x 2 root root 60 Jun 12 17:00 .
drwxr-xr-x 18 root root 5000 Jun 12 17:02 ..
lrwxrwxrwx 1 root root 8 Jun 12 17:00 imsm0 -> ../md127
# mdadm --query --detail /dev/md126
/dev/md126:
Container : /dev/md/imsm0, member 0
Raid Level : raid0
Raid Devices : 2
Total Devices : 1
State : active, FAILED, Not Started
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
Chunk Size : 128K
UUID : 245d2401:2ad11a3c:6edacb92:47ce3340
Number Major Minor RaidDevice State
0 0 0 0 removed
0 8 96 1 active sync /dev/sdg
따라서 누락된(제거된) 장치와 일반 /dev/sdg 장치가 있는 imsm0 컨테이너에 액세스한 것 같습니다. 분실한 장치를 식별하고 다시 추가하는 방법에 대한 아이디어가 있나요?
모든 (건설적인) 의견에 크게 감사드립니다!