F5F Stay Refreshed Software Operating Systems Data recovery from MDADM RAID 1

Data recovery from MDADM RAID 1

Data recovery from MDADM RAID 1

R
RoseJr
Member
244
01-20-2016, 11:47 AM
#1
Hello, I lost my files after setting up a Docker container and mapping the RAID, but now everything in the RAID is gone. The disks aren’t being written or read yet. I don’t have a backup, and I’m open to any ideas—even connecting disks to a Windows machine. Here’s your Docker Compose config you shared: https://pastebin.com/PqwEkZ4G. Your setup uses Ubuntu Server 20.04LTS with two 1TB HDDs in RAID1 plus a 500GB SSD, using ext4 filesystem without encryption. Let me know how I can help recover your data.
R
RoseJr
01-20-2016, 11:47 AM #1

Hello, I lost my files after setting up a Docker container and mapping the RAID, but now everything in the RAID is gone. The disks aren’t being written or read yet. I don’t have a backup, and I’m open to any ideas—even connecting disks to a Windows machine. Here’s your Docker Compose config you shared: https://pastebin.com/PqwEkZ4G. Your setup uses Ubuntu Server 20.04LTS with two 1TB HDDs in RAID1 plus a 500GB SSD, using ext4 filesystem without encryption. Let me know how I can help recover your data.

X
xX_IceyWolf_Xx
Senior Member
629
01-23-2016, 03:19 AM
#2
If the storage devices were just removed, the type of filesystem wouldn't matter much. You'd have to search through guides to try and retrieve the data, which could be anything like ext4, ZFS, or BTRFS.
X
xX_IceyWolf_Xx
01-23-2016, 03:19 AM #2

If the storage devices were just removed, the type of filesystem wouldn't matter much. You'd have to search through guides to try and retrieve the data, which could be anything like ext4, ZFS, or BTRFS.

4
4l_
Junior Member
5
01-23-2016, 05:44 PM
#3
For ext4 you might use extundelete or photorec.
4
4l_
01-23-2016, 05:44 PM #3

For ext4 you might use extundelete or photorec.

J
JibbsMahoany
Junior Member
19
01-28-2016, 05:44 PM
#4
I believe simply placing the device inside a Docker container didn't erase it. Here are some alternatives to consider: Check if the MD RAID device is actually mounted. Use `df -h` to search for `/mnt/md0`. If absent, try mounting it with `# mount /mnt/md0`. If still missing, scan it using `mdadm --assemble --scan`.
J
JibbsMahoany
01-28-2016, 05:44 PM #4

I believe simply placing the device inside a Docker container didn't erase it. Here are some alternatives to consider: Check if the MD RAID device is actually mounted. Use `df -h` to search for `/mnt/md0`. If absent, try mounting it with `# mount /mnt/md0`. If still missing, scan it using `mdadm --assemble --scan`.