[linux-target-packaging] Bug#880576: targetcli-fb: Cannot create PSCSI backend for SCSI tape drive
Herbert Nachtnebel
herbert.nachtnebel at schlosserei-gogl.at
Thu Nov 2 13:29:30 UTC 2017
Package: targetcli-fb
Version: 2.1.43-1
Severity: normal
Tags: upstream
Dear Maintainer,
exporting a local SCSI tape drive using targetcli is not possible. The used
SCSI tape
drive is an older HP Ultrium-2 SCSI drive connected via a Adaptec 29320ALP U320
PCIe
SCSI controller to the host. The host is a freshly set up Debian 9.2 system.
# lscpi -v
03:04.0 SCSI storage controller: Adaptec ASC-29320ALP U320 (rev 10)
Subsystem: Adaptec ASC-29320LPE PCIe U320
Flags: bus master, 66MHz, slow devsel, latency 64, IRQ 17
I/O ports at a800 [disabled] [size=256]
Memory at fe6fe000 (64-bit, non-prefetchable) [size=8K]
I/O ports at a400 [disabled] [size=256]
Expansion ROM at fe600000 [disabled] [size=512K]
Capabilities: <access denied>
Kernel driver in use: aic79xx
Kernel modules: aic79xx
# lscsi -g
[0:0:0:0] cd/dvd PLEXTOR DVD-ROM PX-130A 1.02 /dev/sr0 /dev/sg2
[2:0:0:0] tape HP Ultrium 2-SCSI F63D /dev/st0 /dev/sg0
[3:0:0:0] disk ATA Samsung SSD 850 2B6Q /dev/sdb /dev/sg3
[4:0:0:0] disk ATA HGST HTS725050A7 B550 /dev/sdc /dev/sg4
[4:0:1:0] cd/dvd HL-DT-ST BD-RE BH16NS40 1.03 /dev/sr1 /dev/sg5
# uname -a
Linux zahadum 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64
GNU/Linux
# targetcli
targetcli shell version 2.1.fb43
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.
/> ls
o- /
................................................................................
[...]
o- backstores
..................................................................... [...]
| o- block ......................................................... [Storage
Objects: 0]
| o- fileio ........................................................ [Storage
Objects: 0]
| o- pscsi ......................................................... [Storage
Objects: 0]
| o- ramdisk ....................................................... [Storage
Objects: 0]
o- iscsi ...................................................................
[Targets: 0]
o- loopback ................................................................
[Targets: 0]
o- sbp .....................................................................
[Targets: 0]
o- vhost ...................................................................
[Targets: 0]
/> cd backstores/pscsi
/backstores/pscsi> ls
o- pscsi ............................................................. [Storage
Objects: 0]
/backstores/pscsi> create ultrium2 dev=/dev/st0
Cannot find SCSI device by path, and dev parameter not in H:C:T:L format:
/dev/st0
/backstores/pscsi> create ultrium2 dev=/dev/sg0
Cannot find SCSI device by path, and dev parameter not in H:C:T:L format:
/dev/sg0
/backstores/pscsi> create ultrium2 dev=2:0:0:0
SCSI device does not exist
/backstores/pscsi> create name=test dev=/dev/sr0
Note: block backstore recommended for SCSI block devices
Created pscsi storage object test using /dev/sr0
/backstores/pscsi> ls
o- pscsi ............................................................. [Storage
Objects: 1]
o- test .......................................................... [/dev/sr0
deactivated]
####
There is no way to correctly specify the tape drive which should be used for
the target.
Note that the test-wise block device export above did work, only the tape can't
be used.
Do you have any further instructions how I can help to determine the cause of
the issue?
Best regards,
Herbert Nachtnebel
-- System Information:
Debian Release: 9.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages targetcli-fb depends on:
ii python3 3.5.3-1
ii python3-configshell-fb 1.1.20-1
ii python3-dbus 1.2.4-1+b1
ii python3-rtslib-fb 2.1.57+debian-4
ii python3-six 1.10.0-3
targetcli-fb recommends no packages.
targetcli-fb suggests no packages.
-- no debconf information
More information about the Linux-target-packaging
mailing list