* [Drbd-dev] OpenSuse 11.2 8.7 Kernel packages not compile
@ 2010-03-04 11:22 udo1
0 siblings, 0 replies; 2+ messages in thread
From: udo1 @ 2010-03-04 11:22 UTC (permalink / raw)
To: drbd-dev
[-- Attachment #1: Type: text/plain, Size: 1445 bytes --]
Dear developers,
I want to use 8.7 on OpenSuSE 11.2, but the kernel modules rpm fails to
compile.
On the users list there was a question
[DRBD-user] In drbd-8.3.7 'make km-rpm' failed unter openSUSE-11.2
x86_64
<http://lists.linbit.com/pipermail/drbd-user/2010-January/013434.html>
/Henrik Kuhn
http://lists.linbit.com/pipermail/drbd-user/2010-January/013434.html
/regarding this issue, but no answers.
I have updated the other node to 8.7 (running CentOS 5.4) , but I need
the same for the OpenSuSE side.
I have problems with the 8.4 it freeze the server without any log if it
connects to the other node when in
cs:WFConnection ro:Secondary/Unknown ds:UpToDate/DUnknown
state and the connection and doing restart drbd while the other node has.
cs:WFConnection ro:Primary/Unknown ds:UpToDate/DUnknown
Drbd running on the Primary node and drbd started on the Secondary ->
result :freeze.
If I have stopped the service on the Primary node and have started on
the Secondary node, and than start on the primary node, it starts to
sync and no freeze occurs...
I renamed the halt command in case a handler doing this, but the same
result.
Can it caused by the different drbd version?
I am using Infiniband connection(sdp) on xen kernel.
Can somebody modify the drbd 8.7 tarball that it compiles on OpenSuSE
11.2? Or OpenSuSE 11.2 will not be supported?
Is the solution suggested by Henrik Kuhn ok?
Best Regards,
Udo Attila Fischer
[-- Attachment #2: Type: text/html, Size: 1909 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Drbd-dev] OpenSuse 11.2 8.7 Kernel packages not compile
@ 2010-03-12 11:17 udo1
0 siblings, 0 replies; 2+ messages in thread
From: udo1 @ 2010-03-12 11:17 UTC (permalink / raw)
To: drbd-dev
Hi Developers,
I have checked OpenSuSE 11.2 kernel and it has a patch from the 2.6.32
kernel
So I have wrote a patch to the drbd 8.3.7
Please check or made a similar modifications to enable OpenSuSE 11.2 usage
--- drbd-8.3.7/drbd/drbd_wrappers.h.orig 2010-03-11
15:40:17.000000000 +0100
+++ drbd-8.3.7/drbd/drbd_wrappers.h 2010-03-12 11:26:39.000000000 +0100
@@ -121,7 +121,7 @@
extern BIO_ENDIO_TYPE drbd_endio_write_sec BIO_ENDIO_ARGS(struct bio
*bio, int error);
extern BIO_ENDIO_TYPE drbd_endio_pri BIO_ENDIO_ARGS(struct bio *bio,
int error);
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
+#if (( LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32) ) && (
WITHFLIGHTPATCH != 1 ))
#define part_inc_in_flight(A, B) part_inc_in_flight(A)
#define part_dec_in_flight(A, B) part_dec_in_flight(A)
#endif
--- drbd-8.3.7/drbd/Makefile.orig 2010-03-12 11:22:42.000000000 +0100
+++ drbd-8.3.7/drbd/Makefile 2010-03-12 11:59:08.000000000 +0100
@@ -30,6 +30,7 @@
# The destination "root" directory. Meant to be overridden by
# packaging scripts.
DESTDIR ?= /
+WITHFLIGHTPATCH=1
# since 2.6.16, KERNELRELEASE may be empty,
# e.g. when building agains some (broken?) linux-header package.
@@ -48,7 +49,7 @@
include $(DRBDSRC)/Makefile-2.6
- override EXTRA_CFLAGS += -I$(DRBDSRC)
+ override EXTRA_CFLAGS += -I$(DRBDSRC)
-DWITHFLIGHTPATCH=$(WITHFLIGHTPATCH)
# remember KERNELRELEASE for install target
# .kernelversion can be included in Makefile as well as
# sourced from shell
--- drbd-8.3.7/configure.orig 2010-03-11 16:59:49.000000000 +0100
+++ drbd-8.3.7/configure 2010-03-12 11:30:02.000000000 +0100
@@ -3254,6 +3254,10 @@
fi
fi
+
+#Reset drbd/Makefile
+sed -i 's/WITHFLIGHTPATCH=1/WITHFLIGHTPATCH=0/g' drbd/Makefile
+
case "$DISTRO" in
gentoo)
{ $as_echo "$as_me:${as_lineno-$LINENO}: configured for Gentoo." >&5
@@ -3329,6 +3333,10 @@
if grep -q 'VERSION = 9' /etc/SuSE-release; then
CFLAGS="-g -O1"
fi
+ if grep -q 'VERSION = 11.2' /etc/SuSE-release; then
+ echo configure: SuSE 11.2 detected, modifying drbd/Makefile
+ sed -i 's/WITHFLIGHTPATCH=0/WITHFLIGHTPATCH=1/g' drbd/Makefile
+ fi
;;
"")
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to
determine what distribution we are running on. Distribution-specific
features will be disabled." >&5
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-12 11:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-04 11:22 [Drbd-dev] OpenSuse 11.2 8.7 Kernel packages not compile udo1
-- strict thread matches above, loose matches on Subject: below --
2010-03-12 11:17 udo1
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.