[DRBD-user] DRBD adn LIO Version 3.4 on Debian Lenny

Matthew F. Hymowitz mhymowitz at gmpnet.net
Thu Oct 21 03:27:09 CEST 2010

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


I am trying to build a two node cluster using corosync, pacemaker and DRBD on debian Lenny.   I am trying to use version 3.4 of LIO target as my iSCSI Target (Version 3.1 did not work with microsoft hyperV clustering).   I actually have all of the pieces except for DRBD working.   I am not sure how to integrate DRBD with the custom 2.6.34 kernel that LIO 3.4 uses.   When I simply try to run m-a a-i drbd8-source I get the compile errors (see below).   I have the kernel tree located /root/lio_target and set KERNELDIRS appropriately.  This is of course after doing a apt-get install drbd8-utils and apt-get install drbd8-source.   I have the entire 2.6.34 kernel in /root/lio_target/lio_core-2.6.git.  Thanks in advance for any insight.  Let me know if this is not the right list to post this question to.


-Matt





dh_clean

/usr/bin/make -C /root/lio_target/lio_core-2.6.git/ M=/usr/src/modules/drbd8/drbd/ clean

make[1]: Entering directory `/root/lio_target/lio_core-2.6.git'

make[1]: Leaving directory `/root/lio_target/lio_core-2.6.git'

/usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules

make[1]: Entering directory `/usr/src/modules/drbd8'

dh_clean

/usr/bin/make -C /root/lio_target/lio_core-2.6.git/ M=/usr/src/modules/drbd8/drbd/ clean

make[2]: Entering directory `/root/lio_target/lio_core-2.6.git'

make[2]: Leaving directory `/root/lio_target/lio_core-2.6.git'

for templ in /usr/src/modules/drbd8/debian/drbd8-module-_KVERS_.postinst.modules.in; do \

cp $templ `echo $templ | sed -e 's/_KVERS_//g'` ; \

done

for templ in `ls debian/*.modules.in` ; do \

test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modules.in}.backup 2>/dev/null || true; \

sed -e 's/##KVERS##//g ;s/#KVERS#//g ; s/_KVERS_//g ; s/##KDREV##/2.6.34-10.00.Custom/g ; s/#KDREV#/2.6.34-10.00.Custom/g ; s/_KDREV_/2.6.34-10.00.Custom/g ' < $templ > ${templ%.modules.in}; \

done

dh_testdir

dh_testroot

dh_clean -k

make -C /root/lio_target/lio_core-2.6.git/ M=/usr/src/modules/drbd8/drbd/ modules

make[2]: Entering directory `/root/lio_target/lio_core-2.6.git'

CC [M] /usr/src/modules/drbd8/drbd/drbd_buildtag.o

CC [M] /usr/src/modules/drbd8/drbd/drbd_bitmap.o

In file included from /usr/src/modules/drbd8/drbd/drbd_bitmap.c:31:

/usr/src/modules/drbd8/drbd/drbd_int.h:529: error: ‘EXT_UUID_SIZE’ undeclared here (not in a function)

/usr/src/modules/drbd8/drbd/drbd_int.h:784: error: ‘UUID_SIZE’ undeclared here (not in a function)

In file included from /usr/src/modules/drbd8/drbd/drbd_bitmap.c:31:

/usr/src/modules/drbd8/drbd/drbd_int.h:857: error: field ‘new_state_tmp’ has incomplete type

/usr/src/modules/drbd8/drbd/drbd_int.h:859: error: field ‘state’ has incomplete type

In file included from /usr/src/modules/drbd8/drbd/drbd_int.h:1262,

from /usr/src/modules/drbd8/drbd/drbd_bitmap.c:31:

/usr/src/modules/drbd8/drbd/drbd_wrappers.h: In function ‘drbd_get_hardsect’:

/usr/src/modules/drbd8/drbd/drbd_wrappers.h:21: error: ‘struct request_queue’ has no member named ‘hardsect_size’

/usr/src/modules/drbd8/drbd/drbd_wrappers.h: At top level:

/usr/src/modules/drbd8/drbd/drbd_wrappers.h:340: error: redefinition of typedef ‘gfp_t’

include/linux/types.h:179: error: previous declaration of ‘gfp_t’ was here

In file included from /usr/src/modules/drbd8/drbd/drbd_bitmap.c:31:

/usr/src/modules/drbd8/drbd/drbd_int.h:1584: error: parameter 2 (‘mask’) has incomplete type

/usr/src/modules/drbd8/drbd/drbd_int.h:1585: error: parameter 3 (‘val’) has incomplete type

/usr/src/modules/drbd8/drbd/drbd_int.h: In function ‘drbd_request_state’:

/usr/src/modules/drbd8/drbd/drbd_int.h:1587: error: type of formal parameter 2 is incomplete

/usr/src/modules/drbd8/drbd/drbd_int.h:1587: error: type of formal parameter 3 is incomplete

/usr/src/modules/drbd8/drbd/drbd_int.h: In function ‘__drbd_chk_io_error’:

/usr/src/modules/drbd8/drbd/drbd_int.h:1597: error: ‘PassOn’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:1597: error: (Each undeclared identifier is reported only once

/usr/src/modules/drbd8/drbd/drbd_int.h:1597: error: for each function it appears in.)

/usr/src/modules/drbd8/drbd/drbd_int.h:1604: error: ‘Detach’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:1605: error: ‘CallIOEHelper’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:1606: error: ‘Failed’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:1607: error: storage size of ‘__ns’ isn’t known

/usr/src/modules/drbd8/drbd/drbd_int.h:1607: warning: unused variable ‘__ns’

/usr/src/modules/drbd8/drbd/drbd_int.h:1607: error: type of formal parameter 2 is incomplete

/usr/src/modules/drbd8/drbd/drbd_int.h: In function ‘inc_net’:

/usr/src/modules/drbd8/drbd/drbd_int.h:1882: error: ‘Unconnected’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h: At top level:

/usr/src/modules/drbd8/drbd/drbd_int.h:1969: error: parameter 1 (‘s’) has incomplete type

/usr/src/modules/drbd8/drbd/drbd_int.h: In function ‘drbd_state_is_stable’:

/usr/src/modules/drbd8/drbd/drbd_int.h:1977: error: ‘StandAlone’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:1978: error: ‘WFConnection’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:1980: error: ‘Connected’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:1981: error: ‘SyncSource’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:1982: error: ‘SyncTarget’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:1983: error: ‘PausedSyncS’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:1984: error: ‘PausedSyncT’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:1990: error: ‘Disconnecting’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:1991: error: ‘Unconnected’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:1992: error: ‘Timeout’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:1993: error: ‘BrokenPipe’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:1994: error: ‘NetworkFailure’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:1995: error: ‘ProtocolError’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:1996: error: ‘TearDown’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:1997: error: ‘WFReportParams’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:1998: error: ‘StartingSyncS’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:1999: error: ‘StartingSyncT’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:2000: error: ‘WFBitMapS’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:2001: error: ‘WFBitMapT’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:2002: error: ‘WFSyncUUID’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:2003: error: ‘conn_mask’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:2009: error: ‘Diskless’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:2010: error: ‘Inconsistent’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:2011: error: ‘Outdated’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:2012: error: ‘Consistent’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:2013: error: ‘UpToDate’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:2018: error: ‘Attaching’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:2019: error: ‘Failed’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:2020: error: ‘Negotiating’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:2021: error: ‘DUnknown’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h:2022: error: ‘disk_mask’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_int.h: In function ‘__inc_ap_bio_cond’:

/usr/src/modules/drbd8/drbd/drbd_int.h:2044: error: type of formal parameter 1 is incomplete

/usr/src/modules/drbd8/drbd/drbd_int.h: In function ‘drbd_kick_lo’:

/usr/src/modules/drbd8/drbd/drbd_int.h:2171: error: ‘Inconsistent’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_bitmap.c:176:5: warning: "DUMP_MD" is not defined

/usr/src/modules/drbd8/drbd/drbd_bitmap.c: In function ‘drbd_bm_resize’:

/usr/src/modules/drbd8/drbd/drbd_bitmap.c:386: error: ‘Inconsistent’ undeclared (first use in this function)

/usr/src/modules/drbd8/drbd/drbd_bitmap.c:777:5: warning: "DUMP_MD" is not defined

/usr/src/modules/drbd8/drbd/drbd_bitmap.c:1005:5: warning: "DUMP_MD" is not defined

make[3]: *** [/usr/src/modules/drbd8/drbd/drbd_bitmap.o] Error 1

make[2]: *** [_module_/usr/src/modules/drbd8/drbd] Error 2

make[2]: Leaving directory `/root/lio_target/lio_core-2.6.git'

make[1]: *** [binary-modules] Error 2

make[1]: Leaving directory `/usr/src/modules/drbd8'

make: *** [kdist_build] Error 2


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


More information about the drbd-user mailing list