Mailing List Archive

Crash on 2.4.9
Hi
(sorry about my english)
I decided write just for show my experience. I've try install drdb in a
Slackware, I compile kernel 2.4.9 and install ext3. I found some
troubles. The -mpreferred-stack-boundary=2 option results in erros, then
I tried compile the kernel without SMP, but I found so many problems
that I decided comment and use the other line about KAF_i386. I don't
have sgmltools, so I can't compile documentation too. After this, I
install drbd, drbdsetup, insmod drbd.o, install ext3, and everything
looks fine, so I start drbd:

on box1:
drbdsetup /dev/nb0 disk /dev/hda5 -d 3598528 -p
drbdsetup /dev/nb0 net 10.9.15.5 10.9.15.6 B

and on box2:
drbdsetup /dev/nb0 disk /dev/hda5 -d 3598528 -p
drbdsetup /dev/nb0 net 10.9.15.6 10.9.15.5 B
drbdsetup /dev/nb0 primary


this are the logs on box2:

/var/log/info:
Aug 29 17:23:02 linux kernel: drbd: module initialised. Version: 58
Aug 29 17:43:40 linux kernel: drbd0: user provided size = 3598528 KB
Aug 29 17:43:40 linux kernel: drbd : vmallocing 112454 B for bitmap.
@c8855020
Aug 29 17:47:14 linux kernel: drbd0: Connection established.
Aug 29 17:47:14 linux kernel: drbd0: size=3598528 KB / blksize=4096 B
Aug 29 17:47:14 linux kernel: drbd0: 1 1 8
Aug 29 17:47:14 linux kernel: drbd0: Synchronisation started blks=15
int=25
Aug 29 17:47:20 linux kernel: drbd : timeout detected! (pid=134)
Aug 29 17:47:20 linux kernel: drbd0: send timed out!! (pid=134)
Aug 29 17:47:20 linux kernel: drbd0: syncer send failed!!
Aug 29 17:47:20 linux kernel: drbd0: Syncer send failed.
Aug 29 17:47:20 linux kernel: drbd0: asender signaled. exiting
Aug 29 17:47:20 linux kernel: drbd0: Connection lost.(pc=0,uc=0)
Aug 29 18:19:48 linux kernel: drbd0: receiver exiting
Aug 29 18:35:44 linux kernel: Call Trace: [generic_make_request+180/288]
[drbd:drbd_make_request+875/1548] [ide_set_handler+97/116]
[do_rw_disk+397/1000] [generic_make_request+180/288]

/var/log/messages
Aug 29 17:43:40 linux kernel: drbd0: user provided size = 3598528 KB
Aug 29 17:43:40 linux kernel: drbd : vmallocing 112454 B for bitmap.
@c8855020
Aug 29 17:47:14 linux kernel: drbd0: Connection established.
Aug 29 17:47:14 linux kernel: drbd0: size=3598528 KB / blksize=4096 B
Aug 29 17:47:14 linux kernel: drbd0: 1 1 8
Aug 29 17:47:14 linux kernel: drbd0: Synchronisation started blks=15
int=25
Aug 29 17:47:20 linux kernel: drbd0: Connection lost.(pc=0,uc=0)
Aug 30 09:43:51 linux kernel: drbd: module initialised. Version: 58

/var/log/syslog
Aug 29 17:47:20 linux kernel: drbd : timeout detected! (pid=134)
Aug 29 17:47:20 linux kernel: drbd0: send timed out!! (pid=134)
Aug 29 17:47:20 linux kernel: drbd0: syncer send failed!!
Aug 29 17:47:20 linux kernel: drbd0: Syncer send failed.
Aug 29 17:47:20 linux kernel: drbd0: asender signaled. exiting

and I couldn't mount /dev/nb0 on box2.

box1 crashes... I couldn't fix, and I had reinstall slackware. It was my
fault??? I know that drbd on 2.4.x is under development, but I follow
the docs...
Well, now I'm going to install under 2.2.19, and I hope that it works.
By the way, can you tell me what I have to set and what I can not set in
linux kernel??? Thanks.


