Hello, sorry, I realized my mistake when the submit button was pressed. I also posted the Question in the lio-target-group. You can delete the posting in this group or leave it. Maybe somebody can also help me in this group.
A. Block On 9 Dez., 11:55, Pasi Kärkkäinen <pa...@iki.fi> wrote: > 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: [- Zitierten Text ausblenden - > > - Zitierten Text anzeigen -... > > Erfahren Sie mehr » -- 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.