[drbd-mc] drbd-mc-0.5.1 could not find disk

Rasto Levrinc rasto.levrinc at linbit.com
Thu Feb 4 21:45:49 CET 2010


On Thu, February 4, 2010 7:07 pm, Matthias Albert wrote:
>

> Am 04.02.2010 um 19:02 schrieb Rasto Levrinc:
>
>
>>
>> On Thu, February 4, 2010 12:39 pm, Matthias Albert wrote:
>>
>>
>>> ---snip---
>>> APPWARNING: cannot select:
>>> APPWARNING: could not find disk: /dev/mapper/drbdlvm1-lvovz1 on host:
>>> srv-ovz02 APPWARNING: could not find disk: /dev/mapper/drbdlvm1-lvovz1
>>> on host: srv-ovz01
>>>
>>
>> The real problem here is that it does not see the /dev/mapper/...
>> devices. I'm pretty sure I've fixed that once. :) I'm afraid that with
>> your patch the DRBD-MC will not work properly.
>>
>> You can try to define the lvm devices as /dev/drbdlvm1/lvovz1 in the
>> drbd.conf, till I'll fix that.
>
> I've tried that before. At the beginning I had /dev/drbdlvm1/lvoz1 in my
> drbd.conf. Because of /dev/drbdlvm1/lvoz1 is only a symlink to
> /dev/mapper/drbdlvm1-lvovz1 I decided
> to change the device location in my drbd.conf.
>

It turned out that the problem is that the device mapper has major number
254 and it thinks it is a raid. The quick fix for you is to change the
following line:

} elsif ($major == 9 || $major == 254) { # raid

to:

} elsif ($major == 9) { # raid

Rasto

-- 
: Dipl-Ing Rastislav Levrinc
: 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.




More information about the drbd-mc mailing list