从损坏的 RAID 1 驱动器恢复数据

从损坏的 RAID 1 驱动器恢复数据

我需要从 Buffalo NAS Linkstation 保存文件,该 Linkstation 有两个不再工作的物理驱动器(每个 2TB,Raid 1)。错误消息显示:

硬盘中的坏道可能已达到危险程度。请更换硬盘。

我从 NAS 中移除了两个驱动器,并尝试按照以下步骤通过 USB 适配器将驱动器外部连接到我的计算机:

  1. mdadm --assemble --readonly /dev/md0 /dev/sdc6
  2. mount /dev/md0

对于驱动器 1,这很好用。我可以访问这些文件。但是:磁盘 1 上没有相关数据。似乎文件不再同步了。

不幸的是,这些步骤不适用于第二个驱动器。我收到以下错误:

mdadm:/dev/sdc6 上没有可识别的超级块 mdadm:/dev/sdc6 没有超级块 - 汇编中止

我是 Linux 新手,不知道下一步该怎么做。 有没有可能从崩溃的驱动器中恢复文件?


一些附加信息:

lsblk:

sdc                       8:32   0   1,8T  0 disk  
├─sdc1                    8:33   0   977M  0 part  
├─sdc2                    8:34   0   4,8G  0 part  
├─sdc3                    8:35   0     1M  0 part  
├─sdc4                    8:36   0     1M  0 part  
├─sdc5                    8:37   0   977M  0 part  
└─sdc6                    8:38   0   1,8T  0 part  

dmesg:

