--prefer=
When mdadm needs to print the name for a device it
normally finds the name in /dev which refers to the device
and is shortest. When a path component is given with
--prefer mdadm will prefer a longer name if it contains
that component. For example --prefer=by-uuid will
prefer a name in a subdirectory of /dev called by-uuid.
This functionality is currently only provided by --detail
and --monitor.
If you have a cron job to run mdadm -F, this can be added. If
you have a system service to run mdadm -F in daemon mode, that
can be edited to include --prefer=by-id
-dsr-