On Tuesday 2019-12-03 18:17, L A Walsh wrote:
Has anyone tried and been able to setup their machine to server 1 or more iSCSI targets mapped to local generic disk space (perhaps contiguous file space, or an XFS-realtime mapped file)? I couldn't find any iSCSI rpms for a tgt (target or server)
No one uses tgt. Use lio, example: » modprobe tcm_loop » zypper in --no-r targetcli-fb » targetcli /> cd /backstores/ramdisk;
create name=r0 size=16M Created ramdisk r0 with size 16M. /> cd /loopback create Created target naa.5001405f8d695858. /> cd /loopback/naa.5001405f8d695858/luns create storage_object=/backstores/ramdisk/r0 Created LUN 0.
» dmesg | tail [1399907.856149] scsi 0:0:1:0: Direct-Access LIO-ORG r0 4.0 PQ: 0 ANSI: 5 [1399907.856315] sd 0:0:1:0: Attached scsi generic sg0 type 0 [1399907.856388] sd 0:0:1:0: [sda] 32768 512-byte logical blocks: (16.8 MB/16.0 MiB) [1399907.856398] sd 0:0:1:0: [sda] Write Protect is off [1399907.856399] sd 0:0:1:0: [sda] Mode Sense: 43 00 00 08 [1399907.856411] sd 0:0:1:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [1399907.856415] loopback/naa.50014054f73cc6ab: Unsupported SCSI Opcode 0xa3, sending CHECK_CONDITION. [1399907.856426] sd 0:0:1:0: [sda] Optimal transfer size 4294967288 logical blocks > dev_max (65535 logical blocks) [1399907.892506] sd 0:0:1:0: [sda] Attached SCSI disk (Alternatively, "cd /iscsi" and create a WWN there to export it via iscsi. It's quite intuitive.) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org