Package: tgt
Version: 1:1.0.69-1
Severity: important
File: /usr/sbin/tgt-admin
Tags: upstream
Dear Maintainer,
So, there's this tool 'tgt-admin' which isn't documented very well. As it's
used to configure the tgtd, it should be possible to give it all the options
relevant. So, there is this option bstype
of tgtadm which is called bs-type in tgt-admin. And there is this option bsopts
in tgtadm, which is 1. called "bsopts" in tgt-admin (which is kind of
surprising), and 2. is not documented.
thirdly, bsopts doesn't work correctly. If there is more than one bsopt, one
should divide them by a ; like this:
bsopts=logfile=/var/log/bs-glsfs.log;loglevel=3. But this doesn't work, because
tgt-admin truncates the bsopts at the ; and so it isn't possible to give more
than one option.
snippet:
root@storage-b-02:~# cat /etc/tgt/conf.d/gv_b_0.conf
<target iqn.2018-07.de.xxxxx:stor-b-0>
vendor_id xxxxx
bs-type glfs
bsopts "logfile=/var/log/bs-glfs.log;loglevel=3"
...
in /var/log/daemon.log this appears:
Jul 30 20:33:03 storage-b-02 tgtd[31394]: tgtd: device_mgmt(246) sz:86
params:[email protected]:/iSCSI_VOL1.img,bstype=glfs,bsopts=logfile=/var/log/bs-glfs.log
(as you can see, the loglevel is missing)
I tested this with the bs-type glfs.
Thanks.
-- System Information:
Debian Release: 9.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-7-amd64 (SMP w/12 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8),
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages tgt depends on:
ii init-system-helpers 1.48
ii libaio1 0.3.110-3
ii libc6 2.24-11+deb9u3
ii libconfig-general-perl 2.63-1
ii libibverbs1 1.2.1-2
ii librdmacm1 1.1.0-2
ii libsystemd0 232-25+deb9u4
ii lsb-base 9.20161125
ii sg3-utils 1.42-2
tgt recommends no packages.
Versions of packages tgt suggests:
ii tgt-glusterfs 1:1.0.69-1
pn tgt-rbd <none>
-- no debconf information