drbd error -115

Discussion in 'Installation/Configuration' started by anandx, Apr 18, 2009.

  1. anandx

    anandx HowtoForge Supporter

    Hi Everyone,

    I just updated a HA + drbd server setup from drbd 8.0 to 8.2. For testing i updated only one node (secondary). When i tried to make it primary (issued a shutdown on the secondary node), i started to get errors. The errors are showing up in /var/log/messages

    kernel: drbd3: connect failed, err = -115
    kernel: drbd2: connect failed, err = -115
    kernel: drbd4: connect failed, err = -115
    kernel: drbd1: connect failed, err = -115

    The messages keeps on repeating after sometime.

    Manually i set the node to be primary, however the errors are still showing up.

    I am really in a fix here, any help would be highly appreciated.

    Thanks
     
  2. anandx

    anandx HowtoForge Supporter

    Ok found something very stupid i did. I had updated the kernel and forgot to recompile the iscsitarget module. I recompiled the module, however when trying to do a insmod on it gives vmalloc error.

    kernel: allocation failed: out of vmalloc space - use vmalloc=<size> to increase size.

    Now as per the old site of linux-ha, (http://moin.linux-ha.org/lha/DRBD/FAQ?highlight=(faq)#head-c6586035cbdd5cdae726b02406b838ee2fa56eae), it suggests that i should use a highmem kernel. Any ideas where do i get that ? I am running centos5.3.
     
  3. anandx

    anandx HowtoForge Supporter

    Trying the startup iscsitarget manually gives errors as well.

    Code:
    /etc/init.d/iscsi-target start
    Starting iSCSI target service: FATAL: Error inserting iscsi_trgt (/lib/modules/2.6.18-128.1.6.el5.centos.plus/kernel/iscsi/iscsi_trgt.ko): Cannot allocate memory
    netlink fd: Connection refused
                                                               [FAILED]
    Following shows up on /var/log/messages
    Code:
    Apr 18 21:30:22 san1 kernel: allocation failed: out of vmalloc space - use vmalloc=<size> to increase size.
    Apr 18 21:30:22 san1 ietd: nl_open -1 
    
    Code:
    ls -al /lib/modules/2.6.18-128.1.6.el5.centos.plus/kernel/iscsi/iscsi_trgt.ko
    -rwxr-xr-x 1 root root 2308098 Apr 18 21:28 /lib/modules/2.6.18-128.1.6.el5.centos.plus/kernel/iscsi/iscsi_trgt.ko
    
    Anyone ?
     
  4. anandx

    anandx HowtoForge Supporter

    Does anyone have a clue about why the iscsi target module is not working ?

    Please help!
     
  5. falko

    falko Super Moderator

    How did you update the kernel?
    Is it a 64- or 32-bit system?
    Is it a physical server or a virtual machine?
     
  6. anandx

    anandx HowtoForge Supporter

    yum update. Installed the latest centosplus kernel

    32bit, physical
     
  7. falko

    falko Super Moderator

    Does it work with the latest non-CentOSplus kernel?
     
  8. anandx

    anandx HowtoForge Supporter

    Just trying to install and do the same on another server. Though there is a reason why i use the centosplus kernel, it has my raid card drivers build in it, however the normal kernel doesn't. Anyways will update with results shortly.
     
  9. tebokkel

    tebokkel New Member

    Check if you have CONFIG_HIGHMEM=y in your config. A backup of config is usually saved in /boot or from the running kernel in /proc/config.gz.

    Check HighFree in /proc/meminfo, check bootlog for grep highmem..

    HTH,

    Paul
     
  10. anandx

    anandx HowtoForge Supporter

    Ok here is the result of trying to build the rpm on new centos kernel.

    Code:
    rpmbuild --rebuild iscsitarget-0.4.12-6.src.rpm 
    
    Installing iscsitarget-0.4.12-6.src.rpm
    warning: user bastiaan does not exist - using root
    warning: group bastiaan does not exist - using root
    warning: user bastiaan does not exist - using root
    warning: group bastiaan does not exist - using root
    warning: user bastiaan does not exist - using root
    warning: group bastiaan does not exist - using root
    warning: user bastiaan does not exist - using root
    warning: group bastiaan does not exist - using root
    Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.36449
    + umask 022
    + cd /usr/src/redhat/BUILD
    + cd /usr/src/redhat/BUILD
    + rm -rf iscsitarget-0.4.12
    + /bin/gzip -dc /usr/src/redhat/SOURCES/iscsitarget-0.4.12.tar.gz
    + tar -xvvf -
    drwxr-xr-x fujita/fujita     0 2005-09-12 06:03:39 iscsitarget-0.4.12/
    drwxr-xr-x fujita/fujita     0 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/
    -rw-r--r-- fujita/fujita  9279 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/target_disk.c
    -rw-r--r-- fujita/fujita  4307 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/wthread.c
    -rw-r--r-- fujita/fujita 10267 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/iscsi_hdr.h
    -rw-r--r-- fujita/fujita  5899 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/param.c
    -rw-r--r-- fujita/fujita  5908 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/config.c
    -rw-r--r-- fujita/fujita  4016 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/volume.c
    -rw-r--r-- fujita/fujita  1715 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/iotype.c
    -rw-r--r-- fujita/fujita 40739 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/iscsi.c
    -rw-r--r-- fujita/fujita  2113 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/null-io.c
    -rw-r--r-- fujita/fujita   638 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/iotype.h
    -rw-r--r-- fujita/fujita  3339 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/session.c
    -rw-r--r-- fujita/fujita  6426 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/digest.c
    -rw-r--r-- fujita/fujita 10251 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/iscsi.h
    -rw-r--r-- fujita/fujita  2105 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/event.c
    -rw-r--r-- fujita/fujita  5311 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/file-io.c
    -rw-r--r-- fujita/fujita   594 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/digest.h
    -rw-r--r-- fujita/fujita 15163 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/nthread.c
    -rw-r--r-- fujita/fujita  5346 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/target.c
    -rw-r--r-- fujita/fujita  2799 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/iscsi_dbg.h
    -rw-r--r-- fujita/fujita  2239 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/tio.c
    -rw-r--r-- fujita/fujita   543 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/Makefile
    -rw-r--r-- fujita/fujita  5252 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/conn.c
    drwxr-xr-x fujita/fujita     0 2005-09-12 06:03:38 iscsitarget-0.4.12/include/
    -rw-r--r-- fujita/fujita  2515 2005-09-12 06:03:38 iscsitarget-0.4.12/include/iet_u.h
    drwxr-xr-x fujita/fujita     0 2005-09-12 06:03:38 iscsitarget-0.4.12/doc/
    drwxr-xr-x fujita/fujita     0 2005-09-12 06:03:38 iscsitarget-0.4.12/doc/manpages/
    -rw-r--r-- fujita/fujita  9930 2005-09-12 06:03:38 iscsitarget-0.4.12/doc/manpages/ietd.conf.5
    -rw-r--r-- fujita/fujita  4798 2005-09-12 06:03:38 iscsitarget-0.4.12/doc/manpages/ietd.8
    drwxr-xr-x fujita/fujita     0 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/
    -rw-r--r-- fujita/fujita  4753 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/iscsi_hdr.h
    -rw-r--r-- fujita/fujita  6397 2005-09-12 06:03:38 iscsitarget-0.4.12/usr/param.c
    -rw-r--r-- fujita/fujita  1087 2005-09-12 06:03:38 iscsitarget-0.4.12/usr/misc.h
    -rw-r--r-- fujita/fujita 11947 2005-09-12 06:03:38 iscsitarget-0.4.12/usr/ietadm.c
    -rw-r--r-- fujita/fujita 12028 2005-09-12 06:03:38 iscsitarget-0.4.12/usr/plain.c
    -rw-r--r-- fujita/fujita  1088 2005-09-12 06:03:38 iscsitarget-0.4.12/usr/param.h
    -rw-r--r-- fujita/fujita  1058 2005-09-12 06:03:38 iscsitarget-0.4.12/usr/ietadm.h
    -rw-r--r-- fujita/fujita   749 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/types.h
    -rw-r--r-- fujita/fujita   561 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/config.h
    -rw-r--r-- fujita/fujita 16156 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/chap.c
    -rw-r--r-- fujita/fujita  3340 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/session.c
    -rw-r--r-- fujita/fujita 16645 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/isns.c
    -rw-r--r-- fujita/fujita 18259 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/iscsid.c
    -rw-r--r-- fujita/fujita  2786 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/event.c
    -rw-r--r-- fujita/fujita  7902 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/ctldev.c
    -rw-r--r-- fujita/fujita  2345 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/log.c
    -rw-r--r-- fujita/fujita 12858 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/isns.h
    -rw-r--r-- fujita/fujita  5565 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/iscsid.h
    -rw-r--r-- fujita/fujita  3284 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/message.c
    -rw-r--r-- fujita/fujita 11456 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/ietd.c
    -rw-r--r-- fujita/fujita  2423 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/target.c
    -rw-r--r-- fujita/fujita   335 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/Makefile
    -rw-r--r-- fujita/fujita  2813 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/conn.c
    drwxr-xr-x fujita/fujita     0 2005-09-12 06:03:39 iscsitarget-0.4.12/etc/
    drwxr-xr-x fujita/fujita     0 2005-09-12 06:03:39 iscsitarget-0.4.12/etc/initd/
    -rw-r--r-- fujita/fujita  1418 2005-09-12 06:03:39 iscsitarget-0.4.12/etc/initd/initd.gentoo
    -rw-r--r-- fujita/fujita  1306 2005-09-12 06:03:39 iscsitarget-0.4.12/etc/initd/initd
    -rw-r--r-- fujita/fujita  3134 2005-09-12 06:03:39 iscsitarget-0.4.12/etc/initd/initd.debian
    -rw-r--r-- fujita/fujita  2178 2005-09-12 06:03:39 iscsitarget-0.4.12/etc/initd/initd.redhat
    -rw-r--r-- fujita/fujita   194 2005-09-12 06:03:39 iscsitarget-0.4.12/etc/initiators.allow
    -rw-r--r-- fujita/fujita   266 2005-09-12 06:03:39 iscsitarget-0.4.12/etc/initiators.deny
    -rw-r--r-- fujita/fujita  1888 2005-09-12 06:03:39 iscsitarget-0.4.12/etc/ietd.conf
    -rw-r--r-- fujita/fujita  8083 2005-09-12 06:03:39 iscsitarget-0.4.12/ChangeLog
    -rw-r--r-- fujita/fujita 18010 2005-09-12 06:03:39 iscsitarget-0.4.12/COPYING
    -rw-r--r-- fujita/fujita  1599 2005-09-12 06:03:39 iscsitarget-0.4.12/Makefile
    -rw-r--r-- fujita/fujita  2580 2005-09-12 06:03:39 iscsitarget-0.4.12/README
    + STATUS=0
    + '[' 0 -ne 0 ']'
    + cd iscsitarget-0.4.12
    ++ /usr/bin/id -u
    + '[' 0 = 0 ']'
    + /bin/chown -Rhf root .
    ++ /usr/bin/id -u
    + '[' 0 = 0 ']'
    + /bin/chgrp -Rhf root .
    + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
    + echo 'Patch #2610 (iscsitarget-0.4.12-kernel-compat-2.6.10.patch):'
    Patch #2610 (iscsitarget-0.4.12-kernel-compat-2.6.10.patch):
    + patch -p0 -s
    + echo 'Patch #2612 (iscsitarget-r1257-kernel-compat-2.6.12.patch):'
    Patch #2612 (iscsitarget-r1257-kernel-compat-2.6.12.patch):
    + patch -p0 -s
    + exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.36449
    + umask 022
    + cd /usr/src/redhat/BUILD
    + cd iscsitarget-0.4.12
    + make KERNELSRC=/lib/modules/2.6.18-128.1.6.el5/build
    make -C usr
    make[1]: Entering directory `/usr/src/redhat/BUILD/iscsitarget-0.4.12/usr'
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o ietd.o ietd.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o iscsid.o iscsid.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o conn.o conn.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o session.o session.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o target.o target.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o message.o message.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o ctldev.o ctldev.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o log.o log.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o isns.o isns.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o chap.o chap.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o event.o event.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o param.o param.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o plain.o plain.c
    cc ietd.o iscsid.o conn.o session.o target.o message.o ctldev.o log.o isns.o chap.o event.o param.o plain.o -o ietd -lcrypto
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o ietadm.o ietadm.c
    cc ietadm.o param.o -o ietadm
    make[1]: Leaving directory `/usr/src/redhat/BUILD/iscsitarget-0.4.12/usr'
    make -C /lib/modules/2.6.18-128.1.6.el5/build SUBDIRS=/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel modules
    make[1]: Entering directory `/usr/src/kernels/2.6.18-128.1.6.el5-i686'
      CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/tio.o
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/tio.c:7:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
    In file included from include/linux/compiler-gcc4.h:4,
                     from include/linux/compiler.h:42,
                     from include/linux/stddef.h:4,
                     from include/linux/posix_types.h:4,
                     from include/linux/types.h:14,
                     from include/linux/capability.h:16,
                     from include/linux/sched.h:44,
                     from include/linux/mm.h:4,
                     from include/linux/pagemap.h:7,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:10,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/tio.c:7:
    include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/tio.c:8:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
      CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.o
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.c:12:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
    In file included from include/linux/compiler-gcc4.h:4,
                     from include/linux/compiler.h:42,
                     from include/linux/stddef.h:4,
                     from include/linux/posix_types.h:4,
                     from include/linux/types.h:14,
                     from include/linux/capability.h:16,
                     from include/linux/sched.h:44,
                     from include/linux/module.h:9,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.c:7:
    include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.c:13:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
      CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/nthread.o
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/nthread.c:12:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
    In file included from include/linux/compiler-gcc4.h:4,
                     from include/linux/compiler.h:42,
                     from include/linux/stddef.h:4,
                     from include/linux/posix_types.h:4,
                     from include/linux/types.h:14,
                     from include/linux/capability.h:16,
                     from include/linux/sched.h:44,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/nthread.c:7:
    include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/nthread.c:13:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
      CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/wthread.o
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/wthread.c:9:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
    In file included from include/linux/compiler-gcc4.h:4,
                     from include/linux/compiler.h:42,
                     from include/linux/err.h:4,
                     from include/linux/kthread.h:4,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/wthread.c:7:
    include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/wthread.c:10:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
      CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/config.o
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/config.c:9:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
    In file included from include/linux/compiler-gcc4.h:4,
                     from include/linux/compiler.h:42,
                     from include/asm/bitops.h:8,
                     from include/linux/bitops.h:9,
                     from include/linux/thread_info.h:20,
                     from include/linux/preempt.h:9,
                     from include/linux/spinlock.h:49,
                     from include/linux/mmzone.h:7,
                     from include/linux/gfp.h:4,
                     from include/linux/slab.h:14,
                     from include/linux/proc_fs.h:4,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/config.c:7:
    include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/config.c:10:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
      CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/digest.o
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/digest.c:10:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
    In file included from include/linux/compiler-gcc4.h:4,
                     from include/linux/compiler.h:42,
                     from include/linux/stddef.h:4,
                     from include/linux/posix_types.h:4,
                     from include/linux/types.h:14,
                     from include/linux/capability.h:16,
                     from include/linux/sched.h:44,
                     from include/linux/mm.h:4,
                     from include/linux/pagemap.h:7,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:10,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/digest.c:10:
    include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/digest.c:12:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
      CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/conn.o
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/conn.c:11:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
    In file included from include/linux/compiler-gcc4.h:4,
                     from include/linux/compiler.h:42,
                     from include/asm/atomic.h:4,
                     from include/linux/file.h:8,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/conn.c:7:
    include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/conn.c:12:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
      CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/session.o
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/session.c:7:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
    In file included from include/linux/compiler-gcc4.h:4,
                     from include/linux/compiler.h:42,
                     from include/linux/stddef.h:4,
                     from include/linux/posix_types.h:4,
                     from include/linux/types.h:14,
                     from include/linux/capability.h:16,
                     from include/linux/sched.h:44,
                     from include/linux/mm.h:4,
                     from include/linux/pagemap.h:7,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:10,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/session.c:7:
    include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/session.c:8:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
      CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/target.o
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/target.c:7:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
    In file included from include/linux/compiler-gcc4.h:4,
                     from include/linux/compiler.h:42,
                     from include/linux/stddef.h:4,
                     from include/linux/posix_types.h:4,
                     from include/linux/types.h:14,
                     from include/linux/capability.h:16,
                     from include/linux/sched.h:44,
                     from include/linux/mm.h:4,
                     from include/linux/pagemap.h:7,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:10,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/target.c:7:
    include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/target.c:9:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
      CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/volume.o
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/volume.c:7:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
    In file included from include/linux/compiler-gcc4.h:4,
                     from include/linux/compiler.h:42,
                     from include/linux/stddef.h:4,
                     from include/linux/posix_types.h:4,
                     from include/linux/types.h:14,
                     from include/linux/capability.h:16,
                     from include/linux/sched.h:44,
                     from include/linux/mm.h:4,
                     from include/linux/pagemap.h:7,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:10,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/volume.c:7:
    include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/volume.c:8:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
      CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iotype.o
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iotype.c:7:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
    In file included from include/linux/compiler-gcc4.h:4,
                     from include/linux/compiler.h:42,
                     from include/linux/stddef.h:4,
                     from include/linux/posix_types.h:4,
                     from include/linux/types.h:14,
                     from include/linux/capability.h:16,
                     from include/linux/sched.h:44,
                     from include/linux/mm.h:4,
                     from include/linux/pagemap.h:7,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:10,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iotype.c:7:
    include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iotype.c:9:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
      CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/file-io.o
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/file-io.c:11:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
    In file included from include/linux/compiler-gcc4.h:4,
                     from include/linux/compiler.h:42,
                     from include/linux/stddef.h:4,
                     from include/linux/posix_types.h:4,
                     from include/linux/types.h:14,
                     from include/linux/genhd.h:12,
                     from include/linux/blkdev.h:5,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/file-io.c:7:
    include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/file-io.c:12:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
      CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/null-io.o
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/null-io.c:14:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
    In file included from include/linux/compiler-gcc4.h:4,
                     from include/linux/compiler.h:42,
                     from include/linux/stddef.h:4,
                     from include/linux/posix_types.h:4,
                     from include/linux/types.h:14,
                     from include/linux/genhd.h:12,
                     from include/linux/blkdev.h:5,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/null-io.c:10:
    include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/null-io.c:15:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
      CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/target_disk.o
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/target_disk.c:12:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
    In file included from include/linux/compiler-gcc4.h:4,
                     from include/linux/compiler.h:42,
                     from include/linux/stddef.h:4,
                     from include/linux/posix_types.h:4,
                     from include/linux/types.h:14,
                     from include/scsi/scsi.h:11,
                     from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/target_disk.c:10:
    include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/target_disk.c:13:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
      CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/event.o
    In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/event.c:12:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/event.c: In function ‘event_init’:
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/event.c:102: warning: passing argument 2 of ‘netlink_kernel_create’ makes integer from pointer without a cast
    /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/event.c:102: error: too few arguments to function ‘netlink_kernel_create’
    make[2]: *** [/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/event.o] Error 1
    make[1]: *** [_module_/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel] Error 2
    make[1]: Leaving directory `/usr/src/kernels/2.6.18-128.1.6.el5-i686'
    make: *** [mods] Error 2
    error: Bad exit status from /var/tmp/rpm-tmp.36449 (%build)
    
    
    RPM build errors:
        user bastiaan does not exist - using root
        group bastiaan does not exist - using root
        user bastiaan does not exist - using root
        group bastiaan does not exist - using root
        user bastiaan does not exist - using root
        group bastiaan does not exist - using root
        user bastiaan does not exist - using root
        group bastiaan does not exist - using root
        Bad exit status from /var/tmp/rpm-tmp.36449 (%build)
    
    I tried another version iscsitarget-0.4.13-0.1266.1.src.rpm, it also gave errors.

    Then I then tried to build it from source.

    Code:
    [root@san2 iscsitarget-0.4.17]# make
    
    Applying Patch compat-2.6.22-2.6.23.patch
    patching file kernel/block-io.c
    patching file kernel/config.c
    patching file kernel/digest.c
    patching file kernel/event.c
    Applying Patch compat-2.6.19-2.6.21.patch
    patching file kernel/event.c
    patching file kernel/iscsi.c
    patching file kernel/tio.c
    Applying Patch compat-2.6.14-2.6.18.patch
    patching file kernel/iscsi.h
    patching file kernel/digest.c
    patching file kernel/file-io.c
    patching file kernel/iscsi.c
    patching file kernel/tio.c
    make -C usr
    make[1]: Entering directory `/root/iscsitarget-0.4.17/usr'
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o ietd.o ietd.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o iscsid.o iscsid.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o conn.o conn.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o session.o session.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o target.o target.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o message.o message.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o ctldev.o ctldev.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o log.o log.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o chap.o chap.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o event.o event.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o param.o param.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o plain.o plain.c
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o isns.o isns.c
    cc ietd.o iscsid.o conn.o session.o target.o message.o ctldev.o log.o chap.o event.o param.o plain.o isns.o -o ietd -lcrypto
    cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o ietadm.o ietadm.c
    cc ietadm.o param.o -o ietadm
    make[1]: Leaving directory `/root/iscsitarget-0.4.17/usr'
    make -C /lib/modules/2.6.18-128.1.6.el5/build SUBDIRS=/root/iscsitarget-0.4.17/kernel modules
    make[1]: Entering directory `/usr/src/kernels/2.6.18-128.1.6.el5-i686'
      CC [M]  /root/iscsitarget-0.4.17/kernel/tio.o
      CC [M]  /root/iscsitarget-0.4.17/kernel/iscsi.o
      CC [M]  /root/iscsitarget-0.4.17/kernel/nthread.o
      CC [M]  /root/iscsitarget-0.4.17/kernel/wthread.o
      CC [M]  /root/iscsitarget-0.4.17/kernel/config.o
      CC [M]  /root/iscsitarget-0.4.17/kernel/digest.o
      CC [M]  /root/iscsitarget-0.4.17/kernel/conn.o
      CC [M]  /root/iscsitarget-0.4.17/kernel/session.o
      CC [M]  /root/iscsitarget-0.4.17/kernel/target.o
      CC [M]  /root/iscsitarget-0.4.17/kernel/volume.o
      CC [M]  /root/iscsitarget-0.4.17/kernel/iotype.o
      CC [M]  /root/iscsitarget-0.4.17/kernel/file-io.o
      CC [M]  /root/iscsitarget-0.4.17/kernel/null-io.o
      CC [M]  /root/iscsitarget-0.4.17/kernel/target_disk.o
      CC [M]  /root/iscsitarget-0.4.17/kernel/event.o
      CC [M]  /root/iscsitarget-0.4.17/kernel/param.o
      CC [M]  /root/iscsitarget-0.4.17/kernel/block-io.o
      LD [M]  /root/iscsitarget-0.4.17/kernel/iscsi_trgt.o
      Building modules, stage 2.
      MODPOST
      CC      /root/iscsitarget-0.4.17/kernel/iscsi_trgt.mod.o
      LD [M]  /root/iscsitarget-0.4.17/kernel/iscsi_trgt.ko
    make[1]: Leaving directory `/usr/src/kernels/2.6.18-128.1.6.el5-i686'
    [root@san2 iscsitarget-0.4.17]# make install
    `usr/ietd' -> `/usr/sbin/ietd'
    `usr/ietadm' -> `/usr/sbin/ietadm'
    `etc/initd/initd.redhat' -> `/etc/init.d/iscsi-target'
    `doc/manpages/ietadm.8' -> `/usr/share/man/man8/ietadm.8'
    `doc/manpages/ietd.8' -> `/usr/share/man/man8/ietd.8'
    `doc/manpages/ietd.conf.5' -> `/usr/share/man/man5/ietd.conf.5'
    `ChangeLog' -> `/usr/share/doc/iscsitarget/ChangeLog'
    `COPYING' -> `/usr/share/doc/iscsitarget/COPYING'
    `README' -> `/usr/share/doc/iscsitarget/README'
    `README.vmware' -> `/usr/share/doc/iscsitarget/README.vmware'
    install: creating directory `/lib/modules/2.6.18-128.1.6.el5/kernel/iscsi'
    `kernel/iscsi_trgt.ko' -> `/lib/modules/2.6.18-128.1.6.el5/kernel/iscsi/iscsi_trgt.ko'
    Running depmod
    
    [root@san2 iscsitarget-0.4.17]# insmod /lib/modules/2.6.18-128.1.6.el5/kernel/iscsi/iscsi_trgt.ko
    
    [root@san2 iscsitarget-0.4.17]# lsmod | grep iscsi
    iscsi_trgt             69852  0 
    
    
    So now source is getting compiled. Also i see that my raid card drivers are in the centos kernel itself. Will try the same on san1 as well.

    Though i am still surprised, how come on the plus kernel, it won't compile :(

    Also need to watch for the connect errors, which are really getting me worried.
     
  11. anandx

    anandx HowtoForge Supporter

    Looks like its all there

    Code:
    # CONFIG_NOHIGHMEM is not set
    CONFIG_HIGHMEM4G=y
    # CONFIG_HIGHMEM64G is not set
    CONFIG_HIGHMEM=y
    CONFIG_DEBUG_HIGHMEM=y
    
    Here are the values for HIGHFREE and HIGHTotal

    Code:
    HighTotal:     1153424 kB
    HighFree:       901096 kB
    
     
  12. tebokkel

    tebokkel New Member

    Well.. sounds to me that the warnings during RPM-build are the cause for the failures/errors during module load. Do I understand correctly that the compiled sources (without RPM) work correctly?
    Than perhaps a header-mismatch somewhere in your distribution is the cause of all your problems.

    Paul
     
  13. anandx

    anandx HowtoForge Supporter

    With centos normal kernel, yes them seem to be getting compiled, not with the centosplus kernel. Now since my raid card drivers are in the regular kernel itself, i will try to load both san servers with the same kernel and then try.
     
  14. anandx

    anandx HowtoForge Supporter

    Alright i have another problem with this now. Using the standard kernel, i don't get to use the jfs module :( I need the jfs module to sometimes mount the san volumes locally for testing, which come enabled in plus kernel.

    So any reason why the iscsitarget won't compile under centosplus kernel ?
     
  15. falko

    falko Super Moderator

    I have no idea. :(
     
  16. anandx

    anandx HowtoForge Supporter

    Problem solved. Here is how i resolved it.

    Installed the standard kernel, compiled and the iscsitarget module got compiled and installed properly. Then installed the plus kernel and rebooted inside it. Did a make install in the previous compiled version, redid a make, make install, and it worked fine.

    Have no idea why the above would work, but it did and now centosplus kernel has the iscsitarget 0.17 version compiled and running properly.
     

Share This Page