OpenVZ Forum - RDF feed
type: channel
items: Building DRBD 8.3.4 against OpenVZ kernel 2.6.18-164.2.1.el5.028stab066.7
items: Re: Building DRBD 8.3.4 against OpenVZ kernel 2.6.18-164.2.1.el5.028stab066.7

Building DRBD 8.3.4 against OpenVZ kernel 2.6.18-164.2.1.el5.028stab066.7
type: item
description: I am failing to build a DRBD 8.3.4 RPM packet on a system running the OpenVZ kernel 2.6.18-164.2.1.el5.028stab066.7. Building the DRBD 8.3.4 RPM packet on the same system running the CentOS kernel 2.6.18-164.2.1.el5 works fine. The DRBD source code is taken from http://oss.linbit.com/drbd/8.3/drbd-8.3.4.tar.gz My questions: - Are there any hints to make DRBD 8.3.4 compile successfully on 2.6.18-164.2.1.el5.028stab066.7? - Is it safe to use the DRBD 8.3.4 userland tools built on the CentOS kernel 2.6.18-164.2.1.el5 on the 2.6.18-164.2.1.el5.028stab066.7-based OpenVZ host? Thanks for your help! David These kernel-related packages are installed on the system: [root@hostname drbd-8.3.4]# rpm -qa | grep kernel kernel-headers-2.6.18-164.6.1.el5 ovzkernel-devel-2.6.18-164.2.1.el5.028stab066.7 kernel-devel-2.6.18-164.6.1.el5 kernel-2.6.18-164.2.1.el5 ovzkernel-2.6.18-164.2.1.el5.028stab066.7 kernel-2.6.18-164.6.1.el5 kernel-devel-2.6.18-164.2.1.el5 [root@hostname drbd-8.3.4]# Here are the details about the failing build process: [root@hostname drbd-8.3.4]# uname -a Linux hostname.domain.net 2.6.18-164.2.1.el5.028stab066.7 #1 SMP Thu Nov 26 06:53:20 MSK 2009 i686 i686 i386 GNU/Linux [root@hostname drbd-8.3.4]# [root@hostname drbd-8.3.4]# pwd /tmp/drbd-8.3.4 [root@hostname drbd-8.3.4]# make rpm checking for presence of 8\.3\.4 in various changelog files debian/changelog needs update [ignored] make -C drbd drbd_buildtag.c make[1]: Entering directory `/tmp/drbd-8.3.4/drbd' make[1]: Leaving directory `/tmp/drbd-8.3.4/drbd' make -C documentation doc make[1]: Entering directory `/tmp/drbd-8.3.4/documentation' make[1]: Nothing to be done for `doc'. make[1]: Leaving directory `/tmp/drbd-8.3.4/documentation' test -e .filelist ln -sf drbd/linux/drbd_config.h drbd_config.h rm -f drbd-8.3.4 ln -s . drbd-8.3.4 for f in $(<.filelist) ; do [ -e $f ] && continue ; echo missing: $f ; exit 1; done grep debian .filelist >/dev/null 2>&1 && _DEB=-debian || _DEB="" ; \ tar --owner=0 --group=0 -cz…
creator: triangle
date: 2009-12-01T09:16:15-00:00

Re: Building DRBD 8.3.4 against OpenVZ kernel 2.6.18-164.2.1.el5.028stab066.7
type: item
description: Hi, in this OpenVZ Version, drbd is upgraded to 8.3.4 in the prebuild kernel package -> please see changelog at: http://wiki.openvz.org/Download/kernel/rhel5/028stab066.7 Only load the drbd linux kernel module on your hardware node. Bye, Thorsten
creator: curx
date: 2009-12-01T14:27:03-00:00

Re: Building DRBD 8.3.4 against OpenVZ kernel 2.6.18-164.2.1.el5.028stab066.7
type: item
description: Hmm... Is your answer really correct or do I get something wrong? The OpenVZ kernel 2.6.18-164.2.1.el5.028stab066.7 contains - as expected - only the kernel module of DRBD: [root@hostname ~]# rpm --query --filesbypkg ovzkernel-2.6.18-164.2.1.el5.028stab066.7 | grep drbd ovzkernel /lib/modules/2.6.18-164.2.1.el5.028stab066.7/kernel/drivers/ block/drbd ovzkernel /lib/modules/2.6.18-164.2.1.el5.028stab066.7/kernel/drivers/ block/drbd/drbd.ko [root@hostname ~]# The DRBD userland tools (such as /sbin/drbdadm) are obviously provided by another package. When running the OpenVZ kernel 2.6.18-128.1.1.el5.028stab062.3 (which contains DRBD 8.3.0 kernel code) I am using the package drbd-8.3.0-3 to get these tools: [root@hostname ~]# rpm --query --filesbypkg drbd-8.3.0-3 drbd /etc/drbd.conf drbd /etc/ha.d/resource.d/drbddisk drbd /etc/ha.d/resource.d/drbdupper drbd /etc/rc.d/init.d/drbd drbd /etc/xen/scripts/block-drbd drbd /sbin/drbdadm drbd /sbin/drbdmeta drbd /sbin/drbdsetup drbd /usr/lib/drbd/notify-out-of-sync.sh drbd /usr/lib/drbd/notify-split-brain.sh drbd /usr/lib/drbd/notify.sh drbd /usr/lib/drbd/outdate-peer.sh drbd /usr/lib/drbd/snapshot-resync-target-lvm.sh drbd /usr/lib/drbd/unsnapshot-resync-target-lvm.sh drbd /usr/sbin/drbd-overview.pl drbd /usr/share/cluster/drbd.metadata drbd /usr/share/cluster/drbd.sh drbd /usr/share/doc/drbd-8.3.0 drbd /usr/share/doc/drbd-8.3.0/COPYING drbd /usr/share/doc/drbd-8.3.0/README drbd /usr/share/doc/drbd-8.3.0/drbd.conf drbd /usr/share/doc/drbd-8.3.0/file.list drbd /usr/share/man/man5/drbd.conf.5.gz drbd /usr/share/man/man8/drbd.8.gz drbd /usr/share/man/man8/drbdadm.8.gz drbd /usr/share/man/man8/drbddisk.8.gz drbd /usr/share/man/man8/drbdmeta.8.gz drbd /usr/share/man/man8/drbdsetup.8.gz drbd /var/lib/drbd [root@hostname ~]# BTW: The RPM package drbd-8.3.0-3 built fine against the OpenVZ kernel 2.6.18-128.1.1.el5.028stab062.3. Please correct me if I am misunderstanding something. Otherwise, I am still looking for some advise related t…
creator: triangle
date: 2009-12-02T09:52:01-00:00

Re: Building DRBD 8.3.4 against OpenVZ kernel 2.6.18-164.2.1.el5.028stab066.7
type: item
description: [quote title=triangle wrote on Wed, 02 December 2009 BTW: The RPM package drbd-8.3.0-3 built fine against the OpenVZ kernel 2.6.18-128.1.1.el5.028stab062.3. Please correct me if I am misunderstanding something. Otherwise, I am still looking for some advise related to my original question. Thanks, David[/quote] Hm, didn't check drbd 8.3.4, but for the *current* version 8.3.6 there's the define "HAVE_LINUX_BYTEORDER_SWABB_H" which drbd should set properly: - obviously your build fails because of missing "linux/swab.h" - either your drbd does not find it there (because it's missing, or more likely it is "linux/byteorder/swap.h"), and/or drbd fails to set HAVE_LINUX_BYTEORDER_SWABB_H correctly The latter probably could be fixed by editing drbd_config.h manually... jleg
creator: jleg
date: 2009-12-02T12:00:33-00:00

Re: Building DRBD 8.3.4 against OpenVZ kernel 2.6.18-164.2.1.el5.028stab066.7
type: item
description: reHi, OpenVZ ver. // drbd ver. 028stab066.7 // 8.3.4 028stab064.8 // 8.3.0 028stab064.7 // -"- 028stab064.4 // -"- 028stab062.3 // -"- (...) > The DRBD userland tools (such as /sbin/drbdadm) are obviously > provided by another package. When running the OpenVZ kernel > 2.6.18-128.1.1.el5.028stab062.3 (which contains DRBD 8.3.0 > kernel code) => you need to install the drbd usertools v8.3.4 with OpenVZ Linux kernel 028stab066.7 Bye, Thorsten
creator: curx
date: 2009-12-02T13:11:17-00:00