Added warnings for mdadm API change.

See comments from @thatch45 on #12680
Related to the fix for #12679