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
(as a backup copy of the original settings) with the following command:
mv /etc/drbd.d/global_common.conf /etc/drbd.d/global_common.conf.orig
We will then create a new global_common.conf
file with the following contents by opening the...