Raid5 mdadm array disappearing at reboot

Posted by _InvisibleRasta_@reddit | linuxadmin | View on Reddit | 15 comments

I got 3x2TB disks that i made a softraid with on my homeserver with webmin. After I created it i moved around 2TB of data into it overnight. As soon as it was done rsyncing all the files, I rebooted and both the raid array and all the files are gone. /dev/md0 is no longer avaiable. Also the fstab mount option I configured with UUID complains that it can't find such UUID. What is wrong?

I did add md_mod to the /etc/modules and also made sure to modprobe md_mod but it seems like it is not doing anything. I am running ubuntu server.

I also run update-initramfs -u

#lsmod | grep md

crypto_simd 16384 1 aesni_intel

cryptd 24576 2 crypto_simd,ghash_clmulni_intel

#cat /proc/mdstat

Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]

unused devices:

#lsblk

sdb 8:16 0 1.8T 0 disk

sdc 8:32 0 1.8T 0 disk

sdd 8:48 0 1.8T 0 disk

mdadm --detail --scan does not output any array at all.

It jsut seems that everything is jsut gone?

#mdadm --examine /dev/sdc /dev/sdb /dev/sdd

/dev/sdc:

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)

mdadm --assemble /dev/md0 /dev/sdb1 /dev/sdc1 /dev/sdd1

mdadm: cannot open device /dev/sdb1: No such file or directory

mdadm: /dev/sdb1 has no superblock - assembly aborted

It seems that the partitions on the 3 disks are just gone?

I created an ext4 partition on md0 before moving the data

#fdisk -l

Disk /dev/sdc: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors

Disk model: WDC WD20EARS-00M

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: gpt

Disk identifier: 2E45EAA1-2508-4112-BD21-B4550104ECDC

Disk /dev/sdd: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors

Disk model: WDC WD20EZRZ-00Z

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: D0F51119-91F2-4D80-9796-DE48E49B4836

Disk /dev/sdb: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors

Disk model: WDC WD20EZRZ-00Z

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: 0D48F210-6167-477C-8AE8-D66A02F1AA87

Maybe i should recreate the array ?

sudo mdadm --create /dev/md0 --level=5 --raid-devices=3 /dev/sdb /dev/sdc /dev/sdd --uuid=a10098f5:18c26b31:81853c01:f83520ff --assume-clean

I recreated the array and it mounts and all files are there. The problem is that when i reboot it is once again gone.