[DRBD-user] disconnecting hangs after ko-count failure

Lars Ellenberg lars.ellenberg at linbit.com
Mon Jan 28 14:16:37 CET 2008

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


On Wed, Jan 23, 2008 at 09:59:22PM +0100, Walter Haidinger wrote:
> 
> > echo 1 > /proc/sys/kernel/sysrq
> > echo h > /proc/sysrq-trigger
> > dmesg | tail
> > gives you the "help line".
> 
> SysRq : HELP : loglevel0-8 reBoot Crashdump tErm Full kIll saK showMem Nice powerOff showPc show-all-timers(Q) unRaw Sync showTasks Unmount shoW-blocked-tasks
> 
> > capital letters indicate the triggers, which are to be used
> > (as lower case, though) for the respective action.
> 
> # echo w shows:
> SysRq : Show Blocked State
> 
>                          free                        sibling
>   task             PC    stack   pid father child younger older
> drbd0_receive D D7335F3C     0 13018      2 (L-TLB)
>        d7335f50 00000046 00000002 d7335f3c d7335f38 00000000 e23958e4 3b9aca00
>        e0502970 c03f19c0 c03f19c0 554af280 00026c06 d7335f40 d7335f38 0000000a
>        ced8b580 000307d1 00000000 e0502a94 c389f9c0 00000001 00000000 00000000
> Call Trace:
>  [<c0118bb8>] __wake_up+0x38/0x50
>  [<f6b3b3d6>] drbd_disconnect+0x1a6/0x5f0 [drbd]
>  [<c0132b70>] autoremove_wake_function+0x0/0x40
>  [<f6b36210>] w_prev_work_done+0x0/0x30 [drbd]
>  [<f6b3d607>] drbdd_init+0x97/0x1d0 [drbd]
>  [<f6b4e10c>] drbd_thread_setup+0xac/0xf0 [drbd]
>  [<f6b4e060>] drbd_thread_setup+0x0/0xf0 [drbd]
>  [<c0104ceb>] kernel_thread_helper+0x7/0x1c
>  =======================

so, what you now need to do is:
use the exact same source and config, drbd and kernel,
you used to build this module,
then do
  cd drbd-8.0.8/drbd
  make KDIR=/usr/src/linux-*/bla/blub EXTRA_CFLAGS=-g
and on the resulting drbd.ko, do
  gdb --se=drbd.ko -ex 'list *(drbd_disconnect+0x1a6 -10)' -ex 'list *(drbd_disconnect+0x1a6)' -ex quit

-- 
: Lars Ellenberg                           http://www.linbit.com :
: DRBD/HA support and consulting             sales at linbit.com :
: LINBIT Information Technologies GmbH      Tel +43-1-8178292-0  :
: Vivenotgasse 48, A-1120 Vienna/Europe     Fax +43-1-8178292-82 :
__
please use the "List-Reply" function of your email client.



More information about the drbd-user mailing list