[SOLVED] recovering data from raid1 hdd

sacham50

Commendable
Oct 18, 2017
9
0
1,510
I had a brown-out last night, and one of my nas devices now insists on re-initializing the drives.
I turned it off, removed the drives and plugged one of them into a centos 8 box. Searching several website tech forums i've done the following w/ no success:
Code:
[root@localhost ~]# cat /proc/mdstat
Personalities :
md123 : inactive sdb4[0](S)
      530128 blocks super 1.0
      
md124 : inactive sdb3[0](S)
      3897063620 blocks super 1.0
      
md125 : inactive sdb2[0](S)
      530124 blocks super 1.0
      
md126 : inactive sdb5[0](S)
      8353780 blocks super 1.0
      
md127 : inactive sdb1[0](S)
      530108 blocks super 1.0
      
unused devices: <none>

Code:
[root@localhost ~]# fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x7acfd53c

Device     Boot   Start       End   Sectors   Size Id Type
/dev/sda1  *       2048   2099199   2097152     1G 83 Linux
/dev/sda2       2099200 976773119 974673920 464.8G 8e Linux LVM


Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 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
Disklabel type: gpt
Disk identifier: 2AAC6116-4065-49CA-A881-E74C5ED85122

Device          Start        End    Sectors   Size Type
/dev/sdb1          40    1060289    1060250 517.7M Microsoft basic data
/dev/sdb2     1060296    2120579    1060284 517.7M Microsoft basic data
/dev/sdb3     2120584 7796248109 7794127526   3.6T Microsoft basic data
/dev/sdb4  7796248112 7797308399    1060288 517.7M Microsoft basic data
/dev/sdb5  7797308408 7814015999   16707592     8G Microsoft basic data


Disk /dev/mapper/cl-root: 50 GiB, 53687091200 bytes, 104857600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/cl-swap: 3.9 GiB, 4160749568 bytes, 8126464 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/cl-home: 410.9 GiB, 441182060544 bytes, 861683712 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Code:
[root@localhost ~]# mount -o ro -t ext3 /dev/sdb3 /mount/qnap/
mount: /mount/qnap: /dev/sdb3 already mounted or mount point busy.

checked that the drive is not mounted:
Code:
[root@localhost ~]# df -h
Filesystem           Size  Used Avail Use% Mounted on
devtmpfs             1.8G     0  1.8G   0% /dev
tmpfs                1.8G   47M  1.8G   3% /dev/shm
tmpfs                1.8G  9.7M  1.8G   1% /run
tmpfs                1.8G     0  1.8G   0% /sys/fs/cgroup
/dev/mapper/cl-root   50G  4.7G   46G  10% /
/dev/mapper/cl-home  411G  3.2G  408G   1% /home
/dev/sda1            976M  145M  765M  16% /boot
tmpfs                368M  1.2M  367M   1% /run/user/42
tmpfs                368M  4.6M  364M   2% /run/user/1000
[root@localhost ~]#

however it is seen, the OS (Centos 8), does see it as Raid0 (?)
Code:
[root@localhost ~]# mdadm -D /dev/md124
/dev/md124:
           Version : 1.0
        Raid Level : raid0
     Total Devices : 1
       Persistence : Superblock is persistent

             State : inactive
   Working Devices : 1

              Name : 1
              UUID : f62ecf64:db2a3750:d029b056:d8314d6f
            Events : 270

    Number   Major   Minor   RaidDevice

       -       8       19        -        /dev/sdb3

I really need to get the data from this drive; help appreciated.
 

freercurse

Distinguished
Dec 16, 2016
256
17
18,865
How the health on the drives? If the drive isn't damaged I know that there are applications that can virtual mounts the drives, to enable data retrieval. You may have to search around

If the drives are damaged or you are unsure I would recommend un plug and sending them to data recovery specialists.
 

USAFRet

Titan
Moderator
I had a brown-out last night, and one of my nas devices now insists on re-initializing the drives.
I turned it off, removed the drives and plugged one of them into a centos 8 box. Searching several website tech forums i've done the following w/ no success:
.....

I really need to get the data from this drive; help appreciated.
This is specifically what backups are for.

But..
ReclaiMe might be an option.
https://www.reclaime.com/library/nas-recovery.aspx
https://www.reclaime.com/library/how-to-recover-raid.aspx
 

sacham50

Commendable
Oct 18, 2017
9
0
1,510
Code:
[root@localhost ~]# fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x7acfd53c

Device     Boot   Start       End   Sectors   Size Id Type
/dev/sda1  *       2048   2099199   2097152     1G 83 Linux
/dev/sda2       2099200 976773119 974673920 464.8G 8e Linux LVM


Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 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
Disklabel type: gpt
Disk identifier: 2AAC6116-4065-49CA-A881-E74C5ED85122

Device          Start        End    Sectors   Size Type
/dev/sdb1          40    1060289    1060250 517.7M Microsoft basic data
/dev/sdb2     1060296    2120579    1060284 517.7M Microsoft basic data
/dev/sdb3     2120584 7796248109 7794127526   3.6T Microsoft basic data
/dev/sdb4  7796248112 7797308399    1060288 517.7M Microsoft basic data
/dev/sdb5  7797308408 7814015999   16707592     8G Microsoft basic data


Disk /dev/mapper/cl-root: 50 GiB, 53687091200 bytes, 104857600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/cl-swap: 3.9 GiB, 4160749568 bytes, 8126464 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/cl-home: 410.9 GiB, 441182060544 bytes, 861683712 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Code:
[root@localhost ~]# smartctl -H /dev/sdb
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.18.0-147.el8.x86_64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

[root@localhost ~]#