Discussion:
[drbd-mc] drbd.d config directory not used anymore and some resources not available anymore.
Caspar Smit
2011-01-21 10:51:27 UTC
Permalink
Hi,

I used to have my drbd config in a directory called /etc/drbd.d naming the
files r0.res r1.res etc...

Now I did some changes in the drbd config through drbd-mc and noticed that
the drbd.d directory is not used anymore and all resources are merged in the
/etc/drbd.conf file
But I noticed that one of my resources was NOT merged (r3) which i manually
had to merge into /etc/drbd.conf

Maybe this is a bug, maybe I did something wrong?

Why isn't it possible to keep the rx.res files?

Kind regards,

Caspar Smit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-mc/attachments/20110121/10fb5d72/attachment.htm>
Caspar Smit
2011-01-21 11:41:40 UTC
Permalink
I can add to this that even after manually adding the r3 config to
/etc/drbd.conf the drbd-mc still won't see the r3 correctly under:
Storage (DRBD) allthough the resource is up and running fine when I press
/proc/drbd:

version: 8.3.7 (api:88/proto:86-91)
srcversion: EE47D8BF18AC166BE219757
0: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r----
ns:0 nr:0 dw:0 dr:624 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
1: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r----
ns:0 nr:0 dw:0 dr:624 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
2: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r----
ns:0 nr:0 dw:0 dr:624 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
3: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r----
ns:0 nr:0 dw:0 dr:520 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0

See the following screenshot for more info

Loading Image...

Kind regards,

Caspar Smit



2011/1/21 Caspar Smit <c.smit at truebit.nl>

Hi,
Post by Caspar Smit
I used to have my drbd config in a directory called /etc/drbd.d naming the
files r0.res r1.res etc...
Now I did some changes in the drbd config through drbd-mc and noticed that
the drbd.d directory is not used anymore and all resources are merged in the
/etc/drbd.conf file
But I noticed that one of my resources was NOT merged (r3) which i manually
had to merge into /etc/drbd.conf
Maybe this is a bug, maybe I did something wrong?
Why isn't it possible to keep the rx.res files?
Kind regards,
Caspar Smit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-mc/attachments/20110121/de5c746a/attachment.htm>
Rasto Levrinc
2011-01-21 11:53:06 UTC
Permalink
Post by Caspar Smit
I can add to this that even after manually adding the r3 config to
Storage (DRBD) allthough the resource is up and running fine when I press
Can you show me the resource config section of the resource r3? The
devices on which you have the DRBD, don't show up in the graph, right? The
DRBD MC, tries to hide some devices in order to save space, but sometimes
it hides to much.
Post by Caspar Smit
Post by Caspar Smit
Why isn't it possible to keep the rx.res files?
There's a plan to generate this style of config.

Rasto
--
: Dipl-Ing Rastislav Levrinc
: DRBD MC http://oss.linbit.com/drbd-mc/
: DRBD MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
Caspar Smit
2011-01-21 12:04:30 UTC
Permalink
Hi Rasto,

The resource section for r3 is exactly the same as for r0, r1 and r2:

resource r3 {
protocol C;
handlers {
pri-on-incon-degr "echo o > /proc/sysrq-trigger ; reboot -f";
pri-lost-after-sb "echo r > /proc/sysrq-trigger; echo e >
/proc/sysrq-trigge
r; echo i > /proc/sysrq-trigger; echo s > /proc/sysrq-trigger; echo u >
/proc/sy
srq-trigger; echo b > /proc/sysrq-trigger;";
local-io-error "echo o > /proc/sysrq-trigger ; halt -f";
outdate-peer "/usr/lib/heartbeat/drbd-peer-outdater -t 5";
}

startup {
wfc-timeout 120;
degr-wfc-timeout 120;
}

disk {
on-io-error detach;
}

net {
sndbuf-size 512k;
max-buffers 16384;
max-epoch-size 16384;
after-sb-0pri discard-older-primary;
after-sb-1pri consensus;
after-sb-2pri call-pri-lost-after-sb;
rr-conflict disconnect;
}

syncer {
rate 170M;
al-extents 1801;
}

on node01 {

device /dev/drbd3;
disk /dev/md3;
address 10.0.3.1:7788;
meta-disk internal;
}

on node02 {
device /dev/drbd3;
disk /dev/md3;
address 10.0.3.2:7788;
meta-disk internal;
}
}

