OpenVZ Forum


Home » General » Support » drbd with 2.6.24
drbd with 2.6.24 [message #31090] Wed, 18 June 2008 02:26 Go to next message
davekempe is currently offline  davekempe
Messages: 12
Registered: March 2008
Junior Member
Hi Guys,
I was wondering if anyone has got drbd working with 2.6.24?
I am going to try again with the latest ubuntu kernel, but its buggy as hell.
I build my own 2.6.24 kernel with ovz5 and it works great, and I even got the IBCS patch working in a VE just great. Only problem is now that DBRD doesn't work.
I have tried build drbd-8.2.6.tar.gz and it doesnt work.

Enabling drbd after patching vanilla 2.6.24 and building gives this error:


CC [M] drivers/block/drbd/drbd_buildtag.o
CC [M] drivers/block/drbd/drbd_bitmap.o
In file included from drivers/block/drbd/drbd_bitmap.c:34:
drivers/block/drbd/drbd_int.h:751:1: warning: "BIT" redefined
In file included from drivers/block/drbd/drbd_bitmap.c:27:
include/linux/bitops.h:6:1: warning: this is the location of the previous definition
In file included from drivers/block/drbd/drbd_int.h:1159,
from drivers/block/drbd/drbd_bitmap.c:34:
drivers/block/drbd/drbd_compat_wrappers.h: In function ‘drbd_generic_make_request’:
drivers/block/drbd/drbd_compat_wrappers.h:130: error: too many arguments to function ‘bio_endio’
drivers/block/drbd/drbd_compat_wrappers.h:135: error: too many arguments to function ‘bio_endio’
drivers/block/drbd/drbd_bitmap.c: In function ‘drbd_bm_page_io_async’:
drivers/block/drbd/drbd_bitmap.c:656: warning: assignment from incompatible pointer type
drivers/block/drbd/drbd_bitmap.c:660: error: too many arguments to function ‘bio_endio’
make[4]: *** [drivers/block/drbd/drbd_bitmap.o] Error 1
make[3]: *** [drivers/block/drbd] Error 2
make[2]: *** [drivers/block] Error 2
make[1]: *** [drivers] Error 2
make[1]: Leaving directory `/home/sol1/linux-2.6.24'
make: *** [debian/stamp-build-kernel] Error 2

any suggestions or should I go for 2.6.18?

dave
Re: drbd with 2.6.24 [message #31128 is a reply to message #31090] Wed, 18 June 2008 22:29 Go to previous messageGo to next message
davekempe is currently offline  davekempe
Messages: 12
Registered: March 2008
Junior Member
any comments? I need to know today so I can either fix it or go back to 2.6.18?

thanks

dave
Re: drbd with 2.6.24 [message #31206 is a reply to message #31128] Fri, 20 June 2008 22:56 Go to previous messageGo to next message
davekempe is currently offline  davekempe
Messages: 12
Registered: March 2008
Junior Member
we rebuilt with drbd not as a module, but compiled in and it seems to work ok. Not sure why, but its working ok.
Re: drbd with 2.6.24 [message #31976 is a reply to message #31090] Wed, 16 July 2008 18:17 Go to previous messageGo to next message
Dusty is currently offline  Dusty
Messages: 1
Registered: July 2008
Location: Cologne, Germany
Junior Member
Hi,

there are some functions changed in 2.6.24 so that the drbd does not compile against it "as is" ... I tried to patch out all things I found not working and at least DRBD now compiles. It still has warnings, maybe I'll look a little deeper into that later.

I attach the patch to this posting, maybe someone likes to help me testing if it works. I'll start testing tonight and I'll keep you informed ... hopefully about success Wink

Best regards
Dusty
Re: drbd with 2.6.24 [message #31990 is a reply to message #31090] Wed, 16 July 2008 21:39 Go to previous message
davekempe is currently offline  davekempe
Messages: 12
Registered: March 2008
Junior Member
we found that if you compile it into the kernel and not as a module it seemed to be fine
production level testing indicates its ok.
though I got some worrying cpu soft lockup problems I am still trying to investigate
Previous Topic: WebVZ OpenVZ Management Tool
Next Topic: MZ mismatch on migration with Stock Kernels
Goto Forum:
  


Current Time: Sun Jul 14 07:11:42 GMT 2024

Total time taken to generate the page: 0.02301 seconds