Hello,
I have this problem:
iSCSI target should be running and then the LUNs should be presented on the same machine. So the istgt is starting on normal startup in /usr/local/etc/rc.d/istgt. But the iSCSI initiator is started from /etc/rc.local:
But this is the startup:
Looks like rc.local is executed before istgt, so lots of stuff hangs because the LUNs are not mounted. Is this normal?
Thank you.
I have this problem:
iSCSI target should be running and then the LUNs should be presented on the same machine. So the istgt is starting on normal startup in /usr/local/etc/rc.d/istgt. But the iSCSI initiator is started from /etc/rc.local:
Code:
#!/bin/sh
/sbin/iscontrol -c /etc/iscsi.conf -n idisk1
/sbin/iscontrol -c /etc/iscsi.conf -n idisk2
/usr/local/bin/ntfs-3g /dev/da0s1 /mnt/D
/usr/local/bin/ntfs-3g /dev/da1s1 /mnt/E
But this is the startup:
Code:
Creating and/or trimming log files.
Starting syslogd.
Clearing /tmp (X related).
Starting proftpd.
Starting openvpn.
tap0: Ethernet address: 00:bd:d5:4e:00:00
tap0: link state changed to UP
bridge0: link state changed to UP
tap0: promiscuous mode enabled
[B]Starting local daemons:[/B]
re1: link state changed to UP #
[I]errno=61 #
connect: Connection refused #
errno=61 #
connect: Connection refused # Here I press Ctrl+C, so the rc.local execution
Script /etc/rc.d/local interrupted[/I] # stop and other daemons will continue startup
Updating motd:.
fusefs is already running.
Starting ntpd.
Jan 1 15:51:46 sentinel ntpd[1467]: bind() fd 29, family AF_INET6, port 123, scope 11, addr fe80::21e:e5ff:fee8:d46d, mcast=0 flags=0x11 fails: Can't assign requested address
Jan 1 15:51:46 sentinel ntpd[1467]: unable to create socket on wlan0 (9) for fe80::21e:e5ff:fee8:d46d#123
Starting powerd.
Starting dhcpd.
Internet Systems Consortium DHCP Server 4.1-ESV-R7
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Wrote 9 leases to leases file.
Listening on BPF/bridge0/02:74:c6:6d:ec:00/192.168.1.0/24
Sending on BPF/bridge0/02:74:c6:6d:ec:00/192.168.1.0/24
Sending on Socket/fallback/fallback-net
[B]Starting istgt.[/B]
istgt version 0.5 (20121028)
normal mode
using kqueue
using host atomic
LU1 HDD UNIT
LU1: LUN0 file=/dev/mirror/gm0, size=493921238528
LU1: LUN0 964689919 blocks, 512 bytes/block
LU1: LUN0 459.9GB storage for Sentinel.unixhomenet.com:Mirror-Protected-Disk
LU1: LUN0 serial 10000001
LU1: LUN0 read cache enabled, write cache enabled
LU1: LUN0 command queuing enabled, depth 255
LU2 HDD UNIT
LU2: LUN0 file=/dev/ada0p8, size=104152956928
LU2: LUN0 203423744 blocks, 512 bytes/block
LU2: LUN0 97.0GB storage for Sentinel.unixhomenet.com:RAW-Disk
LU2: LUN0 serial 10000001
LU2: LUN0 read cache enabled, write cache enabled
LU2: LUN0 command queuing enabled, depth 255
Starting nrpe2.
Configuring syscons: blanktime.
Starting sshd.
Starting cron.
Thank you.