It shows the device for node1 (/dev/md3) but not for node2 (/dev/md3 is
hidden)
I don't know why it is hidden because it is not in use by anything else then
drbd.

btw, the /dev/sdv /dev/sdw /dev/sdx /dev/sdy are assigned as spare disks to
each md so:

/dev/sdv is spare of /dev/md0
/dev/sdw is spare of /dev/md1
/dev/sdx is spare of /dev/md2
/dev/sdy is spare of /dev/md3

All md's are in the same sparegroup.

I guess those disks are not "available" or anything so should be hidden in
the Storage (DRBD)?

Kind regards,

Caspar Smit

2011/1/21 Rasto Levrinc <rasto.levrinc at linbit.com>
Post by Rasto Levrinc
Post by Caspar Smit
I can add to this that even after manually adding the r3 config to
Storage (DRBD) allthough the resource is up and running fine when I press
Can you show me the resource config section of the resource r3? The
devices on which you have the DRBD, don't show up in the graph, right? The
DRBD MC, tries to hide some devices in order to save space, but sometimes
it hides to much.
Post by Caspar Smit
Post by Caspar Smit
Why isn't it possible to keep the rx.res files?
There's a plan to generate this style of config.
Rasto
--
: Dipl-Ing Rastislav Levrinc
: DRBD MC http://oss.linbit.com/drbd-mc/
: DRBD MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
_______________________________________________
drbd-mc mailing list
drbd-mc at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-mc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-mc/attachments/20110121/7679bf55/attachment.htm>
Rasto Levrinc
2011-01-21 12:13:57 UTC
Permalink
Post by Caspar Smit
Hi Rasto,
...
Post by Caspar Smit
It shows the device for node1 (/dev/md3) but not for node2 (/dev/md3 is
hidden) I don't know why it is hidden because it is not in use by anything
else then drbd.
hmm, there must be something different on these two nodes. Could you show
me the output of /usr/local/bin/drbd-gui-helper-0.8.10 get-disk-info

from both nodes?

Thanks,

Rasto
Post by Caspar Smit
btw, the /dev/sdv /dev/sdw /dev/sdx /dev/sdy are assigned as spare disks
/dev/sdv is spare of /dev/md0
/dev/sdw is spare of /dev/md1
/dev/sdx is spare of /dev/md2
/dev/sdy is spare of /dev/md3
All md's are in the same sparegroup.
I guess those disks are not "available" or anything so should be hidden
in the Storage (DRBD)?
Kind regards,
Caspar Smit
2011/1/21 Rasto Levrinc <rasto.levrinc at linbit.com>
Post by Rasto Levrinc
Post by Caspar Smit
I can add to this that even after manually adding the r3 config to
Storage (DRBD) allthough the resource is up and running fine when I
Can you show me the resource config section of the resource r3? The
devices on which you have the DRBD, don't show up in the graph, right? The
DRBD MC, tries to hide some devices in order to save space, but
sometimes it hides to much.
Post by Caspar Smit
Post by Caspar Smit
Why isn't it possible to keep the rx.res files?
There's a plan to generate this style of config.
Rasto
--
: Dipl-Ing Rastislav Levrinc
: DRBD MC http://oss.linbit.com/drbd-mc/
: DRBD MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
_______________________________________________
drbd-mc mailing list drbd-mc at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-mc
_______________________________________________
drbd-mc mailing list drbd-mc at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-mc
--
: Dipl-Ing Rastislav Levrinc
: DRBD MC http://oss.linbit.com/drbd-mc/
: DRBD MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
Caspar Smit
2011-01-21 13:25:57 UTC
Permalink
node01# /usr/local/bin/drbd-gui-helper-0.8.10 get-disk-info
WARNING: unknown partition: 65 80 1953514584 sdv
WARNING: unknown partition: 65 96 1953514584 sdw
WARNING: unknown partition: 65 112 1953514584 sdx
WARNING: unknown partition: 65 128 1953514584 sdy
/dev/md0 rl:/dev/md0 size:7814057984
/dev/md1 rl:/dev/md1 size:7814057984
/dev/md2 rl:/dev/md2 size:7814057984
/dev/md3 rl:/dev/md3 size:7814057984
/dev/sda rl:/dev/sda size:29313144
/dev/sda1 rl:/dev/disk/by-uuid/f0418aa8-0d3a-442c-9ada-6ed8ba80b687
size:27181948 mp:/ fs:ext3 used:5
/dev/sda5 rl:/dev/disk/by-uuid/29efb6d6-13c1-416c-ab22-eba0016361f5
size:2128581 fs:swap mp:swap
/dev/sdv rl:/dev/sdv size:1953514584
/dev/sdw rl:/dev/sdw size:1953514584
/dev/sdx rl:/dev/sdx size:1953514584
/dev/sdy rl:/dev/sdy size:1953514584

