"aptitude install iscsi-scst scstadmin" failed since kernel 2.6.35 ?

atran

Member
Dec 9, 2010
37
0
6
host0:/# aptitude install iscsi-scst scstadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be installed:
iscsi-scst scstadmin
0 packages upgraded, 2 newly installed, 0 to remove and 7 not upgraded.
Need to get 0B/91.1kB of archives. After unpacking 381kB will be used.
Writing extended state information... Done
Selecting previously deselected package iscsi-scst.
(Reading database ... 31724 files and directories currently installed.)
Unpacking iscsi-scst (from .../iscsi-scst_1.0.1.1-4_amd64.deb) ...
Selecting previously deselected package scstadmin.
Unpacking scstadmin (from .../scstadmin_1.0.6-1_all.deb) ...
Processing triggers for man-db ...
Setting up iscsi-scst (1.0.1.1-4) ...
Starting iSCSI-SCST target service: failed.
Setting up scstadmin (1.0.6-1) ...
Loading and configuring the mid-level SCSI target SCST failed!
invoke-rc.d: initscript scst, action "start" failed.
dpkg: error processing scstadmin (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
scstadmin
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up scstadmin (1.0.6-1) ...
Loading and configuring the mid-level SCSI target SCST failed!
invoke-rc.d: initscript scst, action "start" failed.
dpkg: error processing scstadmin (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
scstadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done

host0:/# pveversion -v
pve-manager: 1.8-18 (pve-manager/1.8/6070)
running kernel: 2.6.35-1-pve
proxmox-ve-2.6.35: 1.8-11
pve-kernel-2.6.32-4-pve: 2.6.32-33
pve-kernel-2.6.35-1-pve: 2.6.35-11
qemu-server: 1.1-30
pve-firmware: 1.0-11
libpve-storage-perl: 1.0-17
vncterm: 0.9-2
vzctl: 3.0.28-1pve1
vzdump: 1.2-14
vzprocps: 2.0.11-2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.14.1-1
ksm-control-daemon: 1.0-6


/var/log/syslog:
Jul 4 13:39:01 host0 iscsi-scstd: Unable to register: Invalid argument. Incompatible version of the kernel module?#012
Jul 4 13:39:01 host0 kernel: iscsi-scst: ***ERROR***: Invalid ioctl cmd 40087300

host0:/# cat /proc/scsi_tgt/scsi_tgt
cat: /proc/scsi_tgt/scsi_tgt: No such file or directory








 
Last edited:
maybe this is related with the 2.6.35 ubuntu kernel?

[h=2]Proxmox VE 1.8[/h]Updated ISO 16.6.2011, includes current stable packages Downloads
  • pve-kernel-2.6.32 (2.6.32-33)
  • aacraid with support for Adaptec 6 series (e.g. 6805)
  • KVM 0.14.1
  • vzctl 3.0.27
  • vzdump 1.2-13
  • bug fixes
Released 30.03.2011: See Downloads
Release Notes:
  • update to Debian Lenny 5.0.8
  • update to kvm 0.14.0
  • updated kernels with many fixes
  • protect against Cross Site Request Forgery (added anti-CSRF tokens)
  • bug fixes
Detailed change log:
  • qemu-server (1.1-30)
    • use 'cache=none' for raw images and devices to improve performance
  • pve-qemu-kvm (0.14.0-2)
    • also install vgabios-qxl.bin vgabios-stdvga.bin vgabios-vmware.bin
    • update to 0.14.0
    • add fix for eventfd support (msix-eventfd-fix.patch)
    • removed kvmtrace (removed from upstream?)
    • add vnc keyboard fixes for fr-ca (reported by Pierre-Yves)
  • pve-kernel-2.6.32 (2.6.32-32)
    • update to Debian Squeeze kernel 2.6.32-32
    • remove patch use-init-task-credential.patch (fixed in upstream)
    • enable CONFIG_SENSORS_K10TEMP=m
  • pve-kernel-2.6.18 (2.6.18-14)
    • update to ovzkernel-2.6.18-238.5.1.el5.028stab085.3.src.rpm
    • increased kernel API version to '5-pve'
    • update to SCST 2.0.0.1
    • update to OCFS2 1.4.7
  • pve-qemu-kvm-2.6.18 (0.9.1-12)
    • update to kvm-83-224.el5.src.rpm
  • pve-kernel-2.6.35 (2.6.35-10)
    • update to Ubuntu-2.6.35-27.48
  • pve-manager (1.8-15)
    • protect against Cross Site Request Forgery (added anti-CSRF tokens)
    • correctly encode html entities inside notes (avoid persistant XSS vulnerabilities)
    • use http_proxy in cron APL download if configured
 
Sigh, seems the included module has wrong version.

Anyways, maintaining the SCST patches needs too much time, v2.0.0 is more or less incomtatible, and I guess that there are only a few users using it.

So I am not sure if we will continue support.
 
is there an alternative?
simple/clean way to install iscsitarget?
like: "aptitude install iscsitarget iscsitarget-modules-2.6-amd64"
or: "aptitude install iscsitarget iscsitarget-modules"

in the end i just want to export lvm volumes as iscsi targets.
 
Last edited:
is there an alternative?
simple/clean way to install iscsitarget?
like: "aptitude install iscsitarget iscsitarget-modules-2.6-amd64"
or: "aptitude install iscsitarget iscsitarget-modules"

That module already ships with our 2.6.35 kernel - please can you test?
 
install IET iscsitarget

looks like the module is only for 2.6.26 ?

host0:~# aptitude search iscsi*
p iscsi-scst - Generic SCSI Target Subsystem for Linux
pi iscsitarget - iSCSI Enterprise Target userland tools
v iscsitarget-modules -
p iscsitarget-modules-2.6-amd64 - iSCSI Enterprise Target for Linux 2.6 on AMD64
p iscsitarget-modules-2.6-openvz-amd64 - iSCSI Enterprise Target for Linux 2.6 on AMD64
p iscsitarget-modules-2.6-vserver-amd64 - iSCSI Enterprise Target for Linux 2.6 on AMD64
p iscsitarget-modules-2.6-xen-amd64 - iSCSI Enterprise Target for Linux 2.6 on AMD64
p iscsitarget-modules-2.6.26-2-amd64 - iSCSI Enterprise Target for Linux 2.6.26 on AMD64
p iscsitarget-modules-2.6.26-2-openvz-amd64 - iSCSI Enterprise Target for Linux 2.6.26 on AMD64
p iscsitarget-modules-2.6.26-2-vserver-amd64 - iSCSI Enterprise Target for Linux 2.6.26 on AMD64
p iscsitarget-modules-2.6.26-2-xen-amd64 - iSCSI Enterprise Target for Linux 2.6.26 on AMD64
p iscsitarget-source - iSCSI Enterprise Target kernel module source
i open-iscsi - High performance, transport independent iSCSI implementation






host0:~# aptitude install iscsitarget iscsitarget-modules-2.6-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be installed:
iscsitarget iscsitarget-modules-2.6-amd64 iscsitarget-modules-2.6.26-2-amd64{a} linux-image-2.6-amd64{a}
linux-image-2.6.26-2-amd64{a}
0 packages upgraded, 5 newly installed, 0 to remove and 34 not upgraded.
Need to get 21.1MB/21.2MB of archives. After unpacking 83.5MB will be used.
Do you want to continue? [Y/n/?]
 
Last edited:
Re: install IET iscsitarget

it doesn't work !
the install went OK (aptitude install iscsitarget) (following: http://www.howtoforge.com/using-iscsi-on-debian-lenny-initiator-and-target)

on other proxmox server (initiator) : Found no unused targets

lsmod |grep iscsi gives:
iscsi_trgt 77908 3
iscsi_scst 90522 0
scst 231911 4 scst_vdisk,scst_disk,scst_tape,iscsi_scst
libcrc32c 1236 1 iscsi_scst
iscsi_tcp 9434 0
libiscsi_tcp 15226 1 iscsi_tcp
libiscsi 42343 3 ib_iser,iscsi_tcp,libiscsi_tcp
scsi_transport_iscsi 35030 4 ib_iser,iscsi_tcp,libiscsi

could it be conflicting with iscsi_scst? how can i troubleshoot this?
i did a "aptitude purge iscsi-scst scstadmin" but how can i unload iscsi_scst from kernel?
 
Last edited:
Re: install IET iscsitarget

could it be conflicting with iscsi_scst? how can i troubleshoot this?
i did a "aptitude purge iscsi-scst scstadmin" but how can i unload iscsi_scst from kernel?

I guess a host reboot would help.
 
Re: install IET iscsitarget

it doesn't work...

i get "Found no unused targets" from the initiator.
looks like there is something wrong with /etc/initiators.deny, /etc/initiators.allow or maybe a missing targets.allow
this 2.6.35 kernel is an ubuntu kernel right?

my /etc/initiators.deny:
# The semantics are:
# * By default, every initiator can see and connect to all targets.
#
# * Deny for some or every initiator access to one or all targets,
# by adding a line to this file.
#
# * Then allow some named initiators access to selected targets,
# by adding lines to initiators.allow
#
# Some examples
#iqn.2001-04.com.example:storage.disk1.sys1.xyz ALL
#iqn.2001-04.com.example:storage.disk1.sys2.xyz 192.168.12.2, 192.168.3.0/24, 192.167.1.16/28
#iqn.2001-04.com.example:storage.disk1.sys4.xyz [3ffe:302:11:1:211:43ff:fe31:5ae2], [3ffe:505:2:1::]/64
#ALL ALL

my /etc/initiators.allow:
# Some examples
#
#iqn.2001-04.com.example:storage.disk1.sys1.xyz 192.168.22.2, 192.168.3.8
#iqn.2001-04.com.example:storage.disk1.sys2.xyz [3ffe:302:11:1:211:43ff:fe31:5ae2], [3ffe:505:2:1::]/64
#iqn.2001-04.com.example:storage.disk1.sys3.xyz ALL
#iqn.2001-04.com.example:storage.disk1.sys4.xyz 192.168.22.3
ALL ALL
 
Last edited: