SOLVED Can't start iSCSI

Status
Not open for further replies.

connifer

Cadet
Joined
Dec 8, 2014
Messages
2
I did a fresh install using FreeNAS-9.3-BETA-201412082151.iso and imported my zfs volume. Then I upgraded to 9.3-RELEASE using the built-in updater. I changed to the FreeNAS-9.3-STABLE train, searched for updates, and installed them. Following that I proceeded to configure iSCSI to support my 5.5u2 esxi host (currently running 4 systems over NFS). I then tried to start the iSCSI service. It failed with the following log messages:

Dec 9 00:20:14 nas02 notifier: File "/usr/local/libexec/nas/generate_ctl_conf.py", line 64
Dec 9 00:20:14 nas02 notifier: elif " " initiator.iscsi_target_initiator_auth_network:
Dec 9 00:20:14 nas02 notifier: ^
Dec 9 00:20:14 nas02 notifier: SyntaxError: invalid syntax
Dec 9 00:20:14 nas02 notifier: ctld not running? (check /var/run/ctld.pid).
Dec 9 00:20:14 nas02 notifier: ctld not running? (check /var/run/ctld.pid).
Dec 9 00:20:14 nas02 root: /etc/rc.d/ctld: WARNING: /etc/ctl.conf is not readable.
Dec 9 00:20:14 nas02 notifier: /etc/rc.d/ctld: WARNING: /etc/ctl.conf is not readable.
Dec 9 00:20:14 nas02 root: /etc/rc.d/ctld: WARNING: failed precmd routine for ctld
Dec 9 00:20:14 nas02 notifier: /etc/rc.d/ctld: WARNING: failed precmd routine for ctld
Dec 8 22:23:16 nas02 smartd[2787]: Device: /dev/ada7, 6 Currently unreadable (pending) sectors
Dec 8 22:23:16 nas02 smartd[2787]: Device: /dev/ada7, 6 Offline uncorrectable sectors​

I found a similar report listed as bug #6719 which is listed as resolved. I also found a couple of similar issues reported in the forum. One of the forum postings talked about the ctl.conf file so I created it manually (using the post as a template for content). This time iSCSI started but I couldn't scan from the esxi host. Then I tried leaving the file empty and recreated all the iSCSI configs in the GUI but again no joy. Below is a tcpdump trace of the most recent log messages and the FreeNAS refusing the scan from the esxi host.

Dec 9 01:25:31 nas02 notifier: File "/usr/local/libexec/nas/generate_ctl_conf.py", line 64
Dec 9 01:25:31 nas02 notifier: elif " " initiator.iscsi_target_initiator_auth_network:
Dec 9 01:25:31 nas02 notifier: ^
Dec 9 01:25:31 nas02 notifier: SyntaxError: invalid syntax
Dec 9 01:25:31 nas02 notifier: ctld not running? (check /var/run/ctld.pid).
Dec 9 01:25:31 nas02 notifier: ctld not running? (check /var/run/ctld.pid).
Dec 9 01:25:31 nas02 notifier: Starting ctld.
Dec 9 01:25:31 nas02 notifier: ctld: /etc/ctl.conf is world-readable
Dec 9 01:25:31 nas02 ctld[21070]: /etc/ctl.conf is world-readable​

01:25:57.087124 IP 192.168.110.31.32467 > 192.168.110.21.iscsi-target: Flags (S), seq 2327391399, win 65535, options [mss 1460,nop,wscale 9,sackOK,TS val 207021302 ecr 0], length 0
01:25:57.087133 IP 192.168.110.21.iscsi-target > 192.168.110.31.32467: Flags [R.], seq 0, ack 2327391400, win 0, length 0
01:25:57.087625 IP 192.168.110.31.29341 > 192.168.110.21.iscsi-target: Flags (S), seq 3840856215, win 65535, options [mss 1460,nop,wscale 9,sackOK,TS val 207021302 ecr 0], length 0
01:25:57.087630 IP 192.168.110.21.iscsi-target > 192.168.110.31.29341: Flags [R.], seq 0, ack 3840856216, win 0, length 0​

(fyi, I changed the "syn" flags from "[" and "]" to "(" and ")" to fix a formatting issue)

Can you provide me some guidance?

Thanks
Bill Nelson
 

connifer

Cadet
Joined
Dec 8, 2014
Messages
2
Yep. I ran the command and iSCSI lit right up when I started it. I proceeded to mount the lun on the esxi host and it appears to be working (I am moving one of my systems currently).

Thanks!
bill
 

rogerh

Guru
Joined
Apr 18, 2014
Messages
1,111
Don' t use iSCSI myself - but it looked relevant. You're welcome!
 
Status
Not open for further replies.
Top