RAID 6 config gone after reboot

Hello everyone,

I am new to RancherOS and currently trying to deploy a RancherOS instance with RAID 6 configuration. I setup, configure, and run mkfs.ext4 on the software RAID array before I ran “ros install -c cloud-config.yml” file. After the install completed successfully and rebooted, I was able to see the /dev/md0 in the output of “blkid”. When I rebooted the nodes, however, /dev/md0 disappeared and I need to run “mdadm --assemble --scan” to bring up the software RAID again. May I know what I am missing here? For your reference, I have attached my cloud-config.yml below:

#cloud-config

hostname: valkyrie-201905071020

rancher:
network:
dns:
nameservers:
- 192.168.9.241
interfaces:
eth0:
address: 192.168.9.20/24
gateway: 192.168.9.1
state:
autoformat:
- /dev/sda
dev: /dev/sda1
fstype: auto

runcmd:

mounts:

  • ["/dev/md0", “/mnt/raid6”, “ext4”, “”]

Thank you,

Chris

I encountered same problem here. How’s the way to bind the raid volume during reboot?