I'm having an issue with a 4-disc (2Tb each) RAID 5 array. It works fine on creation, but after a reboot, it's gone.
Let me elaborate...
So I created the array thusly:
Code: Select all
mdadm --create --verbose /dev/md0 --level=5 --raid-devices=4 /dev/sda /dev/sdb /dev/sdc /dev/sddCode: Select all
mdadm -D --scan >> /etc/mdadm.confCode: Select all
mdadm --details /dev/md0For the hell of it:
Code: Select all
mdadm -E /dev/sdc
/dev/sdc:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : 846eae90:ca3f916f:50a27f05:25878c6c
Name : undertaker:0 (local to host undertaker)
Creation Time : Tue Mar 30 10:37:58 2021
Raid Level : raid5
Raid Devices : 4
Avail Dev Size : 3906764976 (1862.89 GiB 2000.26 GB)
Array Size : 5860147200 (5588.67 GiB 6000.79 GB)
Used Dev Size : 3906764800 (1862.89 GiB 2000.26 GB)
Data Offset : 264192 sectors
Super Offset : 8 sectors
Unused Space : before=264112 sectors, after=176 sectors
State : clean
Device UUID : f08de729:3bbef86e:800bc007:15d94c04
Internal Bitmap : 8 sectors from superblock
Update Time : Wed Mar 31 08:29:29 2021
Bad Block Log : 512 entries available at offset 16 sectors
Checksum : 53f0a7ff - correct
Events : 11961
Layout : left-symmetric
Chunk Size : 512K
Device Role : Active device 2
Array State : AAAA ('A' == active, '.' == missing, 'R' == replacing)The drives started to sync, I created a filesystem as per usual, mounted it, started copying some files over. All good.
Issue comes upon reboot. After a reboot, /dev/md0 isn't mountable - get a message about invalid superblock. If I do
Code: Select all
mdadm -E /dev/sd[abd]Code: Select all
/dev/sda:
MBR Magic : aa55
Partition[0] : 3907029167 sectors at 1 (type ee)
/dev/sdb:
MBR Magic : aa55
Partition[0] : 3907029167 sectors at 1 (type ee)
/dev/sdd:
MBR Magic : aa55
Partition[0] : 3907029167 sectors at 1 (type ee)Code: Select all
cat /proc/mdstat
Personalities :
md0 : inactive sdc[2](S)
1953382488 blocks super 1.2
unused devices: <none>
Code: Select all
tail /etc/mdadm.conf
#ARRAY /dev/md5 uuid=19464854:03f71b1b:e0df2edd:246cc977 spare-group=group1
#
# When used in --follow (aka --monitor) mode, mdadm needs a
# mail address and/or a program. This can be given with "mailaddr"
# and "program" lines to that monitoring can be started using
# mdadm --follow --scan & echo $! > /run/mdadm/mon.pid
# If the lines are not found, mdadm will exit quietly
#MAILADDR root@mydomain.tld
#PROGRAM /usr/sbin/handle-mdadm-events
ARRAY /dev/md0 metadata=1.2 spares=1 name=undertaker:0 UUID=846eae90:ca3f916f:50a27f05:25878c6cCode: Select all
mount /dev/md0 /mnt/raid5
mount: /mnt/raid5: can't read superblock on /dev/md0Code: Select all
mdadm --zero-superblockI don't understand why sda,b,d are losing their info and dropping out of the array. I've done several mdadm RAID arrays before and never had any issues. Anyone got any ideas or advice?
Thanks!
(In case it matters - kernel 5.11.4, ~amd64, fully up-to-date with the latest @world)

