This is a very old bug: "Erase disk" option in partitionning wizard fails to delete partitions when there's RAID and/or LVM b/c it doesn't destroy them first and thus the kernel complains they're busy Reproducible: Steps to Reproduce:
CC: (none) => pterjan
Created attachment 6250 [details] try harder to erase disk with RAID/LVM still fails with "Remove the logical volumes first" because RemoveFromLVM() calls lvm::vg_destroy() w/o removing the LVs first If one manually run lvremove, one can go on. Likewise for RAIDs, it fails to remove partitions belonging to RAID (busty) despite raid::removeDisk() having called mdadm --stop Running mdadm --zero-superblock on each member is needed...
Running mdadm --remove on the whole array could maybe do the trick too.
We should maybe display warnings asking for confirmation before killing everything though
*** Bug 15705 has been marked as a duplicate of this bug. ***
CC: (none) => alejandro.anv
As note in bug #15705, that also happen when one manually delete a RAID. We should probably run "mdadm --remove" after "mdadm --stop".
I think you should remove the raid when you remove the last disk on it...
Whiteboard: (none) => FOR_ERRATA
CC: (none) => marja11Assignee: bugsquad => mageiatools
Whiteboard: FOR_ERRATA => (none)