[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: iscsitarget aus Jessie in Wheezy



From: "Klaus Pieper"
Wie schaut die Konfiguration aus? (targetcli, ls /)? Du brauchst unter /iscsi/iqn.. mindestens je einen Eintrag unter acls, luns und portals, wobei unter acls der iqn des Initiators kommt.

# targetcli
Welcome to the targetcli shell:

Copyright (c) 2011 by RisingTide Systems LLC.

Visit us at http://www.risingtidesystems.com.

Can't load fabric module qla2xxx.
Using iscsi fabric module.
Using loopback fabric module.
Using tcm_fc fabric module.
Can't load fabric module ib_srpt.
/> ls
o- / ......................................................................................................................... [...] o- backstores .............................................................................................................. [...] | o- fileio ................................................................................................... [1 Storage Object] | | o- file_backend ................................................................................. [/storage/raptest activated] | o- iblock ................................................................................................... [1 Storage Object] | | o- esx .................................................................................................. [/dev/sdb activated] | o- pscsi .................................................................................................... [0 Storage Object] | o- rd_dr .................................................................................................... [0 Storage Object] | o- rd_mcp ................................................................................................... [0 Storage Object] o- iscsi ............................................................................................................. [2 Targets] | o- iqn.2003-01.org.linux-iscsi.storage.x8664:sn.2bde9987b6a3 ........................................................... [1 TPG] | | o- tpgt1 ........................................................................................................... [enabled] | | o- acls ............................................................................................................ [0 ACL] | | o- luns ............................................................................................................ [1 LUN] | | | o- lun0 .......................................................................................... [iblock/esx (/dev/sdb)] | | o- portals ...................................................................................................... [1 Portal] | | o- 192.168.3.1:3260 ................................................................................................. [OK] | o- iqn.2003-01.org.linux-iscsi.storage.x8664:sn.484872c3530f ........................................................... [1 TPG] | o- tpgt1 ........................................................................................................... [enabled] | o- acls ............................................................................................................ [0 ACL] | o- luns ............................................................................................................ [1 LUN] | | o- lun0 ......................................................................... [fileio/file_backend (/storage/raptest)] | o- portals ...................................................................................................... [0 Portal] o- loopback ........................................................................................................... [0 Target] o- tcm_fc ............................................................................................................. [0 Target]


Fallstrick könnte die Authentisierung sein, kann man abstellen

cd /iscsi/iqn.soundso./tpgt1
set attribute authentication=0

das habe ich lt. Anleitung so gemacht:
set attribute authentication=0 demo_mode_write_protect=0

allerdings scheint es damit ein Problem zu geben, denn von meiner Debian Box aus sehe ich folgendes:

root@backup:~# iscsiadm  -m discovery -t st -p 192.168.3.1
192.168.3.1:3260,-1 iqn.2003-01.org.linux-iscsi.storage.x8664:sn.484872c3530f 192.168.3.1:3260,1 iqn.2003-01.org.linux-iscsi.storage.x8664:sn.2bde9987b6a3 root@backup:~# iscsiadm -m node --targetname "iqn.2003-01.org.linux-iscsi.storage.x8664:sn.2bde9987b6a3" --portal "192.168.3.1" --login Logging in to [iface: default, target: iqn.2003-01.org.linux-iscsi.storage.x8664:sn.2bde9987b6a3, portal: 192.168.3.1,3260] iscsiadm: Could not login to [iface: default, target: iqn.2003-01.org.linux-iscsi.storage.x8664:sn.2bde9987b6a3, portal: 192.168.3.1,3260]: iscsiadm: initiator reported error (19 - encountered non-retryable iSCSI login failure)

meine iscsitargets von der Squeeze Box hingegen funktionieren sofort.


Dann habe ich noch "set parameter MaxRecvDataSegmentLength=65636" gesetzt.
wo muß ich das setzen?


Reply to: