[DRBD-user] integrat drbd.ko 8.4 into kernel 3.0 source

Walter Robert Ditzler ditwal001 at gmail.com
Tue Aug 2 11:33:45 CEST 2011

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


hi all,

 

thanks to michael and florian most of my questions has been solved except
that one, listed below. how can I update the stable 3.0 kernel source with
the new drbd 8.4 files. I want to compile a new custom kernel and have all
new modules into it, (drbo.ko 8.4, .). so far I can create the deb utils 8.4
package from the git repo, but not more L. what I did is:

 

root at hst-ldeb-ksqx64:~# git clone git://git.drbd.org/drbd-8.4.git

root at hst-ldeb-ksqx64:~# cd /usr/src/drbd-8.4

root at hst-ldeb-ksqx64:~# ./autogen.sh

root at hst-ldeb-ksqx64:~# ./configure --prefix=/usr --with-km
--localstatedir=/var --sysconfdir=/etc

root at hst-ldeb-ksqx64:~# dpkg-buildpackage -rfakeroot -b -uc

root at hst-ldeb-ksqx64:~# cd /usr/src/drbd-8.4/drbd

root at hst-ldeb-ksqx64:~# make clean

root at hst-ldeb-ksqx64:~# make KDIR=/usr/src/linux-3.0

root at hst-ldeb-ksqx64:~# cd /usr/src/linux-3.0

root at hst-ldeb-ksqx64:~# make menuconfig

root at hst-ldeb-ksqx64:~# make clean

root at hst-ldeb-ksqx64:~# make EXTRAVERSION=-adx-xen KDEB_PKGVERSION=005
deb-pkg

 

by the way, I still get an error when I do the command " make
KDIR=/usr/src/linux-3.0" in "/usr/src/drbd-8.4/drbd".

***

include/linux/fs.h:1606: error: requested alignment is not a constant

In file included from include/net/sock.h:62,

                 from include/linux/connector.h:83,

                 from /usr/src/drbd-8.4/drbd/linux/drbd.h:28,

                 from /usr/src/drbd-8.4/drbd/drbd_buildtag.c:2:

include/net/dst.h: In function 'dst_hold':

include/net/dst.h:232: error: size of array 'type name' is negative

make[2]: *** [/usr/src/drbd-8.4/drbd/drbd_buildtag.o] Error 1

make[1]: *** [_module_/usr/src/drbd-8.4/drbd] Error 2

make[1]: Leaving directory `/usr/src/linux-3.0'

make: *** [kbuild] Error 2

root at hst-ldeb-ksqx64:/usr/src/drbd-8.4/drbd#

***

 

 

***

root at hst-ldeb-ksqx64:~# drbdadm

DRBD module version: 8.3.11

   userland version: 8.4.0

preferably kernel and userland versions should match.

 

USAGE: drbdadm [OPTION...] [-- DRBDSETUP-OPTION...] COMMAND
{all|RESOURCE...}

 

OPTIONS:

{--stacked|-S}

{--dry-run|-d}

{--verbose|-v}

{--config-file|-c} val

{--config-to-test|-t} val

{--drbdsetup|-s} val

{--drbdmeta|-m} val

{--drbd-proxy-ctl|-p} val

{--sh-varname|-n} val

{--force|-f}

{--peer|-P} val

{--version|-V}

 

COMMANDS:

attach                             detach

connect                            disconnect

up                                 down

primary                            secondary

invalidate                         invalidate-remote

outdate                            resize

syncer                             verify

pause-sync                         resume-sync

adjust                             wait-connect

wait-con-int                       role

cstate                             dstate

dump                               dump-xml

create-md                          show-gi

get-gi                             dump-md

wipe-md                            hidden-commands

 

Version: 8.3.10 (api:88)

GIT-hash: 28753f559ab51b549d16bcf487fe625d5919c49c build by
root at hst-ldeb-ksqx64, 2011-08-02 02:05:20

 

missing arguments

root at hst-ldeb-ksqx64:~#

***

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20110802/c406e6c6/attachment.htm>


More information about the drbd-user mailing list