Discussion:
[drbd-mc] not all resources detected in dmc
Peter Beck
2010-12-31 03:27:21 UTC
Permalink
Hi all,

I still have issues with my resources on debian squeeze with dmc.
There are two resources (lvm) configured on my system, but dmc detects
just one of them. I have also tried to add the missing resource to the
dmc generated /etc/drbd.conf, but it didn't work. the second resource is
not detected under "Block devices", but drbd itself is working without
issues:

m:res cs ro ds p
1:res-exch03 Connected Primary/Secondary UpToDate/UpToDate C
2:res-exch10 Connected Primary/Secondary UpToDate/UpToDate C

These are my resource-configs:
http://debian.pastebin.com/01C1m4EC

and a screenshot of dmc's drbd-entry is posted here:
http://derp.co.uk/ab3e2.info

Anybody can give me a hint how to get the second resource into dmc ?

In the beginning I've also had a test-resource (drbd0) which I have
deleted after a while. Can this be an issue and I should rename the
existing two resources to drbd0 and drbd1 ? drbd0 was the test-resource
which is removed now...

Thanks
Peter
Rasto Levrinc
2010-12-31 06:52:26 UTC
Permalink
Post by Peter Beck
Hi all,
I still have issues with my resources on debian squeeze with dmc.
There are two resources (lvm) configured on my system, but dmc detects
just one of them. I have also tried to add the missing resource to the dmc
generated /etc/drbd.conf, but it didn't work. the second resource is not
m:res cs ro ds p
1:res-exch03 Connected Primary/Secondary UpToDate/UpToDate C
2:res-exch10 Connected Primary/Secondary UpToDate/UpToDate C
Could you post output from:

lvdisplay -C
cat /proc/partitions
/usr/local/bin/drbd-gui-helper-0.8.6 get-disk-info

from both nodes, please?
Post by Peter Beck
In the beginning I've also had a test-resource (drbd0) which I have
deleted after a while. Can this be an issue and I should rename the
existing two resources to drbd0 and drbd1 ? drbd0 was the test-resource
which is removed now...
That shouldn't be an issue.

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.
Peter Beck
2010-12-31 14:20:55 UTC
Permalink
Post by Rasto Levrinc
lvdisplay -C
cat /proc/partitions
/usr/local/bin/drbd-gui-helper-0.8.6 get-disk-info
from both nodes, please?
Hi Rasto,

sure, it's on pastbin cause it's quiet long...
http://debian.pastebin.com/erRHDeXL

For me it seems to be ok - both drbd-resources are there...
but I'm sure it's a beginners fault something in my config is wrong...;)

Regards
Peter
--
Wer die Freiheit aufgibt um Sicherheit zu gewinnen,
der wird am Ende beides verlieren.
Rasto Levrinc
2010-12-31 14:37:59 UTC
Permalink
Post by Peter Beck
lvdisplay -C cat /proc/partitions /usr/local/bin/drbd-gui-helper-0.8.6
get-disk-info
from both nodes, please?
Hi Rasto,
sure, it's on pastbin cause it's quiet long...
http://debian.pastebin.com/erRHDeXL
For me it seems to be ok - both drbd-resources are there...
but I'm sure it's a beginners fault something in my config is wrong...;)
/dev/datenvg/exchange /dev/dm-2 62947328 /mnt/vm/exchange ext4 69
/dev/datenvg/exchange03 /dev/dm-3 17858560 /mnt/vm/exchange03 ext4 85

Well, you shouldn't mount /dev/datenvg/exchange etc. but /dev/drbdX devices.

regards,
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.
Peter Beck
2010-12-31 14:47:53 UTC
Permalink
Post by Rasto Levrinc
Well, you shouldn't mount /dev/datenvg/exchange etc. but /dev/drbdX devices.
Hi Rasto,

Hm. It's not in my fstab, i don't have an entry for that in my fstab on
both nodes as I am planning to let the cluster mount theses devices. I
have manually mounted the drbX devices on the first node, with mount
this is the ouput on node 1:

