Resolve issue #15532 set metadata to mdadm

Sets a default value to the metadata flag when calling `mdadm`. This resolves issue #15532