On Jun 4, 2014, at 7:11 AM, vichharaks ros <[email protected]> wrote:

> Hi,
> 
> Target server :
> 
> 2.6.32-431.17.1.el6.centos.plus.x86_64
> # rpm -qa | grep scsi
> iscsi-initiator-utils-6.2.0.873-10.el6.x86_64
> scsi-target-utils-1.0.24-12.el6_5.x86_64
> 
> # cat /etc/tgt/targets.conf
> default-driver iscsi
> <target iqn.2008-09.com.example:server.target1>
>     backing-store /dev/vgiscsi/lviscsi1
>     initiator-address 192.168.10.0/24
> </target>
> 
> # tgtadm --lld iscsi --mode target --op show 
> Target 1: iqn.2008-09.com.example:server.target1
>     System information:
>         Driver: iscsi
>         State: ready
>     I_T nexus information:
>         I_T nexus: 1
>             Initiator: iqn.1994-05.com.redhat:z400
>             Connection: 0
>                 IP Address: 192.168.10.70
>     LUN information:
>         LUN: 0
>             Type: controller
>             SCSI ID: IET     00010000
>             SCSI SN: beaf10
>             Size: 0 MB, Block size: 1
>             Online: Yes
>             Removable media: No
>             Prevent removal: No
>             Readonly: No
>             Backing store type: null
>             Backing store path: None
>             Backing store flags: 
>     Account information:
>     ACL information:
>         192.168.10.0/24
> 
> 
> Initiator host:
> 
> 2.6.32-431.17.1.el6.x86_64 #1
> # rpm -qa | grep scsi
> iscsi-initiator-utils-6.2.0.873-10.el6.x86_64
> 
> # iscsiadm -m node
> 192.168.10.50:3260,1 iqn.2008-09.com.example:server.target1
> # iscsiadm -m session
> tcp: [1] 192.168.10.50:3260,1 iqn.2008-09.com.example:server.target1
> 
> 
> # iscsiadm -m session -P 3
> iSCSI Transport Class version 2.0-870
> version 6.2.0-873.10.el6
> Target: iqn.2008-09.com.example:server.target1
>         Current Portal: 192.168.10.50:3260,1
>         Persistent Portal: 192.168.10.50:3260,1
>                 **********
>                 Interface:
>                 **********
>                 Iface Name: iface0
>                 Iface Transport: tcp
>                 Iface Initiatorname: iqn.1994-05.com.redhat:z400
>                 Iface IPaddress: 192.168.10.70
>                 Iface HWaddress: F4:CE:46:2D:A6:E9
>                 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: 8192
>                 FirstBurstLength: 65536
>                 MaxBurstLength: 262144
>                 ImmediateData: Yes
>                 InitialR2T: Yes
>                 MaxOutstandingR2T: 1
>                 ************************
>                 Attached SCSI devices:
>                 ************************
>                 Host Number: 6  State: running
>                 scsi6 Channel 00 Id 0 Lun: 0
> 
> # dmesg | grep scsi
> scsi0 : ahci
> scsi1 : ahci
> scsi2 : ahci
> scsi3 : ahci
> scsi4 : ahci
> scsi5 : ahci
> scsi 1:0:0:0: Direct-Access     ATA      ST3500641AS      3.AH PQ: 0 ANSI: 5
> sd 1:0:0:0: Attached scsi generic sg0 type 0
> iscsi: registered transport (tcp)
> iscsi: registered transport (iser)
> iscsi: registered transport (cxgb3i)
> iscsi: registered transport (cxgb4i)
> iscsi: registered transport (bnx2i)
> iscsi: registered transport (be2iscsi)
> In beiscsi_module_init, tt=ffffffffa060ee80
> scsi6 : iSCSI Initiator over TCP/IP
> scsi 6:0:0:0: RAID              IET      Controller       0001 PQ: 0 ANSI: 5
> scsi 6:0:0:0: Attached scsi generic sg1 type 12
> 
> 
> # fdisk -l
> 
> Disk /dev/sda: 500.1 GB, 500107862016 bytes
> 255 heads, 63 sectors/track, 60801 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x4c05c860
> 
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sda1   *           1          64      512000   83  Linux
> Partition 1 does not end on cylinder boundary.
> /dev/sda2              64       60802   487873536   8e  Linux LVM
> 
> 
> So my problem is that , no new iscsi disk is attached to the initiator host, 
> any idea?


You need to email the stgt list. I think the problem is just that you did not 
define any disks:

>             Type: controller

It looks like you defined LUN0 as a controller.

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to