<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Linux%2FDevice_Mapper</id>
	<title>Linux/Device Mapper - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Linux%2FDevice_Mapper"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Linux/Device_Mapper&amp;action=history"/>
	<updated>2026-04-30T07:20:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://aznot.com/index.php?title=Linux/Device_Mapper&amp;diff=255&amp;oldid=prev</id>
		<title>Kenneth: /* dmsetup */</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Linux/Device_Mapper&amp;diff=255&amp;oldid=prev"/>
		<updated>2014-06-25T19:20:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;dmsetup&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Device Mapper ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;quot;The device mapper is a Linux kernel framework for mapping block devices onto higher-level virtual block devices. It forms the foundation of LVM2, software RAIDs, dm-crypt disk encryption, and offers additional features such as file system snapshots.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Device mapper works by passing data from a virtual block device, which is provided by the device mapper itself, to another block device. Data can be also modified in transition, which is performed, for example, in the case of device mapper providing disk encryption or simulation of unreliable behavior.&amp;quot;&amp;#039;&amp;#039; [http://en.wikipedia.org/wiki/Device_mapper]&lt;br /&gt;
&lt;br /&gt;
== Linux Multipath ==&lt;br /&gt;
&lt;br /&gt;
See also [[Linux/Multipath]]&lt;br /&gt;
&lt;br /&gt;
== dmsetup ==&lt;br /&gt;
&lt;br /&gt;
Device-mapper resource page: http://sources.redhat.com/dm/&lt;br /&gt;
&lt;br /&gt;
dmsetup - low level logical volume management&lt;br /&gt;
&lt;br /&gt;
Creates a device:&lt;br /&gt;
 echo &amp;quot;0 $(blockdev --getsize /dev/fioa) linear /dev/fioa 0&amp;quot; | dmsetup create fioa&lt;br /&gt;
&lt;br /&gt;
List device names (and major/minor device numbers):&lt;br /&gt;
 dmsetup ls&lt;br /&gt;
&lt;br /&gt;
Note: the minor numbers determine the name of the dm device.  Example: (253, 3) -&amp;gt; /dev/dm-3&lt;br /&gt;
&lt;br /&gt;
List device status:&lt;br /&gt;
 dmsetup status&lt;br /&gt;
&lt;br /&gt;
Remove device:&lt;br /&gt;
 dmsetup remove fioa&lt;br /&gt;
&lt;br /&gt;
Details:&lt;br /&gt;
 dmsetup ls --tree         # also list source devices by major/minor device number&lt;br /&gt;
 dmsetup info              # show device state, and number of targets&lt;br /&gt;
 dmsetup info [DM_DEVICE]&lt;br /&gt;
 dmsetup deps              # list source devices by major/minor device number&lt;br /&gt;
 dmsetup deps [DM_DEVICE]&lt;br /&gt;
 dmsetup status            # space separated table of various details&lt;br /&gt;
 dmsetup status [DM_DEVICE]&lt;br /&gt;
 dmsetup table             # space separated table of various details&lt;br /&gt;
 dmsetup table [DM_DEVICE]&lt;br /&gt;
&lt;br /&gt;
Note: With dmsetup, there doesn&amp;#039;t appear to be a way to get the source device, other than by major/minor device number.  Yuck.&lt;br /&gt;
&lt;br /&gt;
Alternative ways to match dm device to /dev/device:&lt;br /&gt;
 multipath -l&lt;br /&gt;
 ls /sys/block/dm-0/slaves&lt;br /&gt;
 cat /proc/partitions&lt;br /&gt;
&lt;br /&gt;
Help:&lt;br /&gt;
 dmsetup help&lt;br /&gt;
&lt;br /&gt;
== keywords ==&lt;br /&gt;
&lt;br /&gt;
linux multipath multi path multipathd kpartx dmsetup&lt;br /&gt;
&lt;br /&gt;
[[Category::Linux]]&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
</feed>