When deploying a machine in MAAS with a MD setup, deployment fails. Inspection shows that curtin doesn't clean up existin MD devices. On a failed machine I can see in dmesg:
[ 22.352672] md/raid1:md2: active with 2 out of 2 mirrors
[ 22.730212] md/raid1:md1: active with 2 out of 2 mirrors
these are MD devices from previous deployment. Instead of deleting those, curtin tries to create a new one. So /proc/mdstat shows:
When deploying a machine in MAAS with a MD setup, deployment fails. Inspection shows that curtin doesn't clean up existin MD devices. On a failed machine I can see in dmesg:
[ 22.352672] md/raid1:md2: active with 2 out of 2 mirrors
[ 22.730212] md/raid1:md1: active with 2 out of 2 mirrors
these are MD devices from previous deployment. Instead of deleting those, curtin tries to create a new one. So /proc/mdstat shows:
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md3 : inactive md1[1](S) md2[2](S)
3125299568 blocks super 1.2
md1 : active raid1 sdd[1] sdc[0]
1562649792 blocks super 1.2 [2/2] [UU]
md2 : active raid1 sdf[1] sde[0]
1562649792 blocks super 1.2 [2/2] [UU]
unused devices: <none>
MAAS's storage config appears to be correct.