I have tested and result is worse.
Kernel boots. Init starts iscsid and I believe my /etc/rc.d/iscsictl
script is called :
#!/bin/sh
#
# $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:3260
${command} add_send_target -a 192.168.12.3:3260
${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
# log fait paniquer le noyau :^?!
#mount -o rw,log NAME=bacula /opt/bacula
fsck -y NAME=bacula
mount -o rw NAME=bacula /opt/bacula
#mount -o rw,log NAME=video /opt/video
fsck -y NAME=video
mount -o rw NAME=video /opt/video
/etc/rc.d/mountd reload
;;
stop)
umount /opt/video
umount /opt/bacula
# for i in `iscsictl list_sessions | awk '/^Session/ { print $2; }' \
# | tr -d ':'`
# do
# ${command} logout -I $i
# done
;;
*)
echo "Usage: $0 {start|stop}" 1>&2
exit 64
;;
esac
Kernel enters in hard lock after "${command} list_targets".
Best regards,
JB
Attachment:
signature.asc
Description: OpenPGP digital signature