<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: KVMDR</title>
    <description>The latest articles on DEV Community by KVMDR (@kvmdrai).</description>
    <link>https://dev.to/kvmdrai</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4269372%2Fe6e0927d-b411-4af4-9f98-79d839e5a953.jpg</url>
      <title>DEV Community: KVMDR</title>
      <link>https://dev.to/kvmdrai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kvmdrai"/>
    <language>en</language>
    <item>
      <title>We open sourced dm-cdp: a device mapper target for block level continuous data protection on Linux</title>
      <dc:creator>KVMDR</dc:creator>
      <pubDate>Fri, 27 Nov 2026 16:50:26 +0000</pubDate>
      <link>https://dev.to/kvmdrai/we-open-sourced-dm-cdp-a-device-mapper-target-for-block-level-continuous-data-protection-on-linux-56a6</link>
      <guid>https://dev.to/kvmdrai/we-open-sourced-dm-cdp-a-device-mapper-target-for-block-level-continuous-data-protection-on-linux-56a6</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;The KVMDR team has released &lt;strong&gt;dm-cdp&lt;/strong&gt;, a device mapper target that records every write at the Linux block layer, under GPL v2. We have also started developing &lt;strong&gt;kvmdr_fs&lt;/strong&gt; on GitHub, a filesystem for sharing SAN LUNs across multiple KVM hosts.&lt;/p&gt;

&lt;p&gt;This post explains how dm-cdp works and how to try it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is dm-cdp?
&lt;/h2&gt;

&lt;p&gt;dm-cdp is a kernel module for in guest continuous data protection (CDP). Wrap a block device with the device mapper &lt;code&gt;cdp&lt;/code&gt; target, and every write to that device becomes available as a journal.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Block level capture&lt;/strong&gt;: every write that reaches the disk is recorded, whatever the filesystem.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ring plus bitmap&lt;/strong&gt;: writes are drained through a ring buffer; if the ring overflows, the target falls back to a changed block bitmap so nothing is lost.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Userspace tools&lt;/strong&gt;: &lt;code&gt;tools/cdp-drain&lt;/code&gt; pulls records from the ring, and &lt;code&gt;tools/cdp-apply&lt;/code&gt; replays that stream onto another disk.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DKMS support&lt;/strong&gt;: &lt;code&gt;dkms.conf&lt;/code&gt; is included, so the module rebuilds automatically after kernel updates.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Tested environments
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Build verified (W=1, no warnings): 6.1 (Debian 12), 6.8 (Ubuntu 24.04), 6.12 (Debian 13)&lt;/li&gt;
&lt;li&gt;Runtime verified: 6.1 (smoke test, overflow, point in time restore with fio, real virtual disk)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It is still at the development stage, so we do not recommend it for production yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;make            # build module and tools (needs linux-headers for the running kernel)
make load       # insmod
tests/smoke.sh  # loop device: write, drain, replay, compare (run as root)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Full details of the target are in &lt;code&gt;Documentation/admin-guide/device-mapper/dm-cdp.rst&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  kvmdr_fs (in development)
&lt;/h2&gt;

&lt;p&gt;A FUSE based filesystem for sharing iSCSI and FC LUNs across KVM hosts, the way NFS shares are used. It is at an early stage and licensed under GPL v3.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;dm-cdp: &lt;a href="https://github.com/ravi-gitprime/IO-Filter-Driver-for-Linux" rel="noopener noreferrer"&gt;https://github.com/ravi-gitprime/IO-Filter-Driver-for-Linux&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;kvmdr_fs: &lt;a href="https://github.com/ravi-gitprime/kvmdr_fs" rel="noopener noreferrer"&gt;https://github.com/ravi-gitprime/kvmdr_fs&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Issues and pull requests are welcome. We collect these projects and our video guides on our community page: &lt;a href="https://kvmdr.ai/community" rel="noopener noreferrer"&gt;https://kvmdr.ai/community&lt;/a&gt;&lt;/p&gt;

</description>
      <category>linux</category>
      <category>disasterrecovery</category>
      <category>proxmox</category>
      <category>olvm</category>
    </item>
  </channel>
</rss>
