6.3.1 drbd.conf
From SambaWiki
6.3.1: drbd.conf
Create this file on both you master and slave server, it should be identical however it is not a requirement. As long as the partition size is the same any mount point can be used.
Step1
The below file is fairly self explanatory, you see the real disk link to the DRBD kernel module device.
[root@node1]# vi /etc/drbd.conf
# Datadrive (/data) /dev/hdd1 80GB resource drbd1 { protocol C; disk { on-io-error panic; } net { max-buffers 2048; ko-count 4; on-disconnect reconnect; } syncer { rate 700000; } on node1 { device /dev/drbd0; disk /dev/hdd1; address 10.0.0.1:7789; meta-disk internal; } on node2 { device /dev/drbd0; disk /dev/hdd1; address 10.0.0.2:7789; meta-disk internal; } }
Step2
[root@node1]# scp /etc/drbd.conf root@node2:/etc/