What is DRBD, How DRBD works - DRBD Tutorial for Beginners



What is DRBD, How DRBD works - DRBD Tutorial for Beginners

This post will help you to understand What is DRBD, How DRBD works - DRBD Tutorial for Beginners..

If you are interested in learning, Request you to go through the below recommended tutorial.





DevOps Full Course Tutorial for Beginners - DevOps Free Training Online
Docker Full Course Tutorial for Beginners - Docker Free Training Online
Kubernetes Full Course Tutorial for Beginners - Kubernetes Free Training Online
Ansible Full Course Tutorial for Beginners - Ansible Free Training Online
Openstack Full Course Tutorial for Beginners - Openstack Free Training Online

What is DRBD, How DRBD works - DRBD Tutorial for Beginners


This post explains you about the DRBD (Distributed Replicated Block Device) to understand What is DRBD (Distributed Replicated Block Device), How the DRBD Works, DRBD Operations, DRBD Replications modes, DRBD Architecture and DRBD Administration commands.


Also refer the below links,
How to Install and Configure DRBD Cluster on RHEL7 / CentOS7
Integrate DRBD with Pacemaker Clusters on RHEL7 / CentOS7

What is DRBD (Distributed Replicated Block Device)?


DRBD stands for Distributed Replicated Block Device. DRBD is a great thing to increase the availability of our data. It is a Linux-based opensource software component that facilitates the replacement of shared storage systems by networked mirroring. In short, we can say this as "Network based Raid 1 mirroring for the data". So it can be used to mirror the filesystems, VM Images and other block devices stuffs across the network.
ALSO WATCH THIS DRBD TUTORIAL VIDEO FREE ON OUR YOUTUBE CHANNEL


Overview of DRBD in the context of two independent servers that provide independent storage resources. One of the servers is commonly defined as the primary and the other one is secondary server. The DRBD software provides synchronization between the primary and secondary servers for user-based Read and Write operations as well as other synchronization operations.

DRBD Basic Operations


The most commonly used Data synchronization mode is Active-passive. In the Active/Passive mode, the primary node is used for Read and Write operations for all users. The secondary node is promoted to primary if the clustering solution detects that the primary node is down. Write operations starts at primary node and are performed to the local storage and secondary storage simultaneously. DRBD supports two modes for Write operations called fully synchronous and asynchronous.
DRBD Operations

DRBD can also support the active/active mode, Which means Read and Write operations can occur at both servers simultaneously. This mode relies on a shared-disk file system, such as the Global File System (GFS) or the Oracle Cluster File System version 2 (OCFS2), which includes distributed lock-management capabilities.

DRBD Replication Modes


DRBD Supports three replication modes,
1. Protocol A - Asynchronous replication protocol. Local write operations on the primary node are considered completed as soon as the local disk write has finished, and the replication packet has been placed in the local TCP send buffer. In the event of forced fail-over, data loss may occur.

2. Protocol B - Memory synchronous (semi-synchronous) replication protocol. Local write operations on the primary node are considered completed as soon as the local disk write has occurred, and the replication packet has reached the peer node. Normally, no writes are lost in case of forced fail-over.

3. Protocol C - Synchronous replication protocol. Local write operations on the primary node are considered completed only after both the local and the remote disk write have been confirmed. As a result, loss of a single node is guaranteed not to lead to any data loss.

Most commonly used replication protocol in DRBD setup is Protocol C.

DRBD Architecture


DRBD Architecture

DRBD is split into two independent pieces: a kernel module that implements the DRBD behaviours and a set of user-space administration applications used to manage the DRBD disks. The kernel module implements a driver for a virtual block device (which is replicated between a local disk and a remote disk across the network). As a virtual disk, DRBD provides a flexible model that a variety of applications can use (from file systems to other applications that can rely on a raw disk, such as a database). The DRBD module implements an interface not only to the underlying block driver (as defined by the disk configuration item in drbd.conf) but also the networking stack (whose endpoint is defined by an IP address and port number, also in drbd.conf).

Some Administration Commands to manage the DRBD setup are:
DRBDadm - High level Administration tool.
DRBDsetup - Configures the DRBD module that was loaded into the kernel.
DRBDmeta - Allows to create, dump, restore, and modify DRBD meta data structures

Related Config Files

/etc/drbd.conf – Config file
/etc/drbd.d/global_common.conf - contains the global and common sections of the DRBD configuration.
/etc/drbd.d/*.res – Each resource configuration file

Port Number : 7788
Service Name : drbd

Refer the below links for more,
How to Install and Configure DRBD Cluster on RHEL7 / CentOS7
Integrate DRBD with Pacemaker Clusters on RHEL7 / CentOS7
Hope you got an idea about What is DRBD, How DRBD works.

Related Content on Linux might be useful to you to improve your Linux Skills.








Keep practicing and have fun. Leave your comments if any.





Support Us: Share with your friends and groups.


Stay connected with us on social networking sites, Thank you.

what is drbd, How drbd works, drbd tutorials, what is drbd cluster, drbd on linux, drbd linux, drbd linux cluster, drbd configuration in linux

Post a Comment

1 Comments

  1. […] refer the below link to know more about DRBD in detail.What is DRBD, How DRBD works – DRBD Tutorial for BeginnersHow to Install and Configure DRBD Cluster on RHEL7 / […]

    ReplyDelete