[DRBD-user] What does "drbdadm sh-b-pri all" (as in drbd.service) do?

Lutz Vieweg lvml at 5t9.de
Wed Oct 29 11:27:39 CET 2014

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


On 10/28/2014 10:18 PM, Lars Ellenberg wrote:
> sh-b-pri will (try to) promote all resources
> that mention this "become-primary" thingy in drbd.conf.
> But you should not use that.

Ok, I'll remove it from the drbd.service file :-)

> You are supposed to use a cluster manager (preferably pacemaker).

The use case of the machines I'm currently setting up is not one
that cluster managers are useful for - basically the machines
are both used independently and interactively for different things
and their only common task is to provide redundant storage in a
fixed "master"/"slave" configuration where a switch-over is
deliberately done only by manual human intervention.

> *also*, even if you do use drbd init scripts/unit files,
> you are supposed to not use "become primary" in drbd.conf

Sure, I intended to configure both sides to assume they are secondary
until some (rc.local - alike) script that I write determines the server
is actually the "master" and which will only then promote the devices
and mount/exports some filesystems.

Regards,

Lutz Vieweg




More information about the drbd-user mailing list