Use the --test option of the mdadm command