[  867.209205]  sdc: sdc1 sdc2 sdc3 sdc4 sdc5 sdc6
[  867.210767] sd 3:0:0:0: [sdc] Attached SCSI disk
[  868.000588] sd 3:0:0:0: [sdc] tag#17 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  868.000591] sd 3:0:0:0: [sdc] tag#17 Sense Key : Hardware Error [current] 
[  868.000594] sd 3:0:0:0: [sdc] tag#17 Add. Sense: Internal target failure
[  868.000597] sd 3:0:0:0: [sdc] tag#17 CDB: Read(10) 28 00 00 1e 90 08 00 00 08 00
[  868.000599] print_req_error: critical target error, dev sdc, sector 2002952
[  868.000634] sd 3:0:0:0: [sdc] tag#18 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  868.000637] sd 3:0:0:0: [sdc] tag#18 Sense Key : Hardware Error [current] 
[  868.000641] sd 3:0:0:0: [sdc] tag#18 Add. Sense: Internal target failure
[  868.000644] sd 3:0:0:0: [sdc] tag#18 CDB: Read(10) 28 00 00 b7 28 80 00 00 08 00
[  868.000646] print_req_error: critical target error, dev sdc, sector 12003456
[  868.000700] sd 3:0:0:0: [sdc] tag#16 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  868.000701] sd 3:0:0:0: [sdc] tag#16 Sense Key : Hardware Error [current] 
[  868.000702] sd 3:0:0:0: [sdc] tag#16 Add. Sense: Internal target failure
[  868.000703] sd 3:0:0:0: [sdc] tag#16 CDB: Read(10) 28 00 00 1e 8f f8 00 00 08 00
[  868.000704] print_req_error: critical target error, dev sdc, sector 2002936
[  868.000712] sd 3:0:0:0: [sdc] tag#19 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  868.000713] sd 3:0:0:0: [sdc] tag#19 Sense Key : Hardware Error [current] 
[  868.000715] sd 3:0:0:0: [sdc] tag#19 Add. Sense: Internal target failure
[  868.000717] sd 3:0:0:0: [sdc] tag#19 CDB: Read(10) 28 00 e7 e6 5a 58 00 00 08 00
[  868.000718] print_req_error: critical target error, dev sdc, sector 3890633304
[  868.000731] sd 3:0:0:0: [sdc] tag#20 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  868.000733] sd 3:0:0:0: [sdc] tag#20 Sense Key : Hardware Error [current] 
[  868.000734] sd 3:0:0:0: [sdc] tag#20 Add. Sense: Internal target failure
[  868.000736] sd 3:0:0:0: [sdc] tag#20 CDB: Read(10) 28 00 00 b7 30 00 00 00 08 00
[  868.000737] print_req_error: critical target error, dev sdc, sector 12005376
[  868.000747] sd 3:0:0:0: [sdc] tag#25 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  868.000749] sd 3:0:0:0: [sdc] tag#25 Sense Key : Hardware Error [current] 
[  868.000751] sd 3:0:0:0: [sdc] tag#25 Add. Sense: Internal target failure
[  868.000753] sd 3:0:0:0: [sdc] tag#25 CDB: Read(10) 28 00 00 d5 bf f0 00 00 08 00
[  868.000753] print_req_error: critical target error, dev sdc, sector 14008304
[  868.658878] sd 3:0:0:0: [sdc] tag#17 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  868.658884] sd 3:0:0:0: [sdc] tag#17 Sense Key : Illegal Request [current] 
[  868.658889] sd 3:0:0:0: [sdc] tag#17 Add. Sense: Invalid field in cdb
[  868.658894] sd 3:0:0:0: [sdc] tag#17 CDB: Read(10) 28 00 00 1e 90 08 00 00 08 00
[  868.658898] print_req_error: critical target error, dev sdc, sector 2002952
[  868.658911] Buffer I/O error on dev sdc2, logical block 1, async page read
[  868.659015] sd 3:0:0:0: [sdc] tag#16 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  868.659021] sd 3:0:0:0: [sdc] tag#16 Sense Key : Illegal Request [current] 
[  868.659026] sd 3:0:0:0: [sdc] tag#16 Add. Sense: Invalid field in cdb
[  868.659032] sd 3:0:0:0: [sdc] tag#16 CDB: Read(10) 28 00 00 1e 8f f8 00 00 08 00
[  868.659036] print_req_error: critical target error, dev sdc, sector 2002936
[  868.659043] Buffer I/O error on dev sdc1, logical block 250111, async page read
[  868.659083] sd 3:0:0:0: [sdc] tag#20 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  868.659088] sd 3:0:0:0: [sdc] tag#20 Sense Key : Illegal Request [current] 
[  868.659094] sd 3:0:0:0: [sdc] tag#20 Add. Sense: Invalid field in cdb
[  868.659099] sd 3:0:0:0: [sdc] tag#20 CDB: Read(10) 28 00 e7 e6 5a 58 00 00 08 00
[  868.659103] print_req_error: critical target error, dev sdc, sector 3890633304
[  868.659109] Buffer I/O error on dev sdc6, logical block 484578123, async page read
[  868.659131] sd 3:0:0:0: [sdc] tag#21 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  868.659136] sd 3:0:0:0: [sdc] tag#21 Sense Key : Illegal Request [current] 
[  868.659141] sd 3:0:0:0: [sdc] tag#21 Add. Sense: Invalid field in cdb
[  868.659147] sd 3:0:0:0: [sdc] tag#21 CDB: Read(10) 28 00 00 b7 30 00 00 00 08 00
[  868.659151] print_req_error: critical target error, dev sdc, sector 12005376
[  868.659157] Buffer I/O error on dev sdc4, logical block 0, async page read
[  868.659177] Buffer I/O error on dev sdc5, logical block 250110, async page read
[  868.659195] Buffer I/O error on dev sdc3, logical block 16, async page read

答案1

现在你的情况很糟糕,因为你认为有一个驱动器出现故障。但实际上,两个驱动器都出现故障。

这里发生的事情是,前段时间,NAS 发现一个驱动器出现了某种问题,并将其从阵列中踢出。这可能是一件很小的事,因为驱动器听起来像是在工作。它当时应该生成一个事件,但如果您没有将 NAS 配置为通过某种方法(例如电子邮件)通知您,那么您可能没有注意到,并且认为一切都很好,因为它仍在第二个磁盘上运行(尽管性能下降)。如果您当时注意到并解决了问题,您今天就可以恢复文件。

今天,您的第二个磁盘发生了灾难性故障。您不太可能从中恢复任何东西,但您可以尝试使用dd_rescue制作跳过任何坏扇区的磁盘映像,然后使用该映像尝试安装阵列。如果失败,您的最后手段是专业的数据恢复公司。但在此之前,您应该去备份。

相关内容