node02# /usr/local/bin/drbd-gui-helper-0.8.10 get-disk-info
WARNING: unknown partition: 65 80 1953514584 sdv
WARNING: unknown partition: 65 96 1953514584 sdw
WARNING: unknown partition: 65 112 1953514584 sdx
WARNING: unknown partition: 65 128 1953514584 sdy
/dev/md0 rl:/dev/md0 size:7814057984
/dev/md1 rl:/dev/md1 size:7814057984
/dev/md2 rl:/dev/md2 size:7814057984
/dev/md3 rl:/dev/md3 size:7814057984
/dev/sda rl:/dev/sda size:29313144
/dev/sda1 rl:/dev/disk/by-uuid/f0418aa8-0d3a-442c-9ada-6ed8ba80b687
size:27181948 mp:/ fs:ext3 used:5
/dev/sda5 rl:/dev/disk/by-uuid/29efb6d6-13c1-416c-ab22-eba0016361f5
size:2128581 fs:swap mp:swap
/dev/sdv rl:/dev/sdv size:1953514584
/dev/sdw rl:/dev/sdw size:1953514584
/dev/sdx rl:/dev/sdx size:1953514584
/dev/sdy rl:/dev/sdy size:1953514584

Kind regards,

Caspar Smit

2011/1/21 Rasto Levrinc <rasto.levrinc at linbit.com>
Post by Caspar Smit
Post by Caspar Smit
Hi Rasto,
...
Post by Caspar Smit
It shows the device for node1 (/dev/md3) but not for node2 (/dev/md3 is
hidden) I don't know why it is hidden because it is not in use by
anything
Post by Caspar Smit
else then drbd.
hmm, there must be something different on these two nodes. Could you show
me the output of /usr/local/bin/drbd-gui-helper-0.8.10 get-disk-info
from both nodes?
Thanks,
Rasto
Post by Caspar Smit
btw, the /dev/sdv /dev/sdw /dev/sdx /dev/sdy are assigned as spare disks
/dev/sdv is spare of /dev/md0
/dev/sdw is spare of /dev/md1
/dev/sdx is spare of /dev/md2
/dev/sdy is spare of /dev/md3
All md's are in the same sparegroup.
I guess those disks are not "available" or anything so should be hidden
in the Storage (DRBD)?
Kind regards,
Caspar Smit
2011/1/21 Rasto Levrinc <rasto.levrinc at linbit.com>
Post by Rasto Levrinc
Post by Caspar Smit
I can add to this that even after manually adding the r3 config to
Storage (DRBD) allthough the resource is up and running fine when I
Can you show me the resource config section of the resource r3? The
devices on which you have the DRBD, don't show up in the graph, right? The
DRBD MC, tries to hide some devices in order to save space, but
sometimes it hides to much.
Post by Caspar Smit
Post by Caspar Smit
Why isn't it possible to keep the rx.res files?
There's a plan to generate this style of config.
Rasto
--
: Dipl-Ing Rastislav Levrinc
: DRBD MC http://oss.linbit.com/drbd-mc/
: DRBD MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
_______________________________________________
drbd-mc mailing list drbd-mc at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-mc
_______________________________________________
drbd-mc mailing list drbd-mc at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-mc
--
: Dipl-Ing Rastislav Levrinc
: DRBD MC http://oss.linbit.com/drbd-mc/
: DRBD MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
_______________________________________________
drbd-mc mailing list
drbd-mc at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-mc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-mc/attachments/20110121/f1e21c88/attachment-0001.htm>
Caspar Smit
2011-01-24 10:24:01 UTC
Permalink
Suddenly out of the blue it started seeing r3 also. :)

Kind regards,

Caspar Smit