|\_____/|
/#######\
_|#(!) (!)#|_
--\#( Y )#/--
/#' `#\
[# #]
/\|| ||/\
|#|| ||#|
|#||###||#|#####
00OOO OOO00 #
====================###=======
---->SuLamItA GaRciA <----
Analista de Suporte
sulamita.garcia@example.com

ICQ 16465301
http://www.inf.ufsc.br/~sulamita

"Nossa geração não lamenta tanto
os crimes dos perversos quanto o
estarrecedor silêncio dos bondosos"
Martin L. King

================================
Re: Crash on 2.4.9 [ In reply to ]
* Sulamita Garcia <sulamita.garcia@example.com> [010830 19:59]:
> Hi
> (sorry about my english)
(E eu não falo bem Portuguese :)

> I decided write just for show my experience. I've try install drdb in a
> Slackware, I compile kernel 2.4.9 and install ext3. I found some
> troubles. The -mpreferred-stack-boundary=2 option results in erros, then
> I tried compile the kernel without SMP, but I found so many problems
> that I decided comment and use the other line about KAF_i386. I don't
> have sgmltools, so I can't compile documentation too.

The sgml docs are still the same as on the web-site and in the distribution
tarball you can find precompiled manpages.

> After this, I
> install drbd, drbdsetup, insmod drbd.o, install ext3, and everything
> looks fine, so I start drbd:
>
> on box1:
> drbdsetup /dev/nb0 disk /dev/hda5 -d 3598528 -p
> drbdsetup /dev/nb0 net 10.9.15.5 10.9.15.6 B
>
> and on box2:
> drbdsetup /dev/nb0 disk /dev/hda5 -d 3598528 -p
> drbdsetup /dev/nb0 net 10.9.15.6 10.9.15.5 B
> drbdsetup /dev/nb0 primary
>
>
> this are the logs on box2:
>
> /var/log/info:
> Aug 29 17:23:02 linux kernel: drbd: module initialised. Version: 58
> Aug 29 17:43:40 linux kernel: drbd0: user provided size = 3598528 KB
> Aug 29 17:43:40 linux kernel: drbd : vmallocing 112454 B for bitmap.
> @c8855020
> Aug 29 17:47:14 linux kernel: drbd0: Connection established.
> Aug 29 17:47:14 linux kernel: drbd0: size=3598528 KB / blksize=4096 B
> Aug 29 17:47:14 linux kernel: drbd0: 1 1 8
> Aug 29 17:47:14 linux kernel: drbd0: Synchronisation started blks=15
> int=25
> Aug 29 17:47:20 linux kernel: drbd : timeout detected! (pid=134)
> Aug 29 17:47:20 linux kernel: drbd0: send timed out!! (pid=134)
> Aug 29 17:47:20 linux kernel: drbd0: syncer send failed!!
> Aug 29 17:47:20 linux kernel: drbd0: Syncer send failed.
> Aug 29 17:47:20 linux kernel: drbd0: asender signaled. exiting
> Aug 29 17:47:20 linux kernel: drbd0: Connection lost.(pc=0,uc=0)
> Aug 29 18:19:48 linux kernel: drbd0: receiver exiting
> Aug 29 18:35:44 linux kernel: Call Trace: [generic_make_request+180/288]
> [drbd:drbd_make_request+875/1548] [ide_set_handler+97/116]
> [do_rw_disk+397/1000] [generic_make_request+180/288]
>
> /var/log/messages
> Aug 29 17:43:40 linux kernel: drbd0: user provided size = 3598528 KB
> Aug 29 17:43:40 linux kernel: drbd : vmallocing 112454 B for bitmap.
> @c8855020
> Aug 29 17:47:14 linux kernel: drbd0: Connection established.
> Aug 29 17:47:14 linux kernel: drbd0: size=3598528 KB / blksize=4096 B
> Aug 29 17:47:14 linux kernel: drbd0: 1 1 8
> Aug 29 17:47:14 linux kernel: drbd0: Synchronisation started blks=15
> int=25
> Aug 29 17:47:20 linux kernel: drbd0: Connection lost.(pc=0,uc=0)
> Aug 30 09:43:51 linux kernel: drbd: module initialised. Version: 58
>
> /var/log/syslog
> Aug 29 17:47:20 linux kernel: drbd : timeout detected! (pid=134)
> Aug 29 17:47:20 linux kernel: drbd0: send timed out!! (pid=134)
> Aug 29 17:47:20 linux kernel: drbd0: syncer send failed!!
> Aug 29 17:47:20 linux kernel: drbd0: Syncer send failed.
> Aug 29 17:47:20 linux kernel: drbd0: asender signaled. exiting
>
> and I couldn't mount /dev/nb0 on box2.
>
> box1 crashes... I couldn't fix, and I had reinstall slackware. It was my
> fault??? I know that drbd on 2.4.x is under development, but I follow
> the docs...
> Well, now I'm going to install under 2.2.19, and I hope that it works.
> By the way, can you tell me what I have to set and what I can not set in
> linux kernel??? Thanks.
>

Are you shure that you have not mixed SMP/non-SMP kernel module ?
I was not aware that there is a bug that crashes the box in
generic_make_request().
But I have to admitt that it is more than a yer not that I had a
SMP machine for DRBD development. -- There are probabely some
bugs which will only show up on SMP machines.

PS: You should try to get rid of the timeouts by increasing the
timeout value. eg: drbdsetup ... -t 120 -i 15 -c 15


-Philipp
Re: Crash on 2.4.9 [ In reply to ]
>I decided write just for show my experience. I've try install drdb in a
>Slackware, I compile kernel 2.4.9 and install ext3. I found some

You have to use the source from cvs in order to run it on 2.4.x kernels.

With blanc 0.5.8 source i had the same probs with 2.4.x kernel

Michael