Reproducing this is kind of tricky. You need to force a situation where the minor number of a kpartx partition matches the minor number of its multipath device for all of kpartx minor numbers digits. For example, if the multipath device has a minor number of 103 and the kpartx device has a minor number of 10, this will work. The string "10" matches the string "103", for both of the characters in "10". The easiest way to do this is to create a bunch of random dm devices (you could use the error target) before creating the multipath device with partitions. After you create the multipath device, remove the partition devices, remove the lowest numbered junk device (hopefully it's dm-1, so you only need the multipath device to be dm-10. If you already have some dm devieces, so the lowest numbered junk device is dm-3 for instance, you need the
multipath device to be somewhere between dm-30 and dm-39), and recreate the partition devices. One of the partition devices should now have that low minor number. Then you can try either renaming or removing the multipath device.
Multipath now does a better job of making sure that the partition devices are actually partitions of the correct device.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.