Helpful hint from Tom H: "the usual reason for mdadm to rename "/dev/md0p1" "/dev/md127p1" is that the hostname of the system on which the array's first assembled is stored in the md metadata and the array's assembled with a different name on a system with a different hostname. A simple solution would be for the array creation use "--homehost" whether it's automated or manual."
Helpful hint from Tom H: "the usual reason for mdadm to rename "/dev/md0p1" "/dev/md127p1" is that the hostname of the system on which the array's first assembled is stored in the md metadata and the array's assembled with a different name on a system with a different hostname. A simple solution would be for the array creation use "--homehost" whether it's automated or manual."