You have a problem with the lsb headers. I don't know if they match the ones provided by standard debian. Did the iscsitarget custom build provided a init script?
Unable to enable iSCSI
-
- OMV 1.0
- gelöst
- TheDude
-
-
Yes the source provides an init script, too:
Bash
Alles anzeigen#!/bin/sh # # chkconfig: - 39 35 # description: Starts and stops the iSCSI target # debianized start-stop script PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/ietd OPTIONS="" PIDFILE=/var/run/ietd.pid if [ -f /lib/init/vars.sh ]; then <------>. /lib/init/vars.sh fi if [ -f /lib/lsb/init-functions ]; then <------>. /lib/lsb/init-functions fi if [ -f /etc/sysconfig/iscsi-target ]; then <------>. /etc/sysconfig/iscsi-target fi RETVAL=0 ietd_start() { <------>log_daemon_msg "Starting iSCSI Target" "ietd" <------>modprobe -q crc32c <------>modprobe iscsi_trgt <------>start-stop-daemon --start --exec $DAEMON --pidfile $PIDFILE -- $OPTIONS <------>log_end_msg $? } ietd_stop() { <------>log_daemon_msg "Stopping iSCSI Target" "ietd" <------>ietadm --op delete <------>start-stop-daemon --stop --exec $DAEMON --pidfile $PIDFILE <------>rm -f $PIDFILE <------>log_end_msg $? } ietd_status() { <------>PID=`pidof ietd` <------>if [ $PID ]; then <------><------>echo "iSCSI Target (pid $PID) is running..." <------>else <------><------>echo "iSCSI Target is stopped." <------><------>exit 1 <------>fi } case "$1" in start) ietd_start ;; stop) ietd_stop ;; restart) ietd_stop sleep 1 ietd_start ;; status) ietd_status ;; *) echo $"Usage: $0 {start|stop|restart|status}" exit 1 esac exit 0
This is a copy from /etc/init.d and has the same content as the one from the sources. So the make process detects that a Debian is running, there are other versions of this init script for generic, Gentoo and Redhat linux.
-
chkconfig is not recognized by debian i believe. In this cases what i do personally is compile package from the debian Sid/Jessie (If i pick the deb straight i'll complain about many dependencies)
http://ftp.de.debian.org/debia…get_1.4.20.3+svn502-1.dsc
There you get the git and all the patches and init script probably.
The basic start is git clone, then usually
git checkout upstream
git checkout pristine-tar
git checkout master
git-buildpackage -uc -usAfter that you should have a nice deb package even with version at the end
-
-
Yes that seems to true. Although the provided init script looks ok it is not possible to start or stop the service. Basically that does not matter that much, because no one would IMHO restart the iscsitarget service on a running machine with connected targets. That would cut the connection and may lead to many problems in case of running VM's on such a target.
I will try the git thing tomorrow, for today I got enough of tinkering with iscsi.
-
I will try the git thing tomorrow, for today I got enough of tinkering with iscsi.
Tried the git thing, but today I didn't have much time. Got git working and it spits out a good looking deb which I can install with dpkg but during reboot the console says that iscsi_trgt is missing. Grmpf.
Ok, next try on monday. -
That's the kernel module, did you rebuild them successfully?, what kernel 3.2 or 3.16?
-
-
Hi All,
I had the same issue and did the solution that was recommended by rye, but I'm still getting the same error.
Error #4000:
exception 'OMVException' with message 'Failed to execute command 'export LANG=C; invoke-rc.d 'iscsitarget' start 2>&1': Starting iSCSI enterprise target service:FATAL: Module iscsi_trgt not found.
failed!
invoke-rc.d: initscript iscsitarget, action "start" failed.' in /usr/share/php/openmediavault/initscript.inc:176
Stack trace:
#0 /usr/share/php/openmediavault/initscript.inc(141): OMVSysVInitScript->invoke('start')
#1 /usr/share/php/openmediavault/initscript.inc(61): OMVSysVInitScript->start()
#2 /usr/share/openmediavault/engined/module/iscsitarget.inc(91): OMVSysVInitScript->exec()
#3 /usr/share/openmediavault/engined/rpc/config.inc(206): OMVModuleIscsiTarget->startService()
#4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
#5 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
#6 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
#7 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
#8 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
#9 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
#10 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
#11 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)
#12 {main}Just wondering of where should i go next. cheers
-
That's the kernel module, did you rebuild them successfully?, what kernel 3.2 or 3.16?
Using OMV2[Kernel 3.2.0-4] iscsi plugin to export space to a test ESXi 5.1.U3 node and suddenly all the system stalls
/var/log/syslog @OMV [as usual]
-----------------------------
iscsi_trgt: BUG at /var/lib/dkms/iscsitarget/1.4.20.2/build/kernel/iscsi.c:392 assert(req->tio)
Jul 27 16:30:18 nas200 kernel: [266862.642574] Pid: 2308, comm: istiod1 Tainted: G O 3.2.0-4-amd64 #1 Debian 3.2.68-1+deb7u2
Jul 27 16:30:18 nas200 kernel: [266862.642577] Call Trace:
Jul 27 16:30:18 nas200 kernel: [266862.642590] [<ffffffffa05913f1>] ? send_data_rsp+0x45/0x1f4 [iscsi_trgt]
Jul 27 16:30:18 nas200 kernel: [266862.642595] [<ffffffffa059a0df>] ? ua_pending+0x19/0xa5 [iscsi_trgt]
Jul 27 16:30:18 nas200 kernel: [266862.642601] [<ffffffffa0598db4>] ? disk_execute_cmnd+0x1cf/0x22d [iscsi_trgt]
Jul 27 16:30:18 nas200 kernel: [266862.642606] [<ffffffffa0594a3d>] ? worker_thread+0xfd/0x255 [iscsi_trgt]
Jul 27 16:30:18 nas200 kernel: [266862.642612] [<ffffffff8103f72d>] ? try_to_wake_up+0x197/0x197
Jul 27 16:30:18 nas200 kernel: [266862.642617] [<ffffffffa0594940>] ? nthread_stop+0x35/0x35 [iscsi_trgt]
Jul 27 16:30:18 nas200 kernel: [266862.642632] [<ffffffff8105f805>] ? kthread+0x76/0x7e
Jul 27 16:30:18 nas200 kernel: [266862.642637] [<ffffffff813582f4>] ? kernel_thread_helper+0x4/0x10
Jul 27 16:30:18 nas200 kernel: [266862.642640] [<ffffffff8105f78f>] ? kthread_worker_fn+0x139/0x139
Jul 27 16:30:18 nas200 kernel: [266862.642643] [<ffffffff813582f0>] ? gs_change+0x13/0x13
--------------------------------------------------------------------------------------------------------------------------------------------------------
Here is a brief log of the build steps:
1. Uninstall iscsitarget:
apt-get purge iscsitarget
apt-get autoremove2. Add wheezy-backports to sources.list
apt-get -t wheezy-backports install linux-headers-3.16.0-0.bpo.4-all linux-image-3.16.0-0.bpo.4-amd64
Reboot to new kernel3. Install git to rebuild latest iscsitarget
apt-get install git equivs devscripts git-buildpackage
git clone 'http://anonscm.debian.org/cgit/pkg-iscsi/iscsitarget.git' iscsitarget
cd iscsitarget --> [download dir]
git checkout upstream
git checkout pristine-tar
git checkout master
git-buildpackage -uc -us --> [Build the binaries. Unmet dependencies: dkms, libssl-dev Need to be installed]
4. Install new builds:
dpkg -i iscsitarget_1.4.20.3+svn502-2_amd64.deb iscsitarget-dkms_1.4.20.3+svn502-2_all.deb
5. apt-get install openmediavault-iscsitargetand the BUG is history...
Many thanks to subzero79 for this great git machinery
-
and the BUG is history...
It wasn't necessary. @ryecoaaron put the compiled dkms and iscsitarget in the repo two weeks ago. So you get them automatically installed if you're using the debian backport kernel
-
-
It does not exactly match the main topic, but this thread is what mr. google found, so i'm posting it here.
The whole story started when i wanted to use more recent btrfs that comes in newer kernel. I managed to get ietd running (im running windows-8 over iscsi right now):
OMV version: 2.1.8 (stone burner)
# uname -a
Linux gray 3.16.0-0.bpo.4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u3~bpo70+1 (2015-08-08) x86_64 GNU/Linux
# modinfo iscsi_trgt
filename: /lib/modules/3.16.0-0.bpo.4-amd64/kernel/drivers/iscsi/iscsi_trgt.ko
author: IET development team <iscsitarget-devel@lists.sourceforge.net>
description: iSCSI Enterprise Target
license: GPL
version: trunk
srcversion: F11E94DC1A2590A4523B6BF
depends:
vermagic: 3.16.0-0.bpo.4-amd64 SMP mod_unload modversions
parm: worker_thread_pool_size:Size of the worker thread pool (0 = dedicated threads per target (default)) (ulong)
parm: debug_enable_flags:debug bitmask, low bits (0 ... used, see iscsi_dbg.h (ulong)Before i forget what i did...
The kernel was installed from wheezy-backports.
To get the kernel module working i manually downloaded the package from jessie repository (there seems not be any significant changes)
# wget http://http.us.debian.org/debi…1.4.20.3+svn502-1_all.deb
and installed
# dpkg --install iscsitarget-dkms_1.4.20.3+svn502-1_all.debLater on, ietd was not happy because there was a kernel module mismatch, so i downloaded the sources (from jessie) of the iscsitarget package
# wget http://http.debian.net/debian/…get_1.4.20.3+svn502-1.dsc
# wget http://http.debian.net/debian/…4.20.3+svn502.orig.tar.gz
# wget http://http.debian.net/debian/….3+svn502-1.debian.tar.xz
unpacked them and invoked
# dpkg-buildpackage -uc -b
this generated the .deb packages and from them i extracted ietd binary and edited in /etc/init.d/iscsitarget so that is uses this new ietd binary.Since i'm using openmediavault @home it's good for me, for now... but i'm sure there is a more 'correct' way of doing it.
-
-
Oh, thanx a lot! Looks i missed that post.
I have installed the backports kernel thru the gui and then forcefully re-installed those 2 packages you mentioned via apt-get (which correctly fetched from the extras repository you mentioned). I just needed to be sure that iscsitrgt is still enabled (ISCSITARGET_ENABLE=true in /etc/default/iscsitarget). I can't confirm if it works because i did it remotely, but i'm quite sure it does
-
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!