System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

no iscsi disk on iscsi-client

 
Highlighted
Valued Contributor

no iscsi disk on iscsi-client

iscsi-client OS: SLES10 SP3 i586

I configured this SLES10 SP3 box an iscsi-client via YaST (yast2 iscsi-client), but 'lsscsi' or 'fdisk -l' doesnt show any iscsi-disk

# rcopen-iscsi restart
Closing all iSCSI connections: Logging out of session [sid: 1, target: iqn.2010-03.com.ibm:sn.135026430, portal: 192.168.0.1,3260]
Logout of [sid: 1, target: iqn.2010-03.com.ibm:sn.135026430, portal: 192.168.0.1,3260]: successful
done
Stopping iSCSI initiator service: done
Starting iSCSI initiator service: done
Attempting discovery on target at 192.168.0.1: done
Setting up iSCSI targets: Logging in to [iface: default, target: iqn.2010-03.com.ibm:sn.135026430, portal: 192.168.0.1,3260]
Login to [iface: default, target: iqn.2010-03.com.ibm:sn.135026430, portal: 192.168.0.1,3260]: successful
done

# tail -f /var/log/messages
Jan 27 18:49:50 tiger kernel: Loading iSCSI transport class v2.0-724.
Jan 27 18:49:51 tiger kernel: iscsi: registered transport (tcp)
Jan 27 18:49:51 tiger iscsid: iSCSI logger with pid=4782 started!
Jan 27 18:49:51 tiger kernel: scsi5 : iSCSI Initiator over TCP/IP
Jan 27 18:49:52 tiger iscsid: transport class version 2.0-724. iscsid version 2.0-868
Jan 27 18:49:52 tiger iscsid: iSCSI daemon with pid=4783 started!
Jan 27 18:49:52 tiger iscsid: connection1:0 is operational now

# lsscsi
[0:0:0:0] disk ATA TOSHIBA MK8037GS DL23 /dev/sda
[1:0:0:0] cd/dvd Optiarc DVD RW AD-7560A DH10 /dev/sr0
tiger:/etc # rescan-scsi-bus.sh
Host adapter 0 (ata_piix) found.
Host adapter 1 (ata_piix) found.
Host adapter 5 (iscsi_tcp) found.
Scanning SCSI subsystem for new devices
Scanning host 0 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
Scanning for device 0 0 0 0 ...
OLD: Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: TOSHIBA MK8037GS Rev: DL23
Type: Direct-Access ANSI SCSI revision: 05
Scanning host 1 channels 0 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
Report Luns command not supported (support mandatory in SPC-3)
Scanning for device 1 0 0 0 ...
OLD: Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: Optiarc Model: DVD RW AD-7560A Rev: DH10
Type: CD-ROM ANSI SCSI revision: 05
Scanning host 5 channels 0 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
0 new device(s) found.
0 device(s) removed.

# sfdisk -l

Disk /dev/sda: 9729 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/sda1 0+ 1275- 1276- 10243768+ 7 HPFS/NTFS
end: (c,h,s) expected (1023,254,63) found (1023,239,63)
/dev/sda2 1276 1798 523 4200997+ 82 Linux swap / Solaris
/dev/sda3 1799 6367 4569 36700492+ 83 Linux
/dev/sda4 * 6368 9728 3361 26997232+ f W95 Ext'd (LBA)
/dev/sda5 6368+ 7673 1306- 10490413+ 83 Linux
/dev/sda6 7674+ 8457 784- 6297448+ 83 Linux

please help, where is the problem
Regards
2 REPLIES 2
Highlighted
Valued Contributor

Re: no iscsi disk on iscsi-client

unconfigured iscsi-client via YaST,


# iscsi_discovery 192.168.0.1 3260
iscsiadm: No active sessions.
starting discovery to 192.168.0.1
iscsiadm: Cannot modify node.transport_name. Invalid param name.
iscsiadm: Could not execute operation on all records. Err 22.
Testing iser-login to target iqn.2010-03.com.ibm:sn.135026430 portal 192.168.0.1:3260
Logging out of session [sid: 1, target: iqn.2010-03.com.ibm:sn.135026430, portal: 192.168.0.1,3260]
Logout of [sid: 1, target: iqn.2010-03.com.ibm:sn.135026430, portal: 192.168.0.1,3260]: successful
Set target iqn.2010-03.com.ibm:sn.135026430 to automatic login over iser to portal 192.168.0.1:3260
discovered 1 targets at 192.168.0.1

and then

# /sbin/iscsiadm -m node -T iqn.2010-03.com.ibm:sn.135026430 -p 192.168.0.1:3260 --login
Logging in to [iface: default, target: iqn.2010-03.com.ibm:sn.135026430, portal: 192.168.0.1,3260]
Login to [iface: default, target: iqn.2010-03.com.ibm:sn.135026430, portal: 192.168.0.1,3260]: successful

and still no iscsi-disk appear/available/visible

# lsscsi
[0:0:0:0] disk ATA TOSHIBA MK8037GS DL23 /dev/sda
[1:0:0:0] cd/dvd Optiarc DVD RW AD-7560A DH10 /dev/sr0

# rescan-scsi-bus.sh
Host adapter 0 (ata_piix) found.
Host adapter 1 (ata_piix) found.
Host adapter 11 (iscsi_tcp) found.
Scanning SCSI subsystem for new devices
Scanning host 0 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
Scanning for device 0 0 0 0 ...
OLD: Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: TOSHIBA MK8037GS Rev: DL23
Type: Direct-Access ANSI SCSI revision: 05
Scanning host 1 channels 0 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
Report Luns command not supported (support mandatory in SPC-3)
Scanning for device 1 0 0 0 ...
OLD: Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: Optiarc Model: DVD RW AD-7560A Rev: DH10
Type: CD-ROM ANSI SCSI revision: 05
Scanning host 11 channels 0 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
0 new device(s) found.
0 device(s) removed.
Highlighted
Honored Contributor

Re: no iscsi disk on iscsi-client

What kernel and iSCSI client revisions are you using?