Probleme mit iSCSI

Serow

New member
Hi, ich nutze hier eine Qnap 421u als iSCSI Target fuer zwei meiner Linux Server auf Debian Wheezy. Mit ist aufgefallen, dass

1. die Performance nicht sinderlich gut ist
2. es in den Log seltsame Nachrichten gibt wenn Last entsteht

Code:
Nov 30 09:45:29 kvm00 udevd[6432]: timeout 'scsi_id --export --whitelisted --device=/dev/sdf'                                                                                                                                                                                                                                
Nov 30 09:45:30 kvm00 udevd[6432]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6558]                                                                                                                                                                                                                
Nov 30 09:45:31 kvm00 udevd[6432]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6558]                                                                                                                                                                                                                
Nov 30 09:45:32 kvm00 udevd[6432]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6558]                                                                                                                                                                                                                
Nov 30 09:45:33 kvm00 udevd[6432]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6558]                                                                                                                                                                                                                
Nov 30 09:45:34 kvm00 udevd[6432]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6558]                                                                                                                                                                                                                
Nov 30 09:45:35 kvm00 udevd[6432]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6558]                                                                                                                                                                                                                
Nov 30 09:45:36 kvm00 udevd[6432]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6558]                                                                                                                                                                                                                
Nov 30 09:45:37 kvm00 udevd[6432]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6558]                                                                                                                                                                                                                
Nov 30 09:45:38 kvm00 udevd[6432]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6558]                                                                                                                                                                                                                
Nov 30 09:45:39 kvm00 udevd[6432]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6558]                                                                                                                                                                                                                
Nov 30 09:45:40 kvm00 udevd[6432]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6558]                                                                                                                                                                                                                
Nov 30 09:45:41 kvm00 udevd[6432]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6558]                                                                                                                                                                                                                
Nov 30 09:45:42 kvm00 udevd[6432]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6558]                                                                                                                                                                                                                
Nov 30 09:45:43 kvm00 udevd[6432]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6558]                                                                                                                                                                                                                
Nov 30 09:45:44 kvm00 udevd[6432]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6558]                                                                                                                                                                                                                
Nov 30 09:45:45 kvm00 udevd[6432]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6558]                                                                                                                                                                                                                
Nov 30 09:45:46 kvm00 udevd[6432]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6558]                                                                                                                                                                                                                
Nov 30 09:45:47 kvm00 udevd[6432]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6558]                                                                                                                                                                                                                
Nov 30 09:45:48 kvm00 udevd[6432]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6558]                                                                                                                                                                                                                
Nov 30 09:45:49 kvm00 udevd[6432]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6558]                                                                                                                                                                                                                
Nov 30 09:45:50 kvm00 udevd[6432]: 'scsi_id --export --whitelisted --device=/dev/sdf' [6558] terminated by signal 9 (Killed)                                                                                                                                                                                                 
Nov 30 09:45:50 kvm00 udevd[6432]: timeout 'edd_id --export /dev/sdf'                                                                                                                                                                                                                                                        
Nov 30 09:45:50 kvm00 udevd[6432]: timeout '/sbin/blkid -o udev -p /dev/sdf'

Code:
root@kvm00:~# dd if=/dev/zero of=/dev/sdf bs=1M count=1000                                                                                                                                                                                                                                                                   
1000+0 records in                                                                                                                                                                                                                                                                                                            
1000+0 records out                                                                                                                                                                                                                                                                                                           
1048576000 bytes (1.0 GB) copied, 82.1932 s, 12.8 MB/s                                                                                                                                                                                                                                                                       
root@kvm00:~#

Fur Raw Zugriff auf ein iSCSI LUN ueber Gbit LAN ist das nicht der Hammer oder? :D

Hier Infos zur iSCSI Session:

Code:
root@kvm00:~# iscsiadm -m session -P 2
Target: iqn.2004-04.com.qnap:ts-421u:iscsi.qnap00.d66cae
        Current Portal: 172.16.20.20:3260,1
        Persistent Portal: 172.16.20.20:3260,1
                **********
                Interface:
                **********
                Iface Name: default
                Iface Transport: tcp
                Iface Initiatorname: iqn.2012-01.de.dr-ewald:kvm00:bf20f1303d35
                Iface IPaddress: 172.16.20.10
                Iface HWaddress: <empty>
                Iface Netdev: <empty>
                SID: 1
                iSCSI Connection State: LOGGED IN
                iSCSI Session State: LOGGED_IN
                Internal iscsid Session State: NO CHANGE
                *********
                Timeouts:
                *********
                Recovery Timeout: 120
                Target Reset Timeout: 30
                LUN Reset Timeout: 30
                Abort Timeout: 15
                *****
                CHAP:
                *****
                username: <empty>
                password: ********
                username_in: <empty>
                password_in: ********
                ************************
                Negotiated iSCSI params:
                ************************
                HeaderDigest: None
                DataDigest: None
                MaxRecvDataSegmentLength: 262144
                MaxXmitDataSegmentLength: 262144
                FirstBurstLength: 65536
                MaxBurstLength: 262144
                ImmediateData: Yes
                InitialR2T: Yes
                MaxOutstandingR2T: 1
