I am configuring DRBD but I don't understand what the difference is between device and disk.

In the config file I have the following:

 on server1 {
            device /dev/drbd0;
            disk /dev/sda;
            address IP HERE;
            meta-disk internal;

I don't understand what the difference is between disk and device and how do I find the name of each?

1 Answer 1


disk - is the underlying block device, i.e. a physical disk.

device - is the logical block device assembled from a set of disks (including those over network).

If you follow the analogy with RAID, the disk - is the physical disks, and the device is a RAID array.

That means that you have to specify disks which you are intended to make a DRBD array. And the device you just pick /dev/drbdX (where X is a number starting from 0) which will be your logical block device after the DRBR are up & running. When you work with /dev/drbdX as with raw block device (disk), the DRBD will handle all the stuff for the redundancy & networking.

  • 1
    Thank you...That answers my question. Jan 19, 2022 at 21:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.