There is no series of commands for build a DRBD configuration, so simply copy the configuration below to /etc/drbd.conf
Warning
Be sure to use the names and addresses of your nodes if they differ from the ones used in this guide.
global {
usage-count yes;
}
common {
protocol C;
}
resource wwwdata {
meta-disk internal;
device /dev/drbd1;
syncer {
verify-alg sha1;
}
net {
allow-two-primaries;
}
on pcmk-1 {
disk /dev/mapper/VolGroup-drbd--demo;
address 192.168.122.101:7789;
}
on
pcmk-2 {
disk /dev/mapper/VolGroup-drbd--demo;
address 192.168.122.102:7789;
}
}
Note
TODO: Explain the reason for the allow-two-primaries option