I'm new to this particular area of the Stack Exchange network so please be kind. We are experiencing issues with auto-assembling a RAID1 Array created with mdadm
on CentOS 7.6, and no matter what we try, the array is either non-existent after reboot or the system has to be put into recovery mode to undo the changes. Prior to the first reboot though, the array worked beasutifully and we were able to create a physical volume on it with pvcreate
, along with a volume group for SolusVM use. All the articles I'm finding myself on Google that pertain to this scenario seem to deal with Ubuntu or other Debian-type distros which is really frustrating also.
So what have we tried so far? We've tried adding rd.md.uuid=
(with the UUID of the RAID array gathered from /etc/mdadm.conf
) to GRUB_CMDLINE_LINUX
of /etc/default/grub
and then running the following commands:
dracut -a mdraid -f
grub2-mkconfig -o "$(readlink -e /etc/grub2.cfg)"
That resulted in the system not booting up and we had to go into recovery mode temporarily afterwards. We then tried variations of those commands with no luck, with the system booting up successfully some of the time but with no luck on mdadm
auto-assembling the array at any point. We tried just running the following commands, separately, on their own without any luck:
dracut -a mdraid -f
dracut -f
We'd sincerely appreciate any help on this issue as the help we are finding via Google is not assisting in any manner, we are essentially going into this blind. Thank you and we look forward to your replies.
EDIT: I was told to give the output of mdadm --examine
and cat /proc/mdstat
so I went to assemble the array manually and the following output was given:
[root@omega phobosdthorga]# mdadm --assemble /dev/md0 /dev/nvme0n1 /dev/nvme1n1
\mdadm: Cannot assemble mbr metadata on /dev/nvme0n1
mdadm: /dev/nvme0n1 has no superblock - assembly aborted
[root@omega phobosdthorga]#
I followed the following guide for creating the array: https://www.tecmint.com/create-raid1-in-linux/
I suppose I have to find where I went wrong originally and try to fix that also, but I'd still like some advice on how I can auto-assemble the array afterwards, please.