Bryn M. Reeves wrote:
But device-mapper already opens devices exclusively when a target claims them. The problem here sounds more like it's down to ordering; LVM2 is being given a chance to scan the devices & build LVs / claim devices before dmraid gets a look at them.
I think the "exclusive" open only prevents you from mounting a filesystem on the device. It does not stop you from opening the device and accessing it from user mode, nor does it apparently prevent dm from (re)using the device.
The problem is that lvm is looking at the physical disks at all. It needs to scan the dmraid device, not the underlying disks.
-- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel