2개의 RAID1 어레이를 성공적으로 실행하는 Ubuntu 20.04 서버가 있습니다.
오래된 디스크를 파기하기 전에 백업할지 여부를 결정하기 전에 확인하고 싶은 오래된 디스크가 많이 있습니다.
SATA to USB 상자를 통해 디스크를 서버에 연결했습니다.
일부 디스크는 RAID5 어레이의 일부이고 USB 상자만 있으므로 적어도 내용을 검사할 수 있도록 디스크를 마운트하려고 합니다. 읽기 전용 보기만 가능합니다.
디스크를 연결하면 다음 lsblk
이 제공됩니다.
sdf 8:80 0 465.8G 0 disk
├─sdf1 8:81 0 290.2M 0 part
├─sdf2 8:82 0 486.4M 0 part
├─sdf4 8:84 0 1K 0 part
├─sdf5 8:85 0 133.3M 0 part
└─sdf6 8:86 0 464.8G 0 part
나는 fdisk -l
얻다:
fdisk -l /dev/sdf
Disk /dev/sdf: 465.78 GiB, 500107862016 bytes, 976773168 sectors
Disk model: 00AAKS-00A7B0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
Disklabel type: dos
Disk identifier: 0xce16e76e
Device Boot Start End Sectors Size Id Type
/dev/sdf1 63 594404 594342 290.2M 83 Linux
/dev/sdf2 594405 1590434 996030 486.4M 83 Linux
/dev/sdf4 1590435 976768064 975177630 465G 5 Extended
/dev/sdf5 1590498 1863539 273042 133.3M 82 Linux swap / Solaris
/dev/sdf6 1863603 976494959 974631357 464.8G 83 Linux
Partition 1 does not start on physical sector boundary.
Partition 2 does not start on physical sector boundary.
Partition 4 does not start on physical sector boundary.
Partition 5 does not start on physical sector boundary.
Partition 6 does not start on physical sector boundary.
cat /proc/mdstat
내가 보기 에 :
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md123 : inactive sdf6[0](S)
487315584 blocks
md124 : inactive sdf1[2](S)
297088 blocks
md125 : inactive sdf2[1](S)
497920 blocks
md126 : active raid1 sdg2[1]
1932533488 blocks super 1.0 [2/1] [_U]
md127 : inactive sdh1[0](S) sdg1[1](S)
41961600 blocks
스캔한 다음 조립하고 설치해 보았습니다.
mdadm --detail --scan /dev/md123
다음을 제공합니다:
INACTIVE-ARRAY /dev/md123 metadata=0.90 UUID=9b990924:10915d87:0073689c:05407c1c
달리기mdadm --assemble --force /dev/md123 /dev/sdf6
mdadm: /dev/sdf6 is busy - skipping
마운트를 시도해보세요:
mount /dev/md124 /mnt/usb/usb6
mount: /mnt/usb/usb6: can't read superblock on /dev/md124.
파라마운트 복구를 실행해 보았지만 동일한 유형의 파일을 폴더에 덤프하고 이름이 유지되지 않습니다.
foremost -dvT -i /dev/sdf6 -o /mnt/md0/share01/Backups/aa
콘텐츠를 가져올 수 있도록 디스크를 마운트하려면 또 무엇을 할 수 있나요?
RAID5가 백업을 대체할 수는 없다는 것을 알고 있지만 어떤 도움이라도 좋을 것입니다.
고쳐 쓰다
출력 mdadm --examine /dev/md*
(이 디스크의 경우):
MBR Magic : aa55
Partition[0] : 594342 sectors at 63 (type 83)
Partition[1] : 996030 sectors at 594405 (type 83)
Partition[3] : 975177630 sectors at 1590435 (type 05)
/dev/sdf1:
Magic : a92b4efc
Version : 0.90.00
UUID : c095f89e:9b0361e2:811403e5:de6bdc08
Creation Time : Fri May 30 10:44:30 2008
Raid Level : raid1
Used Dev Size : 297088 (290.13 MiB 304.22 MB)
Array Size : 297088 (290.13 MiB 304.22 MB)
Raid Devices : 4
Total Devices : 3
Preferred Minor : 0
Update Time : Sat Jul 23 04:52:57 2011
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 1
Spare Devices : 0
Checksum : fab347e0 - correct
Events : 871
Number Major Minor RaidDevice State
this 2 8 1 2 active sync /dev/sda1
0 0 8 33 0 active sync
1 1 8 17 1 active sync
2 2 8 1 2 active sync /dev/sda1
3 3 0 0 3 faulty removed
/dev/sdf2:
Magic : a92b4efc
Version : 0.90.00
UUID : 368a4374:23c334f1:cb272099:0827c1c2
Creation Time : Fri May 30 10:44:31 2008
Raid Level : raid1
Used Dev Size : 497920 (486.25 MiB 509.87 MB)
Array Size : 497920 (486.25 MiB 509.87 MB)
Raid Devices : 4
Total Devices : 3
Preferred Minor : 1
Update Time : Sat Jul 23 04:57:37 2011
State : active
Active Devices : 3
Working Devices : 3
Failed Devices : 1
Spare Devices : 0
Checksum : 707d0f08 - correct
Events : 54762505
Number Major Minor RaidDevice State
this 1 8 2 1 active sync /dev/sda2
0 0 8 34 0 active sync
1 1 8 2 1 active sync /dev/sda2
2 2 8 18 2 active sync
3 3 0 0 3 faulty removed
/dev/sdf4:
MBR Magic : aa55
Partition[0] : 273042 sectors at 63 (type 82)
Partition[1] : 974631420 sectors at 273105 (type 05)
mdadm: No md superblock detected on /dev/sdf5.
/dev/sdf6:
Magic : a92b4efc
Version : 0.90.00
UUID : 9b990924:10915d87:0073689c:05407c1c
Creation Time : Fri May 30 03:26:54 2008
Raid Level : raid5
Used Dev Size : 487315584 (464.74 GiB 499.01 GB)
Array Size : 1461946752 (1394.22 GiB 1497.03 GB)
Raid Devices : 4
Total Devices : 3
Preferred Minor : 2
Update Time : Sat Jul 23 12:45:47 2011
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 1
Spare Devices : 0
Checksum : 10f1fb29 - correct
Events : 20490276
Layout : left-symmetric
Chunk Size : 64K
Number Major Minor RaidDevice State
this 0 8 38 0 active sync
0 0 8 38 0 active sync
1 1 8 54 1 active sync
2 2 8 70 2 active sync
3 3 0 0 3 faulty removed