[drbd-mc] drbd-mc-0.5.1 could not find disk
Matthias Albert
matthias at ma-c.de
Thu Feb 4 17:00:22 CET 2010
Am 04.02.2010 um 15:38 schrieb Rasto Levrinc:
> On Thu, February 4, 2010 2:58 pm, Matthias Albert wrote:
>> Hi - me again :-),
>>
>
> It's possible. :) Can you try it?
ah I see. I unpacked the DMC-xxx.jar und made my changes to "src/drbd/help-progs/drbd-gui-helper". After re-zipping it and starting it, the GUI was no longer useable.
As I looked deeper into the jar file I saw system calls like "/usr/local/bin/drbd-gui-helper all".
So I changed the file on my cluster server (srv-ovz01 and srv-ovz02) -> and now I can select the drbd device.
-> worked for me.
Best wishes,
Matthias
>
> you can start DRBD-MC with --keep-helper option, so that drbd-gui-helper
> does not get overwritten.
>
> Thanks
>
> Rasto
>
>>
>> perhaps it is just a problem with the major number in /proc/partitions?
>>
>> ---snip---
>> cat /proc/partitions major minor #blocks name
>>
>> 8 0 78124032 sda
>> 8 1 240943 sda1
>> 8 2 73923097 sda2
>> 8 3 3951990 sda3
>> 8 16 1171874816 sdb
>> 8 17 1171874800 sdb1
>> 8 32 5585929216 sdc
>> 8 33 5585929182 sdc1
>> 254 0 524288000 dm-0
>> 254 1 307200 dm-1
>>
>>
>> 147 0 524288000 drbd0
>>
>>
>> ---original drbd-gui-helper script (no drbd device found)---
>> perl drbd-gui-helper.orig get-disk-info /dev/dm-0 /dev/dm-0 524288000
>> /dev/dm-1 /dev/dm-1 307200
>> /dev/sda /dev/sda 78124032
>> /dev/sda1 /dev/sda1 240943 /boot ext2 13
>> /dev/sda2 /dev/sda2 73923097 / ext3 2
>> /dev/sda3 /dev/sda3 3951990 swap swap
>> /dev/sdb /dev/sdb 1171874816
>> /dev/sdc /dev/sdc 5585929216
>> /dev/sdc1 /dev/sdc1 5585929182 /export/storage xfs 1
>> ---/original drbd-gui-helerp script---
>>
>>
>> ---patched script---
>> diff -u drbd-gui-helper.orig drbd-gui-helper --- drbd-gui-helper.orig
>> 2010-02-04 14:47:17.000000000 +0100
>> +++ drbd-gui-helper 2010-02-04 14:45:22.000000000 +0100
>> @@ -359,6 +359,7 @@
>> || $major == 8
>> || $major == 72
>> || $major == 202
>> + || $major == 147
>> || $major == 104) { # ide and scsi disks
>> # 104 cciss0
>> if ($_ !~ /\d$/) { # whole disk
>>
>> perl drbd-gui-helper get-disk-info
>>
>> /dev/dm-0 /dev/dm-0 524288000
>> /dev/dm-1 /dev/dm-1 307200
>>
>>
>> /dev/drbd0 /dev/drbd0 524288000 /vz ext3 5
>>
>>
>> /dev/sda /dev/sda 78124032
>> /dev/sda1 /dev/sda1 240943 /boot ext2 13
>> /dev/sda2 /dev/sda2 73923097 / ext3 2
>> /dev/sda3 /dev/sda3 3951990 swap swap
>> /dev/sdb /dev/sdb 1171874816
>> /dev/sdc /dev/sdc 5585929216
>> /dev/sdc1 /dev/sdc1 5585929182 /export/storage xfs 1
>>
>>
>> What do you mean?
>>
>>
>> Best wishes,
>>
>>
>> Matthias
>>
>>
>>
>>
>> Am 04.02.2010 um 12:31 schrieb Matthias Albert:
>>
>>
>>> Hi all,
>>>
>>>
>>> first, thanks a lot for creating such a tool :-). It looks really good
>>> and it seems that with this tool everyone can easily create the
>>> required config for heartbeat/pacemaker and so on.
>>>
>>> ATM I've the problem that I can't add the service "Filesystem +
>>> Linbit:DRBD" to my cluster, because I can't choose the drbd device.
>>>
>>>
>>> My setup is like this
>>>
>>>
>>> Debian Lenny/drbd 8.3.2
>>> pvscan PV /dev/sdb1 VG drbdlvm1 lvm2 [1.09 TB / 617.29 GB free]
>>> vgscan Found volume group "drbdlvm1" using metadata type lvm2
>>> lvdisplay LV Name /dev/drbdlvm1/lvovz1
>>> LV Name /dev/drbdlvm1/lvovz1-meta
>>>
>>>
>>> On top of my lvm device /dev/drbdlvm1/lvoz1 I've created my drbd device
>>>
>>>
>>> resource r0 {
>>>
>>> device /dev/drbd0; disk /dev/mapper/drbdlvm1-lvovz1; meta-disk
>>> /dev/mapper/drbdlvm1-lvovz1--meta[0];
>>>
>>>
>>> With drbd-mc, I can only select my block devices like sda sda1 sdb but
>>> not drbd0. At the console where I started drbd-mc I can see the
>>> following output
>>>
>>> ---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 ---snap---
>>>
>>>
>>> Is this a missing feature or just a bug :-)?
>>>
>>>
>>> Best wishes,
>>>
>>>
>>> Matthias
>>>
>>>
>>> _______________________________________________
>>> 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://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
More information about the drbd-mc
mailing list