Score:0

DRBD config difference between device and disk

ru flag

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?

Score:3
np flag

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.

ru flag
Thank you...That answers my question.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.