drbd-user March 2010 archive
Main Archive Page > Month Archives  > drbd-user archives
drbd-user: [DRBD-user] first config

[DRBD-user] first config

From: Cameron Smith <velvetpixel_at_nospam>
Date: Fri Mar 12 2010 - 23:03:27 GMT
To: drbd-user@lists.linbit.com

In the drbd.conf what is the difference between the device and the disk?
Also how do I reference the external location when I am using a
separate partition for drbd meta data?

global {
  usage-count yes;
common {
  protocol C;
resource r0 {
  on alice {
    device /dev/drbd1;
    disk /dev/sda7;
    meta-disk internal;
  on bob {
    device /dev/drbd1;
    disk /dev/sda7;
    meta-disk internal;

I have set up a separate small partition for the drbd metadata and the
partition I want drbd to replicate is root so what would my config
look like with the following hostnames and IP's



My partitions look like this on both devices.

Filesystem Size Used Avail Use% Mounted on
/dev/sda2 64G 1.2G 60G 2% /
/dev/sda5 251M 11M 228M 5% /drbdmeta
/dev/sda1 99M 12M 83M 13% /boot
tmpfs 1006M 0 1006M 0% /dev/shm

drbd-user mailing list