On 7/10/2011 6:03 PM, Alasdair G Kergon wrote:
(But devices should be removed from the top down, obviously, and if it's your main filesystem, you could e.g. set up a ramdisk do do this from.)
I disagree. Right now dmraid relies on doing this, but this is not possible if it is not aware of the higher level mappings because they were created by kpartx. LVM and multipath will have the same problem if kpartx recognizes partitions contained within an LV.
Hardware removal also necessitates bottom up removal, since the initial event comes from unplugging the hardware at the bottom of the stack. The system needs to propagate notification of that up the stack so that the higher layers can react appropriately and release the removed lower layer device.
-- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel