O'Reilly logo

CentOS High Performance by Gabriel Cánepa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required