Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Sep 2013 10:46:58 +0300
From:      "Sergey V. Dyatko" <sergey.dyatko@gmail.com>
To:        <current@freebsd.org>
Cc:        trasz@FreeBSD.org
Subject:   panic: make_dev_credv: bad si_name (error=17, si_name=iscsi)
Message-ID:  <20130924104658.46313090@laptop.minsk.domain>

next in thread | raw e-mail | index | archive | help
Hi,

today I tried to play a bit with new iscsi

r255812 isn't fully complete fix?

what I did:
1) create ctl.conf:
pidfile /var/run/ctld.pid
portal-group example2 {
        discovery-auth-group no-authentication
        listen 127.0.0.1
        listen 0.0.0.0:3261
}
target iqn.desktop:target0 {
        alias "Testing target"
        auth-group no-authentication
        portal-group    example2
        lun 0 {
                path /dev/md0
                blocksize 4096
#               size 4G
        }
     }
2) dd if=/dev/zero of=/path/to/file bs=1M count=200
3) mdconfig -a -t vnode -f /path/to/file
4) start iscsid and ctld
5) iscsictl -A -h locahost -t iqn.desktop:target0 (wrong hostname)
6) iscsictl -A -h localhost -t iqn.desktop:target0 

after [6] /var/log/messages: 
Sep 24 10:31:50 tiger kernel: cfiscsi_ioctl_handoff: new connection
from iqn.1994-09.org.freebsd:tiger.minsk.domain (127.0.0.1) to
iqn.desktop:target0 
Sep 24 10:31:50 tiger kernel: da0 at iscsi2 bus 0
scbus6 target 0 lun 0 
Sep 24 10:31:50 tiger kernel: da0: <FREEBSD CTLDISK 0001> Fixed Direct
Access SCSI-5 device 
Sep 24 10:31:50 tiger kernel: da0: 200MB (51200 4096 byte sectors: 64H
32S/T 25C)

also I see following (step 5, I suppose, how I can cancel it ?): 
Sep 24 10:32:08 tiger iscsid[1428]: locahost (iqn.desktop:target0):
failed to connect to locahost: Connection refused
Sep 24 10:32:08 tiger kernel: WARNING: locahost (iqn.desktop:target0):
login timed out after 61 seconds; reconnecting 
Sep 24 10:33:10 tiger iscsid[1402]: child process 1428 terminated with
exit status 1 
Sep 24 10:33:10 tiger kernel: WARNING: locahost (iqn.desktop:target0):
login timed out after 61 seconds; reconnecting 
Sep 24 10:33:10 tiger iscsid[1433]: locahost (iqn.desktop:target0):
failed to connect to locahost: Connection refused

Ok, seems I can work with that, I can do newfs /dev/da0, mount it and
so on.

Now i'm trying to tun iscontrol on my laptop (beta1, r255449):
laptop# iscontrol -dt 192.168.9.98
errno=61
connect: Connection refused
^C
hm... possible something wrong... trying to reproduce that on desktop...
run  `kldload iscsi_initiator` and got a panic:

tiger# kgdb /boot/kernel/kernel /var/crash/vmcore.last
-> http://paste.org.ru/?rtc74f

I can provide additional information if you need it

-- 
wbr, tiger



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130924104658.46313090>