Discussion:
[drbd-mc] DRBD MC, bug with master/slave and groups
Tony Murray
2011-06-17 21:17:34 UTC
Permalink
I have a master slave resource set up with a group of drbd resources in corosync.



The gui does not properly display the status of this group. hvsan should be shown as a slave.



while crm_mon shows:


Master/Slave Set: ms_g_drbd
Masters: [ wbsan.exchange.ncn.net ]
Slaves: [ hvsan.exchange.ncn.net ]


I also, once tried to change the configuration of some of the drbd resources and it totally messed up my corosync config.

Here is my relavent corosync config:


primitive drbd_meta ocf:linbit:drbd \
params drbd_resource="cluster_metadata"
primitive drbd_high1 ocf:linbit:drbd \
params drbd_resource="vg0drbd"
primitive drbd_normal1 ocf:linbit:drbd \
params drbd_resource="vg1drbd"

group g_drbd drbd_meta drbd_high1 drbd_normal1

ms ms_g_drbd g_drbd meta master-max="1" \

master-node-max="1" clone-max="2" clone-node-max="1" notify="true"


The way it messed up my config was to remove the other two drbd resources (other than the one I was changing), remove the g_drbd group and set the ms_g_drbd resource to the changed drbd resource instead of the g_drbd group.

Tony Murray - Systems Engineer
Northwest Communications | 1.866.929.9963 | networking at ncn.net<mailto:networking at ncn.net>
Tony Murray
2011-06-20 21:24:15 UTC
Permalink
My screenshot got scrubbed.

http://imagebin.org/159231


Tony Murray - Systems Engineer
Northwest Communications | 1.866.929.9963 | networking at ncn.net<mailto:networking at ncn.net>
________________________________
From: Tony Murray
Sent: Friday, June 17, 2011 4:17 PM
To: drbd-mc at lists.linbit.com
Subject: DRBD MC, bug with master/slave and groups


I have a master slave resource set up with a group of drbd resources in corosync.



The gui does not properly display the status of this group. hvsan should be shown as a slave.



while crm_mon shows:


Master/Slave Set: ms_g_drbd
Masters: [ wbsan.exchange.ncn.net ]
Slaves: [ hvsan.exchange.ncn.net ]


I also, once tried to change the configuration of some of the drbd resources and it totally messed up my corosync config.

Here is my relavent corosync config:


primitive drbd_meta ocf:linbit:drbd \
params drbd_resource="cluster_metadata"
primitive drbd_high1 ocf:linbit:drbd \
params drbd_resource="vg0drbd"
primitive drbd_normal1 ocf:linbit:drbd \
params drbd_resource="vg1drbd"

group g_drbd drbd_meta drbd_high1 drbd_normal1

ms ms_g_drbd g_drbd meta master-max="1" \

master-node-max="1" clone-max="2" clone-node-max="1" notify="true"


The way it messed up my config was to remove the other two drbd resources (other than the one I was changing), remove the g_drbd group and set the ms_g_drbd resource to the changed drbd resource instead of the g_drbd group.

Tony Murray - Systems Engineer
Northwest Communications | 1.866.929.9963 | networking at ncn.net<mailto:networking at ncn.net>
Rasto Levrinc
2011-06-21 07:54:35 UTC
Permalink
Post by Tony Murray
I have a master slave resource set up with a group of drbd resources in corosync.
The gui does not properly display the status of this group. hvsan should
be shown as a slave.
...
Post by Tony Murray
The way it messed up my config was to remove the other two drbd resources
(other than the one I was changing), remove the g_drbd group and set the
ms_g_drbd resource to the changed drbd resource instead of the g_drbd
group.
You are right, I can reproduce both issues with cloned groups. Will be
fixed in the next release. Thanks,

Rasto
--
: Dipl-Ing Rastislav Levrinc
: DRBD MC http://oss.linbit.com/drbd-mc/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
Loading...