2011/1/21 Caspar Smit <c.smit at truebit.nl>
Post by Caspar Smit
node01# /usr/local/bin/drbd-gui-helper-0.8.10 get-disk-info
WARNING: unknown partition: 65 80 1953514584 sdv
WARNING: unknown partition: 65 96 1953514584 sdw
WARNING: unknown partition: 65 112 1953514584 sdx
WARNING: unknown partition: 65 128 1953514584 sdy
/dev/md0 rl:/dev/md0 size:7814057984
/dev/md1 rl:/dev/md1 size:7814057984
/dev/md2 rl:/dev/md2 size:7814057984
/dev/md3 rl:/dev/md3 size:7814057984
/dev/sda rl:/dev/sda size:29313144
/dev/sda1 rl:/dev/disk/by-uuid/f0418aa8-0d3a-442c-9ada-6ed8ba80b687
size:27181948 mp:/ fs:ext3 used:5
/dev/sda5 rl:/dev/disk/by-uuid/29efb6d6-13c1-416c-ab22-eba0016361f5
size:2128581 fs:swap mp:swap
/dev/sdv rl:/dev/sdv size:1953514584
/dev/sdw rl:/dev/sdw size:1953514584
/dev/sdx rl:/dev/sdx size:1953514584
/dev/sdy rl:/dev/sdy size:1953514584
node02# /usr/local/bin/drbd-gui-helper-0.8.10 get-disk-info
WARNING: unknown partition: 65 80 1953514584 sdv
WARNING: unknown partition: 65 96 1953514584 sdw
WARNING: unknown partition: 65 112 1953514584 sdx
WARNING: unknown partition: 65 128 1953514584 sdy
/dev/md0 rl:/dev/md0 size:7814057984
/dev/md1 rl:/dev/md1 size:7814057984
/dev/md2 rl:/dev/md2 size:7814057984
/dev/md3 rl:/dev/md3 size:7814057984
/dev/sda rl:/dev/sda size:29313144
/dev/sda1 rl:/dev/disk/by-uuid/f0418aa8-0d3a-442c-9ada-6ed8ba80b687
size:27181948 mp:/ fs:ext3 used:5
/dev/sda5 rl:/dev/disk/by-uuid/29efb6d6-13c1-416c-ab22-eba0016361f5
size:2128581 fs:swap mp:swap
/dev/sdv rl:/dev/sdv size:1953514584
/dev/sdw rl:/dev/sdw size:1953514584
/dev/sdx rl:/dev/sdx size:1953514584
/dev/sdy rl:/dev/sdy size:1953514584
Kind regards,
Caspar Smit
2011/1/21 Rasto Levrinc <rasto.levrinc at linbit.com>
Post by Caspar Smit
Post by Caspar Smit
Hi Rasto,
...
Post by Caspar Smit
It shows the device for node1 (/dev/md3) but not for node2 (/dev/md3 is
hidden) I don't know why it is hidden because it is not in use by
anything
Post by Caspar Smit
else then drbd.
hmm, there must be something different on these two nodes. Could you show
me the output of /usr/local/bin/drbd-gui-helper-0.8.10 get-disk-info
from both nodes?
Thanks,
Rasto
Post by Caspar Smit
btw, the /dev/sdv /dev/sdw /dev/sdx /dev/sdy are assigned as spare disks
/dev/sdv is spare of /dev/md0
/dev/sdw is spare of /dev/md1
/dev/sdx is spare of /dev/md2
/dev/sdy is spare of /dev/md3
All md's are in the same sparegroup.
I guess those disks are not "available" or anything so should be hidden
in the Storage (DRBD)?
Kind regards,
Caspar Smit
2011/1/21 Rasto Levrinc <rasto.levrinc at linbit.com>
Post by Rasto Levrinc
Post by Caspar Smit
I can add to this that even after manually adding the r3 config to
Storage (DRBD) allthough the resource is up and running fine when I
Can you show me the resource config section of the resource r3? The
devices on which you have the DRBD, don't show up in the graph, right? The
DRBD MC, tries to hide some devices in order to save space, but
sometimes it hides to much.
Post by Caspar Smit
Post by Caspar Smit
Why isn't it possible to keep the rx.res files?
There's a plan to generate this style of config.
Rasto
--
: Dipl-Ing Rastislav Levrinc
: DRBD MC http://oss.linbit.com/drbd-mc/
: DRBD MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
_______________________________________________
drbd-mc mailing list drbd-mc at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-mc
_______________________________________________
drbd-mc mailing list drbd-mc at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-mc
--
: Dipl-Ing Rastislav Levrinc
: DRBD MC http://oss.linbit.com/drbd-mc/
: DRBD MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
_______________________________________________
drbd-mc mailing list
drbd-mc at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-mc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-mc/attachments/20110124/eff97d22/attachment.htm>
Loading...