Hello,

        I have seen Michael has applied patch to fix ccb_timout to -10 kernel.
Thus, I have rebuilt my tree to have a unpatched kernel and I cannot now
access to my NAS over iSCSI. Of course, I have reinstalled kernel /and/
userland.

        In dmesg, I only obtain :

[    71,854636] Invalid socket 7
[    71,854636] Invalid socket 7

        To be sure, I have upgraded my NAS to last firmware. Both NASnow run
last Qnap system.

        Configuration :
- wm0 and wm1 are bridged, MTU 9000 ;
- wm0 is connected to NAS1, wm1 to NAS2.

        My script (that ran fine) that mount NAS volumes contains :

#
# $NetBSD: squid.sh,v 1.1 2020/01/04 10:57:18 taca Exp $
#
# PROVIDE: iscsictl
# REQUIRE: iscsid
# KEYWORD: shutdown

if [ -f /etc/rc.subr ]; then
        . /etc/rc.subr
fi

name="iscsictl"
rcvar=$name
command="/sbin/${name}"
pidfile="/var/run/${name}.pid"

case $1 in
start)
        sleep 5
        ${command} add_send_target -a 192.168.12.2
        ${command} add_send_target -a 192.168.12.3
        ${command} refresh_targets
        ${command} list_targets
        ${command} login -P `iscsictl list_targets | \
                awk '/192.168.12.2/ { print $1; }' | tr -d ":"`
        ${command} login -P `iscsictl list_targets | \
                awk '/192.168.12.3/ { print $1; }' | tr -d ":"`
        sleep 1
        mount -o rw,log NAME=bacula /opt/bacula
        mount -o rw,log NAME=video /opt/video
        /etc/rc.d/mountd reload
        ;;
...


legendre# nmap 192.168.12.2
Starting Nmap 7.94 ( https://nmap.org ) at 2023-12-27 09:12 CET
Nmap scan report for euclide.systella.fr (192.168.12.2)
Host is up (0.00030s latency).
Not shown: 996 closed tcp ports (reset)
PORT     STATE SERVICE
22/tcp   open  ssh
443/tcp  open  https
3260/tcp open  iscsi
8080/tcp open  http-proxy
MAC Address: 24:5E:BE:3B:96:E9 (Qnap Systems)

Nmap done: 1 IP address (1 host up) scanned in 0.43 seconds

legendre# iscsictl add_send_target -a 192.168.12.2
Added Send Target 1
legendre# iscsictl refresh_targets
iscsictl: refresh_targets: No targets found
legendre# iscsictl list_targets
iscsictl: list_targets: The list is empty

        Just after these commands, new lines are written in dmesg :

[ 30051.492281] Invalid socket 7
[ 30051.492281] Invalid socket 7

        I have tried to start iscsid with -d10 -D options without more 
information.

        Best regards,

        JB



Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to