[ClusterLabs] big trouble with a DRBD resource

Lentes, Bernd bernd.lentes at helmholtz-muenchen.de
Mon Aug 7 13:11:47 CEST 2017


----- On Aug 6, 2017, at 12:05 PM, Kristoffer Grönlund kgronlund at suse.com wrote:

>> What happened:
>> I tried to configure a simple drbd resource following
>> http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html-single/Clusters_from_Scratch/index.html#idm140457860751296
>> I used this simple snip from the doc:
>> configure primitive WebData ocf:linbit:drbd params drbd_resource=wwwdata \
>>     op monitor interval=60s
> 
> I'll try to sum up the issues I see, from a glance:
> 
> * The drbd resource is a multi-state / master-slave resource, which is
>  technically a variant of a clone resource where different clones can
>  either be in a primary or secondary state. To configure it correctly,
>  you'll need to create a master resource as well. Doing this with a
>  single command is unfortunately a bit painful. Either use crm
>  configure edit, or the interactive crm mode (with a verify / commit
>  after creating both the primitive and the master resources).

I was in interactive mode, but the trouble started immediately, without any commit.

> 
> * You'll need to create monitor operations for both the master and slave
>  roles, as you note below, and set explicit timeouts for all
>  operations.

OK.

> 
> * Make sure the wwwdata DRBD resource exists, is accessible from both
>  nodes, and is in a good state to begin with (that is, not
>  split-brained).

It was.
 
 
>> Btw: is there a history like in the bash where i see which crm command i entered
>> at which time ? I know that crm history is mighty, but didn't find that.
> 
> We don't have that yet :/ If you're not in interactive mode, your bash
> history should have the commands though.

I like the interactive mode of crm. But i don't have a history with timestamps in it ... Mmh.
I will think about that.


Bernd
 

Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrer: Prof. Dr. Guenther Wess, Heinrich Bassler, Dr. Alfons Enhsen
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671




More information about the Users mailing list