[DRBD-user] Setting up using drbdmanage?

Roland Kammerer roland.kammerer at linbit.com
Thu Aug 4 10:15:12 CEST 2016

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.

On Wed, Aug 03, 2016 at 09:10:09AM -0400, norman wrote:
> Hello.
> Everything goes fine until it comes to actually syncing the 2 nodes. The
> control volumes are there and working on both nodews but for some reason the
> other volume will not sync.

How exactly did you create them? Did you assign the resources to nodes?
You can create resources/volumes, but as long as they are not
assigned/deployed, nothing happens.

So for example:
"drbdmanage list-assignments" # and if there are no assignments:
"drbdmanage assign-resource test-1 drbd-0 drbd-1"

> Do i have to manually create the .res files in /etc/drbd.d?

No, then drbdmanage would be pretty pointless.

> If so then what does "drbdmanage add-resource" do?

It adds an entry in the drbdmanage cluster database. But it is up to you
to assign it to nodes. (assign-resource). If you don't care on which
nodes it will deployed and you just have a 2 node cluster, you can do
that in one step when creating the volume:

"drbdmanage new-volume myNewResWithOneVolume 100M -d2"
This then does:
- create the resource myNewResWithOneVolume if it does not exist
- add a volume to the new (or existing) resource
- deploy (assign) it to 2 nodes that "fit best" (currently nodes with
  the most storage).

Regards, rck

More information about the drbd-user mailing list