[...]
/dev/drbd2 on /mnt/vm/exchange type ext4 (rw)
/dev/drbd1 on /mnt/vm/exchange03 type ext4 (rw)

Cheers
Peter
--
Wer die Freiheit aufgibt um Sicherheit zu gewinnen,
der wird am Ende beides verlieren.
Rasto Levrinc
2011-01-04 11:04:56 UTC
Permalink
Post by Rasto Levrinc
/dev/datenvg/exchange /dev/dm-2 62947328 /mnt/vm/exchange ext4 69
Oh, well. The real problem is that /dev/datenvg/exchange is not a link to
the /dev/mapper/ directory anymore. This will be easy enough to fix.

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.
Peter Beck
2011-01-04 11:51:57 UTC
Permalink
Post by Rasto Levrinc
Oh, well. The real problem is that /dev/datenvg/exchange is not a link to
the /dev/mapper/ directory anymore. This will be easy enough to fix.
Hi Rasto,

this is strange. For me it seems to be linked, isn't it ?
Anyway, it's just a test-vm with exchange on this lv... ;-)
I'll try to setup another resource and then I'll see if the new resource
will be visible in DMC...

ls -lah /dev/datenvg/exchange
lrwxrwxrwx 1 root root 7 Jan 3 04:52 /dev/datenvg/exchange -> ../dm-2

ls -lah /dev/datenvg/exchange03
lrwxrwxrwx 1 root root 7 Jan 3 04:52 /dev/datenvg/exchange03 -> ../dm-3

ls -lah /dev/mapper/
total 0
drwxr-xr-x 2 root root 180 Jan 3 16:52 .
drwxr-xr-x 21 root root 3.5K Jan 3 17:02 ..
crw------- 1 root root 10, 59 Jan 3 04:52 control
lrwxrwxrwx 1 root root 7 Jan 3 04:52 datenvg-daten -> ../dm-4
lrwxrwxrwx 1 root root 7 Jan 3 04:52 datenvg-exchange -> ../dm-2
lrwxrwxrwx 1 root root 7 Jan 3 04:52 datenvg-exchange03
-> ../dm-3
lrwxrwxrwx 1 root root 7 Jan 3 04:52 odin-root -> ../dm-0
lrwxrwxrwx 1 root root 7 Jan 3 04:52 odin-swap_1 -> ../dm-1

Regards
Peter
Rasto Levrinc
2011-01-04 12:37:40 UTC
Permalink
Post by Peter Beck
Post by Rasto Levrinc
Oh, well. The real problem is that /dev/datenvg/exchange is not a link
to the /dev/mapper/ directory anymore. This will be easy enough to fix.
this is strange. For me it seems to be linked, isn't it ?
Because it wasn't the real problem. :) This time I could reproduce it. The
real problem is the name that get discarded by mistake.

If DMC finds a block device name that ends by some number it doesn't show
devices with the same name but without this number. E.g. sda3 -> sda, or
exchange03 -> exchange. This is to reduce number of devices that are
shown, but in this case it reduced too much.

I'll fix it in the next release. If you'd name your lvm exchange00 or
something like that it would work.

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.
Peter Beck
2011-01-04 13:41:50 UTC
Permalink
Post by Rasto Levrinc
Because it wasn't the real problem. :) This time I could reproduce it.
The real problem is the name that get discarded by mistake.
somehow it's not a mistake - it's a sign - don't use exchange ;)
Post by Rasto Levrinc
If DMC finds a block device name that ends by some number it doesn't
show devices with the same name but without this number. E.g. sda3 ->
sda, or exchange03 -> exchange. This is to reduce number of devices
that are shown, but in this case it reduced too much.
I'll fix it in the next release. If you'd name your lvm exchange00 or
something like that it would work.
I really appreciate your efforts, thanks very much

Peter

Loading...