My Computer is running ubuntu 1804 but i am new to linux.
I am using mdadm and created a raid-5 with 3x 4TB drives (sda, sdb sdc).
OS is on a separate SSD (sde).
No, I don't have a backup. Yes it is stupid to think that everything will be okay. But I don't have enough space to backup my 8TB raid.
I wanted to have more space on my raid, so I added another drive (sdd) following these instructions and it worked.
A problem I have was, that my raid disappeared after each reboot so I thought that a reinstall of mdadm could help.
After i did that, rebootet and created the array with:
sudo mdadm --create --assume-clean --level=5 --raid-devices=4 /dev/md0 /dev/sda /dev/sdb /dev/sdc /dev/sdd
(because "--assemble --scan" didn't work) the filesystem wasn't recognised anymore.
Then I have created the array multiple times, because I read somewhere that this can happen if the drives are in a false order. This didn't work.
Checking the filesystem returned this:
challenger1304@hannes:~$ sudo fsck /dev/md0
fsck from util-linux 2.31.1
e2fsck 1.44.1 (24-Mar-2018)
ext2fs_open2: Bad magic number in super-block
fsck.ext4: Superblock invalid, trying backup blocks...
fsck.ext4: Bad magic number in super-block while trying to open /dev/md0
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
Then I tried to replace the bad Superblock like the tool told me to do.
To see where the Superblock-backups might be, I run "mkfs.ext4 -n /dev/md0" and have tried most of them too.
Didn't work either.
After some more research I found a tool called "TestDisk", installed it and run it. Found a lot of partitions (only had one on the raid) with the correct label. In these Partitions where no files and the tool could't recreate the partitions.
I've done that three times after recreating the array with the disks in a different order. Every time same result.