On Tue, Dec 08, 2009 at 10:13:16AM -0800, ablock wrote:
> 
> Hi,
> I have problems with the lio-target software. I tried lio-core-2.6.31
> and lio-core-2.6.
> I compiled it together with lio-utils under ubuntu 9.10 and debian
> 5.0.
> Ubuntu and debian was installed in a virtual machine. I used virtual
> box 3.0.12.
> I tried it also on bare metal with the same problems.
>

Hello,

You're posting to a wrong mailinglist..
This list is about the open-iscsi linux iscsi initiator, not lio target.

I don't know how many people here can help you with the lio target..

-- Pasi

> 
> I can get it working when i use a block device like /dev/sdb.
> It crashes completely when i use a block device like /dev/sdb1 (The
> Partition exists!!!)
> It also crashes completely when i use a logical volume or a md-device.
> 
> The crash happens whenever a Windows Initiator logs in. I tried
> Windows Vista and Windows Server 2008.
> 
> When I start the target module I get the following output:
> 
> Loading target_core_mod/ConfigFS core:   [OK]
> Calling ConfigFS script /etc/target/tcm_start.sh for
> target_core_mod:   [OK]
> Calling ConfigFS script /etc/target/lio_start.sh for
> iscsi_target_mod:   [OK]
> 
> 
> In /var/log/messages I get:
> 
> Dec  8 18:50:51 debian kernel: [  106.480865] TARGET_CORE[0]: Loading
> Generic Kernel Storage Engine: v3.1.0 on Linux/x86_64 on 2.6.31.4v3.1
> Dec  8 18:50:51 debian kernel: [  106.481007] TARGET_CORE[0]:
> Initialized ConfigFS Fabric Infrastructure: v2.0.0 on Linux/x86_64 on
> 2.6.31.4v3.1
> Dec  8 18:50:51 debian kernel: [  106.481036] SE_PC[0] - Registered
> Plugin Class: TRANSPORT
> Dec  8 18:50:51 debian kernel: [  106.481061] PLUGIN_TRANSPORT[1] -
> pscsi registered
> Dec  8 18:50:51 debian kernel: [  106.481084] PLUGIN_TRANSPORT[2] -
> stgt registered
> Dec  8 18:50:51 debian kernel: [  106.481212] CORE_STGT[0]: Bus
> Initalization complete
> Dec  8 18:50:51 debian kernel: [  106.481232] PLUGIN_TRANSPORT[4] -
> iblock registered
> Dec  8 18:50:51 debian kernel: [  106.481250] PLUGIN_TRANSPORT[5] -
> rd_dr registered
> Dec  8 18:50:51 debian kernel: [  106.481268] PLUGIN_TRANSPORT[6] -
> rd_mcp registered
> Dec  8 18:50:51 debian kernel: [  106.481285] PLUGIN_TRANSPORT[7] -
> fileio registered
> Dec  8 18:50:51 debian kernel: [  106.481307] SE_PC[1] - Registered
> Plugin Class: OBJ
> Dec  8 18:50:51 debian kernel: [  106.481326] PLUGIN_OBJ[1] - dev
> registered
> 
> 
> I then initialize the iscsi target with the following commands
> 
> tcm_node --block iblock_0/my_dev2 /dev/vg1/lv1
> lio_node --addlun iqn.2009-11.local.schule.target.i686:sn.123456789 1
> 0 my_dev_port iblock_0/my_dev2
> lio_node --disableauth iqn.2009-11.local.schule.target.i686:sn.
> 123456789 1
> lio_node --addnp iqn.2009-11.local.schule.target.i686:sn.123456789 1
> 192.168.56.101:3260
> lio_node --addlunacl iqn.2009-11.local.schule.target.i686:sn.123456789
> 1 iqn.1991-05.com.microsoft:andreas-pc 0 0
> lio_node --enabletpg iqn.2009-11.local.schule.target.i686:sn.123456789
> 1
> 
> They produce the following output:
> Output tcm_node:
> 
> Status: DEACTIVATED  Execute/Left/Max Queue Depth: 0/32/32
> SectorSize: 512  MaxSectors: 255
>         iBlock device: dm-0
>         Major: 253 Minor: 0  CLAIMED: IBLOCK
>  ConfigFS HBA: iblock_0
> Successfully added TCM/ConfigFS HBA: iblock_0
>  ConfigFS Device Alias: my_dev2
> Device Params ['/dev/vg1/lv1']
> Set T10 WWN Unit Serial for iblock_0/my_dev2 to: 57f6b040-3159-49df-
> a5bd-2acdb948ef6f
> Successfully created TCM/ConfigFS storage object: /sys/kernel/config/
> target/core/iblock_0/my_dev2
> 
> Output lio_node --addlun:
> Successfully created iSCSI Target Logical Unit
> 
> Output lio_node --disableauth:
> Successfully disabled iSCSI Authentication on iSCSI Target Portal
> Group: iqn.2009-11.local.schule.target.i686:sn.123456789 1
> 
> Output lio_node --addnp:
> Successfully created network portal: 192.168.56.101:3260 created iqn.
> 2009-11.local.schule.target.i686:sn.123456789 TPGT: 1
> 
> Output von lio_node --addlunacl:
> Successfully added iSCSI Initiator Mapped LUN: 0 ACL iqn.
> 1991-05.com.microsoft:andreas-pc for iSCSI Target Portal Group: iqn.
> 2009-11.local.schule.target.i686:sn.123456789 1
> 
> Output von lio_node --enabletpg:
> Successfully enabled iSCSI Target Portal Group: iqn.
> 2009-11.local.schule.target.i686:sn.123456789 1
> 
> 
> In /var/log/messages the initialization leads to the following:
> 
> Dec  8 18:53:11 debian kernel: [  246.679996] Target_Core_ConfigFS:
> Located se_plugin: ffff88000dd630e0 plugin_name: iblock hba_type: 4
> plugin_dep_id: 0
> Dec  8 18:53:11 debian kernel: [  246.680398] CORE_HBA[0] - Linux-
> iSCSI.org iBlock HBA Driver 3.1 on Generic Target Core Stack v3.1.0
> Dec  8 18:53:11 debian kernel: [  246.680425] CORE_HBA[0] - Attached
> iBlock HBA: 0 to Generic Target Core TCQ Depth: 512
> Dec  8 18:53:11 debian kernel: [  246.680452] CORE_HBA[0] - Attached
> HBA to Generic Target Core
> Dec  8 18:53:11 debian kernel: [  246.680852] IBLOCK: Allocated ib_dev
> for my_dev2
> Dec  8 18:53:11 debian kernel: [  246.680879] Target_Core_ConfigFS:
> Allocated se_subsystem_dev_t: ffff88000d86b000 se_dev_su_ptr:
> ffff88000ec07800
> Dec  8 18:53:11 debian kernel: [  246.720958] Target_Core_ConfigFS:
> iblock_0/my_dev2 set udev_path: /dev/vg1/lv1
> Dec  8 18:53:11 debian kernel: [  246.735619] IBLOCK: Claiming struct
> block_device: ffff88000f2d8200
> Dec  8 18:53:11 debian kernel: [  246.735714] bio: create slab <bio-1>
> at 1
> Dec  8 18:53:11 debian kernel: [  246.735736] IBLOCK: Created bio_set
> () for major/minor: 253:0
> Dec  8 18:53:11 debian kernel: [  246.735743] iblock: Using
> SPC3_PERSISTENT_RESERVATIONS emulation
> Dec  8 18:53:11 debian kernel: [  246.735746] iblock: Enabling ALUA
> Emulation for SPC-3 device
> Dec  8 18:53:11 debian kernel: [  246.735760] iblock: Adding to
> default ALUA LU Group: core/alua/lu_gps/default_lu_gp
> Dec  8 18:53:11 debian kernel: [  246.735764] CORE_iBLOCK[0] -
> Activating Device with TCQ: 0 at Major: 253 Minor 0
> Dec  8 18:53:11 debian kernel: [  246.735870]   Vendor: LIO-ORG
> Model: IBLOCK            Revision: 3.1
> Dec  8 18:53:11 debian kernel: [  246.735879]   Type:   Direct-
> Access                      ANSI SCSI revision: 05
> Dec  8 18:53:11 debian kernel: [  246.735907] T10 VPD Unit Serial
> Number: 1234567890:0_253_0
> Dec  8 18:53:11 debian kernel: [  246.735924] T10 VPD Page Length: 38
> Dec  8 18:53:11 debian kernel: [  246.735927] T10 VPD Identifer
> Length: 34
> Dec  8 18:53:11 debian kernel: [  246.735930] T10 VPD Identifier
> Association: addressed logical unit
> Dec  8 18:53:11 debian kernel: [  246.735937] T10 VPD Identifier Type:
> T10 Vendor ID based
> Dec  8 18:53:11 debian kernel: [  246.735940] T10 VPD ASCII Device
> Identifier: LIO-ORG
> Dec  8 18:53:11 debian kernel: [  246.735958] Target_Core_ConfigFS:
> Registered iblock se_dev->se_dev_ptr: ffff88000ec00c00 from fd
> Dec  8 18:53:11 debian kernel: [  246.790576] Target_Core_ConfigFS:
> Set emulated VPD Unit Serial: 57f6b040-3159-49df-a5bd-2acdb948ef6f
> Dec  8 18:53:11 debian kernel: [  246.791401] T10 VPD Page Length: 76
> Dec  8 18:53:11 debian kernel: [  246.791405] T10 VPD Identifer
> Length: 16
> Dec  8 18:53:11 debian kernel: [  246.791411] T10 VPD Identifier
> Association: addressed logical unit
> Dec  8 18:53:11 debian kernel: [  246.791414] T10 VPD Identifier Type:
> NAA
> Dec  8 18:53:11 debian kernel: [  246.791418] T10 VPD Binary Device
> Identifier: 3600140557f6b040d3159d49dfda5bdd2
> Dec  8 18:53:11 debian kernel: [  246.791422] T10 VPD Identifer
> Length: 52
> Dec  8 18:53:11 debian kernel: [  246.791428] T10 VPD Identifier
> Association: addressed logical unit
> Dec  8 18:53:11 debian kernel: [  246.791431] T10 VPD Identifier Type:
> T10 Vendor ID based
> Dec  8 18:53:11 debian kernel: [  246.791434] T10 VPD ASCII Device
> Identifier: LIO-ORG
> Dec  8 18:56:13 debian kernel: [  428.046434] Target_Core_ConfigFS:
> REGISTER -> group: ffffffffa0368600 name: iscsi
> Dec  8 18:56:13 debian kernel: [  428.070311] Linux-iSCSI.org iSCSI
> Target Core Stack v3.1.0 on Linux/x86_64 on 2.6.31.4v3.1
> Dec  8 18:56:13 debian kernel: [  428.070357] <<<<<<<<<<<<<<<<<<<<<<
> BEGIN FABRIC API >>>>>>>>>>>>>>>>>>>>>>
> Dec  8 18:56:13 debian kernel: [  428.070362] Initialized struct
> target_fabric_configfs: ffff88000d8b8400 for iscsi
> Dec  8 18:56:13 debian kernel: [  428.070370] <<<<<<<<<<<<<<<<<<<<<<
> END FABRIC API >>>>>>>>>>>>>>>>>>>>>>
> Dec  8 18:56:13 debian kernel: [  428.070373] LIO_TARGET[0] - Set
> fabric -> lio_target_fabric_configfs
> Dec  8 18:56:13 debian kernel: [  428.076401]
> iscsi_allocate_thread_sets:195: ***OPS*** Spawned 4 thread set(s) (8
> total threads).
> Dec  8 18:56:13 debian kernel: [  428.077016] TARGET_CORE[iSCSI]:
> Allocated Discovery se_portal_group_t for endpoint: None, Portal Tag:
> 1
> Dec  8 18:56:13 debian kernel: [  428.077239] CORE[0] - Allocated
> Discovery TPG
> Dec  8 18:56:13 debian kernel: [  428.077242] Loading Complete.
> Dec  8 18:56:13 debian kernel: [  428.078426] Target_Core_ConfigFS:
> REGISTER -> Located fabric: iscsi
> Dec  8 18:56:13 debian kernel: [  428.078430] Target_Core_ConfigFS:
> REGISTER -> ffffffffa03a7d90
> Dec  8 18:56:13 debian kernel: [  428.078434] Target_Core_ConfigFS:
> REGISTER -> Allocated Fabric: iscsi
> Dec  8 18:56:13 debian kernel: [  428.078437] Target_Core_ConfigFS:
> REGISTER -> Set tf->tf_fabric for iscsi
> Dec  8 18:56:13 debian kernel: [  428.078483]
> lio_target_call_coreaddtiqn(): name: iqn.
> 2009-11.local.schule.target.i686:sn.123456789
> Dec  8 18:56:13 debian kernel: [  428.078587] CORE[0] - Added iSCSI
> Target IQN: iqn.2009-11.local.schule.target.i686:sn.123456789
> Dec  8 18:56:13 debian kernel: [  428.078591] LIO_Target_ConfigFS:
> REGISTER -> iqn.2009-11.local.schule.target.i686:sn.123456789
> Dec  8 18:56:13 debian kernel: [  428.078595] LIO_Target_ConfigFS:
> REGISTER -> Allocated Node: iqn.2009-11.local.schule.target.i686:sn.
> 123456789
> Dec  8 18:56:13 debian kernel: [  428.078609] lio_target_tiqn_addtpg()
> parent name: iqn.2009-11.local.schule.target.i686:sn.123456789
> Dec  8 18:56:13 debian kernel: [  428.078705] TARGET_CORE[iSCSI]:
> Allocated Normal se_portal_group_t for endpoint: iqn.
> 2009-11.local.schule.target.i686:sn.123456789, Portal Tag: 1
> Dec  8 18:56:13 debian kernel: [  428.078919] CORE[iqn.
> 2009-11.local.schule.target.i686:sn.123456789]_TPG[1] - Added iSCSI
> Target Portal Group
> Dec  8 18:56:13 debian kernel: [  428.078923] LIO_Target_ConfigFS:
> REGISTER -> iqn.2009-11.local.schule.target.i686:sn.123456789
> Dec  8 18:56:13 debian kernel: [  428.078927] LIO_Target_ConfigFS:
> REGISTER -> Allocated TPG: tpgt_1
> Dec  8 18:56:13 debian kernel: [  428.079157] LIO_Target_ConfigFS:
> REGISTER -> iqn.2009-11.local.schule.target.i686:sn.123456789 TPGT: 1
> LUN: 0
> Dec  8 18:56:13 debian kernel: [  428.098153] iblock/iSCSI: Adding to
> default ALUA Target Port Group: alua/default_tg_pt_gp
> Dec  8 18:56:13 debian kernel: [  428.098180] iSCSI_TPG[1]_LUN[0] -
> Activated iSCSI Logical Unit from CORE HBA: 0
> Dec  8 18:56:13 debian kernel: [  428.098203] LIO_Target_ConfigFS:
> Created Port Symlink my_dev2 -> lun_0
> Dec  8 19:01:42 debian kernel: [  757.891574] Disabling iSCSI
> Authentication Methods for TPG: 1.
> Dec  8 19:02:59 debian kernel: [  834.659367] LIO_Target_ConfigFS:
> REGISTER -> iqn.2009-11.local.schule.target.i686:sn.123456789 TPGT: 1
> PORTAL: 192.168.56.101:3260
> Dec  8 19:02:59 debian kernel: [  834.659508] CORE[0] - Added Network
> Portal: 192.168.56.101:3260 on TCP on network device: None
> Dec  8 19:02:59 debian kernel: [  834.659516] CORE[iqn.
> 2009-11.local.schule.target.i686:sn.123456789] - Added Network Portal:
> 192.168.56.101:3260,1 on TCP on network device: None
> Dec  8 19:02:59 debian kernel: [  834.659522] CORE[iqn.
> 2009-11.local.schule.target.i686:sn.123456789]_TPG[1] - Incremented
> np_exports to 1
> Dec  8 19:02:59 debian kernel: [  834.659533] LIO_Target_ConfigFS:
> addnptotpg done!
> Dec  8 19:05:03 debian kernel: [  958.394369] iSCSI_TPG[1] - Added ACL
> with TCQ Depth: 16 for iSCSI Initiator Node: iqn.
> 1991-05.com.microsoft:andreas-pc
> Dec  8 19:05:03 debian kernel: [  958.394416] LIO_Target_ConfigFS:
> REGISTER -> iqn.2009-11.local.schule.target.i686:sn.123456789 TPGT: 1
> Initiator: iqn.1991-05.com.microsoft:andreas-pc CmdSN Depth: 16
> Dec  8 19:05:03 debian kernel: [  958.394705] LIO_Target_ConfigFS:
> Initialized Initiator LUN ACL: iqn.1991-05.com.microsoft:andreas-pc
> Mapped LUN: lun_0
> Dec  8 19:05:03 debian kernel: [  958.411504] iSCSI_TPG[1]_LUN[0->0] -
> Added RW ACL for  InitiatorNode: iqn.1991-05.com.microsoft:andreas-pc
> Dec  8 19:05:03 debian kernel: [  958.411512] LIO_Target_ConfigFS:
> Created Initiator LUN ACL Symlink: iqn.1991-05.com.microsoft:andreas-
> pc TPG LUN: lun_0 Mapped LUN: lun_0 Write Protect: OFF
> Dec  8 19:06:16 debian kernel: [ 1031.263995] iSCSI_TPG[1] - Enabled
> iSCSI Target Portal Group
> 
> 
> The command /etc/init.d/target status produces:
> 
> [---------------------------] TCM/ConfigFS Status
> [----------------------------]
> \------> iblock_0
>         HBA Index: 0 plugin: iblock version: v2.0.0
>         \-------> my_dev2
>         Status: ACTIVATED  Execute/Left/Max Queue Depth: 0/32/32
> SectorSize: 512  MaxSectors: 255
>         iBlock device: dm-0
>         Major: 253 Minor: 0  CLAIMED: IBLOCK
>         udev_path: /dev/vg1/lv1
> 
> [---------------------------] LIO-Target Status
> [----------------------------]
> \------> iqn.2009-11.local.schule.target.i686:sn.123456789
>         \-------> tpgt_1  TargetAlias: LIO Target
>          TPG Status: ENABLED
>          TPG Network Portals:
>                  \-------> 192.168.56.101:3260
>          TPG Logical Units:
>                  \-------> lun_0/my_dev_port -> target/core/iblock_0/
> my_dev2
> 
> Target Engine Core ConfigFS Infrastructure v2.0.0 on Linux/x86_64 on
> 2.6.31.4v3.1
> Linux-iSCSI.org Target v3.1.0 on Linux/x86_64 on 2.6.31.4v3.1
> 
> 
> In the iscsi initiator dialog from Microsoft I can add the target
> portal, that means the lio-target. I then select the Target tab and
> then the lio-target from the list.
> When i click the log on Button 2 things can happen:
> The first log on is ok. I then can open in Windows the computer
> managemant and there the disk management.
> The iscsi device is displayed as a new disc drive and i can partition
> it. But once i format the partition the lio-target
> crashes completely. The linux os reacts no more.
> 
> When i restart the linux machine it craches from now on as soon as
> Windows log on to lio target.
> 
> In the Windows Event log the following error is displayed:
> the initiator could not send a iscsi pdu...
> 
> Can anybody help me?
> Thanks
> Andreas Block
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "open-iscsi" group.
> To post to this group, send email to open-is...@googlegroups.com.
> To unsubscribe from this group, send email to 
> open-iscsi+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/open-iscsi?hl=en.
> 
> 

--

You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-is...@googlegroups.com.
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.


Reply via email to