I have created a Raid0 and it works as I expect it. The the array file is created at
/dev/md0. I want this to be mounted automatically by adding this line at the end of the
/etc/fstab file :
/dev/md0 /mnt/storage ext4 noatime,commit=60,data=writeback,nodiratime,journal_async_commit,nouser_xattr 0 0
and this Line at the end of the
ARRAY /dev/md0 metadata=1.2 name=lil-RIKO:lil-RIKO UUID=6016d5e4:6e42cb97:6b2a8e6e:098c1982
In Boot time, I saw that /mnt/storage was being waited to be mounted and provide two options : to Skip ... or to Ma... I forgot what its says. I waited so long that made think something is wrong. I went into the "maintenance mode" which is a root shell then I quickly checked presence of
/dev/md0 file. The File wasn't there, only /dev/md127. I tried to mount that file instead and it complained about not finding a superblock. I manually mounted the raid via
mdadm --assemble /md0after removing the
/dev/md127 file via
mdadm --stop /dev/md* and I continued booting. Next reboot, I experienced the same issue.
How come the raid wasn't get automatically mounted? There was no presence of /dev/md0 at boot time and I was able to mount it manually.
EDIT1: I have managed to "merge" it into one which is /dev/md127 by removing a disk , The problem still occurs but when I issue ths
cat /proc/mdstat I got this:
md127 : inactive sdc(S) sdb(S) 7830528 blocks super 1.2
This means (I think ) the raid is not yet activated. But when I reattached it it comes active like this:
md127 : active raid0 sdc1 sdb1 7830528 blocks super 1.2 512k chunks
What went wrong this time ?