On an up-to-date Debian testing system, lvremove fails sporadically when removing snapshots. The cause is not yet fully debugged, see Debian bug 549691. The symptom looks like this:
$ lvremove -f plana/snap_web Unable to deactivate open plana-domu--web-real (253:3) Failed to resume domu-web.
To work around this, use the following commands (works reliably, tested for a few days):
$ dmsetup remove /dev/mapper/plana-snap_web $ dmsetup remove /dev/mapper/plana-snap_web-cow $ lvremove -f plana/snap_web
Since they only remove the snapshot-mappings, this does not touch the data on the original LV at all.
Did you like this post? Subscribe to this blog’s RSS feed to not miss any new posts!
I run a blog since 2005, spreading knowledge and experience for over 20 years! :)
All of my content is human-authored. I do use LLMs for research and knowledge work, and even to review my posts, but all writing is my own, every word is my own voice.