root@kvm00:~#

EDIT: Gerade hat es das LUN wohl voellig abgehaengt. Neben dem dd habe ich noch ein fdisk -l gestartet, welches jetzt festhaengt.

Gruesse
serow
 
Zuletzt bearbeitet:

Serow

New member
Hi, ich habe den Prozess mal noch etwas detailierter wiederholt und:

Code:
root@kvm00:~# service open-iscsi stop
Unmounting iscsi-backed filesystems: Unmounting all devices marked _netdev.
Disconnecting iSCSI targets:.
Stopping iSCSI initiator service:.
root@kvm00:~# 
root@kvm00:~# echo "" > /var/lo
local/ lock/  log/   
root@kvm00:~# echo "" > /var/log/syslog
root@kvm00:~# echo "" > /var/log/messages
root@kvm00:~# service open-iscsi start
Starting iSCSI initiator service: iscsid.
Setting up iSCSI targets:
Logging in to [iface: default, target: iqn.2004-04.com.qnap:ts-421u:iscsi.qnap00.d66cae, portal: 172.16.20.20,3260] (multiple)
Login to [iface: default, target: iqn.2004-04.com.qnap:ts-421u:iscsi.qnap00.d66cae, portal: 172.16.20.20,3260] successful.
.
Mounting network filesystems:.
root@kvm00:~# fdisk -l

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ef088

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   468553727   234275840   83  Linux
/dev/sda2       468555774   488396799     9920513    5  Extended
/dev/sda5       468555776   488396799     9920512   82  Linux swap / Solaris

Disk /dev/sdf: 536.9 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders, total 1048576000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 262144 bytes
Disk identifier: 0x00000000

Disk /dev/sdf doesn't contain a valid partition table
root@kvm00:~#

root@kvm00:~# dd if=/dev/zero of=/dev/sdf bs=1M count=2000
2000+0 records in                                                                                                                                                                                                                                                                                                            
2000+0 records out                                                                                                                                                                                                                                                                                                           
2097152000 bytes (2.1 GB) copied, 197.623 s, 10.6 MB/s                                                                                                                                                                                                                                                                       
root@kvm00:~#

Code:
==> syslog <==
Nov 30 10:50:42 kvm00 kernel: [66615.768391]  connection1:0: ping timeout of 5 secs expired, recv timeout 5, last rx 4311591300, last ping 4311592552, now 4311593804
Nov 30 10:50:42 kvm00 kernel: [66615.768502]  connection1:0: detected conn error (1011)

==> messages <==
Nov 30 10:50:42 kvm00 kernel: [66615.768502]  connection1:0: detected conn error (1011)

==> syslog <==
Nov 30 10:50:42 kvm00 iscsid: Kernel reported iSCSI connection 1:0 error (1011 - ISCSI_ERR_CONN_FAILED: iSCSI connection failed) state (3)
Nov 30 10:50:45 kvm00 iscsid: connection1:0 is operational after recovery (1 attempts)
Nov 30 10:50:57 kvm00 udevd[6858]: timeout 'scsi_id --export --whitelisted --device=/dev/sdf'
Nov 30 10:50:58 kvm00 udevd[6858]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6903]
Nov 30 10:50:58 kvm00 udevd[6858]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6903]
Nov 30 10:50:58 kvm00 udevd[6858]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6903]
...
Nov 30 10:51:29 kvm00 kernel: [66663.136949]  connection1:0: ping timeout of 5 secs expired, recv timeout 5, last rx 4311603175, last ping 4311604428, now 4311605680
Nov 30 10:51:29 kvm00 kernel: [66663.137059]  connection1:0: detected conn error (1011)

==> messages <==
Nov 30 10:51:29 kvm00 kernel: [66663.137059]  connection1:0: detected conn error (1011)

==> syslog <==
Nov 30 10:51:30 kvm00 udevd[6858]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6903]
Nov 30 10:51:30 kvm00 iscsid: Kernel reported iSCSI connection 1:0 error (1011 - ISCSI_ERR_CONN_FAILED: iSCSI connection failed) state (3)
Nov 30 10:51:31 kvm00 udevd[6858]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6903]
Nov 30 10:51:32 kvm00 udevd[6858]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6903]
Nov 30 10:51:33 kvm00 udevd[6858]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6903]
Nov 30 10:51:33 kvm00 iscsid: connection1:0 is operational after recovery (1 attempts)
Nov 30 10:51:34 kvm00 udevd[6858]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6903]
Nov 30 10:51:35 kvm00 udevd[6858]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6903]
Nov 30 10:51:36 kvm00 udevd[6858]: timeout: killing 'scsi_id --export --whitelisted --device=/dev/sdf' [6903]
...
Nov 30 10:53:13 kvm00 udevd[6858]: 'scsi_id --export --whitelisted --device=/dev/sdf' [6903] terminated by signal 9 (Killed)
Nov 30 10:53:13 kvm00 udevd[6858]: timeout 'edd_id --export /dev/sdf'
Nov 30 10:53:13 kvm00 udevd[6858]: timeout '/sbin/blkid -o udev -p /dev/sdf'

Gruesse
serow
 
Oben