I have a raspberry pi setup as a NAS. Hooked up a 5 Bay Orico Sata to USB enclosure with 4x4 TB Seagate IronWolf drives in it. Everything was working till some time ago but post shifting to my house when I booted everything the raid was not accessible. I was showing 1 drive missing. Then I opened up the enclosure cleaned it up and put everything back in. I then ran the force assemble command and I was able to get the drive working.
After that I started playing around with removing the drive by tagging it as failed drive to try and get to re-adding it. Seems like I messed up pretty bad. I am now in a position where the raid seems to be back to how it was but it is not mounting at all. When I try to mount it says can’t read superblock on /dev/md0. I have half a mind to say f* it and just give up and start from scratch but I wanna try and give it one last go in hopes that I can recover the data.
Outputs of a few commands to show where the raid is at:
Drive info:
pi@pi:~ $ blkid
/dev/sdb: UUID="6ee9d50a-6f21-5cef-9e5d-e359d806fd4c" UUID_SUB="a76d62e3-9bf9-c38c-b4dc-ee8fb58cd1e8" LABEL="pi:0" TYPE="linux_raid_member"
/dev/sda: UUID="6ee9d50a-6f21-5cef-9e5d-e359d806fd4c" UUID_SUB="b835def0-00fd-62dd-13e2-a26520a3c513" LABEL="pi:0" TYPE="linux_raid_member"
/dev/sdd: UUID="6ee9d50a-6f21-5cef-9e5d-e359d806fd4c" UUID_SUB="d2048f05-ac91-96fe-30fc-31ae802be8a7" LABEL="pi:0" TYPE="linux_raid_member"
/dev/sdc: UUID="6ee9d50a-6f21-5cef-9e5d-e359d806fd4c" UUID_SUB="4a1653ce-1b8b-eeda-c91d-6a4b576df662" LABEL="pi:0" TYPE="linux_raid_member"
/dev/sde1: LABEL_FATBOOT="boot" LABEL="boot" UUID="54E3-79CE" TYPE="vfat" PARTUUID="637e2230-01"
/dev/sde2: LABEL="rootfs" UUID="c6dd3b94-a789-4d57-9080-1472f721804b" TYPE="ext4" PARTUUID="637e2230-02"
pi@pi:~ $ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 3.7T 0 disk
sdb 8:16 0 3.7T 0 disk
└─md0 9:0 0 10.9T 0 raid5
sdc 8:32 0 3.7T 0 disk
└─md0 9:0 0 10.9T 0 raid5
sdd 8:48 0 3.7T 0 disk
└─md0 9:0 0 10.9T 0 raid5
sde 8:64 0 167.7G 0 disk
├─sde1 8:65 0 256M 0 part /boot
└─sde2 8:66 0 167.4G 0 part /
Raid examine info:
sudo mdadm --examine /dev/sd[a-e]
/dev/sda:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : 6ee9d50a:6f215cef:9e5de359:d806fd4c
Name : pi:0 (local to host pi)
Creation Time : Mon Nov 2 23:52:14 2020
Raid Level : raid5
Raid Devices : 4
Avail Dev Size : 7813772976 (3725.90 GiB 4000.65 GB)
Array Size : 11720658432 (11177.69 GiB 12001.95 GB)
Used Dev Size : 7813772288 (3725.90 GiB 4000.65 GB)
Data Offset : 264192 sectors
Super Offset : 8 sectors
Unused Space : before=264112 sectors, after=688 sectors
State : clean
Device UUID : b835def0:00fd62dd:13e2a265:20a3c513
Internal Bitmap : 8 sectors from superblock
Update Time : Fri Jun 18 11:14:48 2021
Bad Block Log : 512 entries available at offset 24 sectors
Checksum : 2613bc81 - correct
Events : 58428
Layout : left-symmetric
Chunk Size : 512K
Device Role : Active device 0
Array State : AAAA ('A' == active, '.' == missing, 'R' == replacing)
/dev/sdb:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x9
Array UUID : 6ee9d50a:6f215cef:9e5de359:d806fd4c
Name : pi:0 (local to host pi)
Creation Time : Mon Nov 2 23:52:14 2020
Raid Level : raid5
Raid Devices : 4
Avail Dev Size : 7813772976 (3725.90 GiB 4000.65 GB)
Array Size : 11720658432 (11177.69 GiB 12001.95 GB)
Used Dev Size : 7813772288 (3725.90 GiB 4000.65 GB)
Data Offset : 264192 sectors
Super Offset : 8 sectors
Unused Space : before=264112 sectors, after=688 sectors
State : clean
Device UUID : a76d62e3:9bf9c38c:b4dcee8f:b58cd1e8
Internal Bitmap : 8 sectors from superblock
Update Time : Sun Jan 16 11:44:06 2022
Bad Block Log : 512 entries available at offset 24 sectors - bad blocks present.
Checksum : c8695a47 - correct
Events : 58460
Layout : left-symmetric
Chunk Size : 512K
Device Role : Active device 1
Array State : .AAA ('A' == active, '.' == missing, 'R' == replacing)
/dev/sdc:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : 6ee9d50a:6f215cef:9e5de359:d806fd4c
Name : pi:0 (local to host pi)
Creation Time : Mon Nov 2 23:52:14 2020
Raid Level : raid5
Raid Devices : 4
Avail Dev Size : 7813772976 (3725.90 GiB 4000.65 GB)
Array Size : 11720658432 (11177.69 GiB 12001.95 GB)
Used Dev Size : 7813772288 (3725.90 GiB 4000.65 GB)
Data Offset : 264192 sectors
Super Offset : 8 sectors
Unused Space : before=264112 sectors, after=688 sectors
State : active
Device UUID : 4a1653ce:1b8beeda:c91d6a4b:576df662
Internal Bitmap : 8 sectors from superblock
Update Time : Sun Jan 16 11:44:06 2022
Bad Block Log : 512 entries available at offset 24 sectors
Checksum : 3724b61a - correct
Events : 58460
Layout : left-symmetric
Chunk Size : 512K
Device Role : Active device 2
Array State : .AAA ('A' == active, '.' == missing, 'R' == replacing)
/dev/sdd:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : 6ee9d50a:6f215cef:9e5de359:d806fd4c
Name : pi:0 (local to host pi)
Creation Time : Mon Nov 2 23:52:14 2020
Raid Level : raid5
Raid Devices : 4
Avail Dev Size : 7813772976 (3725.90 GiB 4000.65 GB)
Array Size : 11720658432 (11177.69 GiB 12001.95 GB)
Used Dev Size : 7813772288 (3725.90 GiB 4000.65 GB)
Data Offset : 264192 sectors
Super Offset : 8 sectors
Unused Space : before=264112 sectors, after=688 sectors
State : active
Device UUID : d2048f05:ac9196fe:30fc31ae:802be8a7
Internal Bitmap : 8 sectors from superblock
Update Time : Sun Jan 16 11:44:06 2022
Bad Block Log : 512 entries available at offset 24 sectors
Checksum : 39c247c5 - correct
Events : 58460
Layout : left-symmetric
Chunk Size : 512K
Device Role : Active device 3
Array State : .AAA ('A' == active, '.' == missing, 'R' == replacing)
/dev/sde:
MBR Magic : aa55
Partition[0] : 524288 sectors at 8192 (type 0c)
Partition[1] : 351119408 sectors at 532480 (type 83)
mdadm raid status
pi@pi:~ $ checkraidstatus
/dev/md0:
Version : 1.2
Creation Time : Mon Nov 2 23:52:14 2020
Raid Level : raid5
Array Size : 11720658432 (11177.69 GiB 12001.95 GB)
Used Dev Size : 3906886144 (3725.90 GiB 4000.65 GB)
Raid Devices : 4
Total Devices : 3
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Sun Jan 16 11:44:06 2022
State : clean, degraded
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 512K
Consistency Policy : bitmap
Name : pi:0 (local to host pi)
UUID : 6ee9d50a:6f215cef:9e5de359:d806fd4c
Events : 58460
Number Major Minor RaidDevice State
- 0 0 0 removed
1 8 16 1 active sync /dev/sdb
2 8 32 2 active sync /dev/sdc
4 8 48 3 active sync /dev/sdd
pi@pi:~ $ checkraidbuildstatus
pi@pi:~ $ cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active (auto-read-only) raid5 sdb[1] sdd[4] sdc[2]
11720658432 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/3] [_UUU]
bitmap: 3/30 pages [12KB], 65536KB chunk
unused devices: <none>
Any help would be greatly appreciated