Adding a Raid after setup...and it dissapears after reboot

amnz

Renowned Member
Dec 14, 2012
4
0
66
Barcelona, Spain
www.gesttic.com
Hi,

I'm trying to add a new Raid1 volume to a new installation on a dedicated server at Hetzner.
First we install Proxmox using the two main NvME disks in a Raid1 config with no trouble on it.
After boot, update, etc, we want to create a new Raid1 for the two extra SSD disks.

So we did it:
mdadm --create --verbose /dev/md2 --level=1 --raid-devices=2 /dev/sda /dev/sdb

after that ckeck it is creating the raid with:
cat /proc/mdstat

and format device with:
mkfs.ext4 /dev/md2

also mount device:
mkdir /DataVolume
mount /dev/md2 /DataVolume

We added new raid info at /etc/mdadm/mdadm.com with:
mdadm --examine --scan --config=mdadm.conf >> /etc/mdadm/mdadm.conf

All Ok...but when rebooting. md2 dissapeared... there is no md2 at all

any ideas? Thanks