<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.heepy.net/index.php?action=history&amp;feed=atom&amp;title=Forcibly_remove_a_stuck_dm_mapping</id>
	<title>Forcibly remove a stuck dm mapping - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.heepy.net/index.php?action=history&amp;feed=atom&amp;title=Forcibly_remove_a_stuck_dm_mapping"/>
	<link rel="alternate" type="text/html" href="https://www.heepy.net/index.php?title=Forcibly_remove_a_stuck_dm_mapping&amp;action=history"/>
	<updated>2026-05-10T17:42:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://www.heepy.net/index.php?title=Forcibly_remove_a_stuck_dm_mapping&amp;diff=1335&amp;oldid=prev</id>
		<title>Morris: Created page with &quot;This happens sometimes when you use something like kpartx to generate mappings for a lvm volume, so you can mount its partitions. Once you unmount, kpartx -d is supposed to re...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.heepy.net/index.php?title=Forcibly_remove_a_stuck_dm_mapping&amp;diff=1335&amp;oldid=prev"/>
		<updated>2014-05-26T08:15:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This happens sometimes when you use something like kpartx to generate mappings for a lvm volume, so you can mount its partitions. Once you unmount, kpartx -d is supposed to re...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This happens sometimes when you use something like kpartx to generate mappings for a lvm volume, so you can mount its partitions. Once you unmount, kpartx -d is supposed to remove all those mappings so that the lvm volume is free to be removed, but sometimes they get stuck, for instances when a snapshot or copy-on-write volume exists. You can forcibly remove the device mapper entry but it's probably dangerous, at least if you want to keep the volume. But usually you're trying to do this in order to be able to remove the volume, so whatever. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dmsetup -v remove --force /dev/mapper/vg00-debsnap1&lt;br /&gt;
lvremove /dev/vg00/debsnap&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Morris</name></author>
	</entry>
</feed>