Configuring DRBD

After having successfully created and partitioned our DRBD disks on each node, the main configuration file for DRBD is located in /etc/drbd.conf, which consists only of the following two lines:

include "drbd.d/global_common.conf";
include "drbd.d/*.res";

Both lines include relative paths, starting at /etc/, of the actual configuration files. In the global_common.conf file, you will find the global settings for your DRBD installation, along with the common section (which defines those settings that should be inherited by every resource) of the DRBD configuration. On the other hand, in the .res files, you will find the specific configuration for each DRBD resource.

We will now rename the existing global_common.conf file as global_common.conf.orig ...

Get CentOS High Performance now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.