LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   weird problem starting iscsi service (http://www.linuxquestions.org/questions/linux-server-73/weird-problem-starting-iscsi-service-916985/)

dsp2267 12-03-2011 10:10 PM

weird problem starting iscsi service
 
Hello all, I've run into a problem that I have no idea how to troubleshoot, and since it seems like a skill I ought to have, I want to understand what's going on and resolve it. So, here's the short version;

network consists of an OpenFiler VM and a CentOS 6 VM
----------------------------------------------------------
network is 192.168.1.0/24, inside a Linksys router
host machine is Win7Pro, running VMware Workstation 8
OpenFiler VM is serving out NFS, CIFS, and iSCSI
CentOS VM is client, and have got NFS and CIFS access working but not iSCSI
CentOS VM used to have config to connect to NFS, CIFS, and ISCSI on a FreeNAS VM with IPv4=192.168.1.90 which is not running
essentially, the iSCSI initiator daemon on the CentOS box is trying to connect to the FreeNAS iSCSI which is not there, and thus failing out

I have recursively grepped for the IPv4 address of the FreeNAS box, 192.168.1.90, but found nothing in /etc. For the life of me I cannot figure out why the iSCSI initiator still wants to connect to the FreeNAS box.

Obviously the easy way out would be to delete the VM and build a new one, but not knowing why this is happening is driving me nuts. I REALLY want to learn how to fix this. So I hope y'all can help me troubleshoot.

on CentOS box, here are the symptoms (forgive the length);

[root@centos6-server Desktop]# chkconfig --list | grep scsi
iscsi 0:off 1:off 2:on 3:on 4:on 5:on 6:off
iscsid 0:off 1:off 2:on 3:on 4:on 5:on 6:off

[root@centos6-server Desktop]# service iscsid status
iscsid (pid 1205) is running...
[root@centos6-server Desktop]# service iscsi status
iscsi is stopped

[root@centos6-server Desktop]# logger 'iscsi initialization retry starts here!!!'
[root@centos6-server Desktop]# logger 'iscsi initialization retry starts here!!!'
[root@centos6-server Desktop]# logger 'iscsi initialization retry starts here!!!'
[root@centos6-server Desktop]#
[root@centos6-server Desktop]# service iscsi start
Starting iscsi: iscsiadm: Could not login to [iface: default, target: iqn.2011-03.example.org.istgt:freenas, portal: 192.168.1.90,3260].
iscsiadm: initiator reported error (8 - connection timed out)
[FAILED]

Dec 3 21:32:07 centos6-server root: iscsi initialization retry starts here!!!
Dec 3 21:32:08 centos6-server root: iscsi initialization retry starts here!!!
Dec 3 21:32:09 centos6-server root: iscsi initialization retry starts here!!!
Dec 3 21:32:15 centos6-server iscsid: connect to 192.168.1.90:3260 failed (No route to host)
Dec 3 21:32:21 centos6-server iscsid: connect to 192.168.1.90:3260 failed (No route to host)
Dec 3 21:32:28 centos6-server iscsid: connect to 192.168.1.90:3260 failed (No route to host)
Dec 3 21:32:34 centos6-server iscsid: connect to 192.168.1.90:3260 failed (No route to host)
Dec 3 21:32:40 centos6-server iscsid: connect to 192.168.1.90:3260 failed (No route to host)
Dec 3 21:32:46 centos6-server iscsid: connect to 192.168.1.90:3260 failed (No route to host)
Dec 3 21:32:52 centos6-server iscsid: connect to 192.168.1.90:3260 failed (No route to host)
Dec 3 21:32:58 centos6-server iscsid: connect to 192.168.1.90:3260 failed (No route to host)
Dec 3 21:33:04 centos6-server iscsid: connect to 192.168.1.90:3260 failed (No route to host)
Dec 3 21:33:11 centos6-server iscsid: connect to 192.168.1.90:3260 failed (No route to host)
Dec 3 21:33:17 centos6-server iscsid: connect to 192.168.1.90:3260 failed (No route to host)
Dec 3 21:33:23 centos6-server iscsid: connect to 192.168.1.90:3260 failed (No route to host)
Dec 3 21:33:29 centos6-server iscsid: connect to 192.168.1.90:3260 failed (No route to host)
Dec 3 21:33:35 centos6-server iscsid: connect to 192.168.1.90:3260 failed (No route to host)
Dec 3 21:33:41 centos6-server iscsid: connect to 192.168.1.90:3260 failed (No route to host)
Dec 3 21:33:47 centos6-server iscsid: connect to 192.168.1.90:3260 failed (No route to host)
Dec 3 21:33:53 centos6-server iscsid: connect to 192.168.1.90:3260 failed (No route to host)
Dec 3 21:33:59 centos6-server iscsid: connect to 192.168.1.90:3260 failed (No route to host)
Dec 3 21:34:05 centos6-server iscsid: connect to 192.168.1.90:3260 failed (No route to host)
Dec 3 21:34:11 centos6-server iscsid: connect to 192.168.1.90:3260 failed (No route to host)
Dec 3 21:34:14 centos6-server iscsid: Login timed out. Could not login to [target: iqn.2011-03.example.org.istgt:freenas, portal: 192.168.1.90,3260] through [iface: default].
Dec 3 21:34:14 centos6-server iscsid: Connection-1:0 to [target: iqn.2011-03.example.org.istgt:freenas, portal: 192.168.1.90,3260] through [iface: default] is shutdown.

[root@centos6-server Desktop]# grep -R "192.168.1.90" /etc
[root@centos6-server Desktop]#

How do I get rid of this desire to connect to a phantom iSCSI server?

lordy 12-04-2011 10:21 AM

Hi,

Check your network connectivity to the iSCSI target host - this message might mean that the port is filtered (try telnet/nc to verify)

Good luck

dsp2267 12-05-2011 02:08 AM

Quote:

Originally Posted by lordy (Post 4541660)
Hi,

Check your network connectivity to the iSCSI target host - this message might mean that the port is filtered (try telnet/nc to verify)

The iSCSI target host that the iscsi service is trying to connect to does not exist. Connectivity is irrelevant in this case.


All times are GMT -5. The time now is 07:00 PM.