DRBD
Distributed Replicated Block Device (DRBD) is a distributed replicated storage system for the Linux platform. It mirrors block devices between multiple hosts, functioning transparently to applications on the host systems. This replication can involve any type of block device, such as hard drives, partitions, RAID setups, or logical volumes. DRBD is implemented as a kernel driver, several userspace management applications, and some shell scripts. DRBD is traditionally used in high availability (HA) computer clusters, but beginning with DRBD version 9, it can also be used to create larger software defined storage pools with a focus on cloud integration. The DRBD software is free software released under the terms of the GNU General Public License version 2. DRBD is part of the Lisog open source stack initiative.
Distributed Replicated Block Device (DRBD) is a distributed replicated storage system for the Linux platform. It mirrors block devices between multiple hosts, functioning transparently to applications on the host systems. This replication can involve any type of block device, such as hard drives, partitions, RAID setups, or logical volumes. DRBD is implemented as a kernel driver, several userspace management applications, and some shell scripts. DRBD is traditionally used in high availability (HA) computer clusters, but beginning with DRBD version 9, it can also be used to create larger software defined storage pools with a focus on cloud integration. The DRBD software is free software released under the terms of the GNU General Public License version 2. DRBD is part of the Lisog open source stack initiative. ==Mode of operation== DRBD layers logical block devices (conventionally named /dev/drbdX , where X is the device minor number) over existing local block devices on participating cluster nodes. Writes to the primary node are transferred to the lower-level block device and simultaneously propagated to the secondary node(s). The secondary node(s) then transfers data to its corresponding lower-level block device. All read I/O is performed locally unless read-balancing is configured. Should the primary node fail, a cluster management process promotes the secondary node to a primary state. This transition may require a subsequent verification of the integrity of the file system stacked on top of DRBD, by way of a filesystem check or a journal replay. When the failed ex-primary node returns, the system may (or may not) raise it to primary level again, after device data resynchronization. DRBD's synchronization algorithm is efficient in the sense that only those blocks that were changed during the outage must be resynchronized, rather than the device in its entirety. DRBD is often deployed together with the Pacemaker or Heartbeat cluster resource managers, although it does integrate with other cluster management frameworks. It integrates with virtualization solutions such as Xen, and may be used both below and on top of the Linux LVM stack. DRBD allows for load-balancing configurations, allowing both nodes to access a particular DRBD in read/write mode with shared-storage semantics. A multiple primary (multiple read/write nodes) configuration requires the use of a distributed lock manager. Since 2018 DRBD can also be leveraged in the block storage management software LINSTOR for replication between different nodes and to provide block storage devices to users and applications. ==Shared cluster storage comparison== Conventional computer cluster systems typically use some sort of shared storage for data being used by cluster resources. This approach has a number of disadvantages, which DRBD may help offset: Shared-storage resources must typically be accessed over a storage area network or on a network attached storage server, which creates some overhead in read I/O. In DRBD that overhead is reduced as all read operations are carried out locally. Shared storage is usually expensive and consumes more space (2U and more) and power. DRBD allows for an HA setup with only 2 machines. Shared storage is not necessarily highly available. For example, a single storage area network accessed by multiple virtualization hosts is considered shared storage, but is not considered highly available at the storage level – if that single storage area network fails, neither host within the cluster can access the shared storage. DRBD allows for a storage target that is both shared and highly available. A disadvantage is the lower time required to write directly to a shared-storage device than to route the write through the other node. ==Applications== Operating within the Linux kernel's block layer, DRBD is essentially workload agnostic. A DRBD can be used as the basis of: A conventional file system (this is the canonical example), a shared-disk file system such as GFS2 or OCFS2, another logical block device (as used in LVM, for example), any application requiring direct access to a block device. DRBD-based clusters are often employed for adding synchronous replication and high availability to file servers, relational databases (such as MySQL), and many other workloads. ==Inclusion in Linux kernel== DRBD's authors originally submitted the software to the Linux kernel community in July 2007, for possible inclusion in the canonical kernel.org version of the Linux kernel. After a lengthy review and several discussions, Linus Torvalds agreed to have DRBD as part of the official Linux kernel. DRBD was merged on 8 December 2009 during the "merge window" for Linux kernel version 2.6.33. ==See also== Highly Available Storage High-availability cluster Disk mirroring ==References== ==External links== LINBIT High-Availability Linux project web site
References
- ^ "DRBD – Heartbeat ( Active/Passive High Availability Cluster )" . syslint.com . Retrieved 2024-06-20 . Wikipedia revision 1376704256, retrieved 2026-11-18 · 1718838000.0
- ^ LINBIT. "The DRBD User's Guide" . Retrieved 2011-11-28 . Wikipedia revision 1376704256, retrieved 2026-11-18 · 1322434800.0
- ^ Reisner, Philipp (2005-10-11). "DRBD v8 - Replicated Storage with Shared Disk Semantics" (PDF) . Proceedings of the 12th International Linux System Technology Conference . Hamburg, Germany. Wikipedia revision 1376704256, retrieved 2026-11-18 · 1794956400.0
- ^ "Active-active DRBD with OCFS2 - Gentoo Linux Wiki" . Archived from the original on 2013-03-08 . Retrieved 2013-03-21 . Wikipedia revision 1376704256, retrieved 2026-11-18 · 1363820400.0
- ^ Ellenberg, Lars (2007-07-21). "DRBD wants to go mainline" . linux-kernel (Mailing list) . Retrieved 2007-08-03 . Wikipedia revision 1376704256, retrieved 2026-11-18 · 1186095600.0
- ^ "DRBD To Be Included In Linux Kernel 2.6.33" . slashdot.org . 10 December 2009 . Retrieved 2024-06-20 . Wikipedia revision 1376704256, retrieved 2026-11-18 · 1718838000.0
- ^ "Distributed Replicated Block Device - DRBD — the Linux Kernel documentation" . Wikipedia revision 1376704256, retrieved 2026-11-18 · 1794956400.0
- ^ "Distributed Replicated Block Device (DRBD)" . ubuntu.com . Retrieved 2024-06-20 . Wikipedia revision 1376704256, retrieved 2026-11-18 · 1718838000.0
- ^ "DRBD for your Cloud" . www.drbd.org . Retrieved 2016-12-05 . Wikipedia revision 1376704256, retrieved 2026-11-18 · 1480892400.0
- ^ "18.4. Achieving better Read Performance via increased Redundancy - DRBD Users Guide (9.0)" . www.drbd.org . Retrieved 2016-12-05 . Wikipedia revision 1376704256, retrieved 2026-11-18 · 1480892400.0
- ^ "Chapter 8. Integrating DRBD with Pacemaker clusters - DRBD Users Guide (9.0)" . www.drbd.org . Retrieved 2016-12-05 . Wikipedia revision 1376704256, retrieved 2026-11-18 · 1480892400.0
- ^ "Highly Available NFS Storage with DRBD and Pacemaker" . suse.com . Retrieved 2024-06-20 . Wikipedia revision 1376704256, retrieved 2026-11-18 · 1718838000.0
- ^ "How to Achieve High Availability with Heartbeat & DRBD on Ubuntu 16" . www.globo.tech . 11 November 2016 . Retrieved 2024-06-20 . Wikipedia revision 1376704256, retrieved 2026-11-18 · 1718838000.0
- ^ "DRBD 9.x Linux Kernel Driver" . linbit.com . Retrieved 2023-07-19 . Wikipedia revision 1376704256, retrieved 2026-11-18 · 1689721200.0
- ^ "User Guides » LINBIT" . Wikipedia revision 1376704256, retrieved 2026-11-18 · 1794956400.0
- ^ "Releases · LINBIT/drbd" . github.com . Retrieved 2021-04-04 . Wikipedia revision 1376704256, retrieved 2026-11-18 · 1617490800.0
Cite this
"DRBD". 1790357694. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1376704256 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy