[opensuse-factory] using your machine as an iSCSI target(server)
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), though is seemed more than one for client. I found a tgt package, but running it gives: tgtd --debug 3 -f (null): fcoe_init(214) (null) (null): fcoe_create_interface(171) no interface specified. tgtd: tgt_miscdev_init(352) Cannot open control path to the driver tgtd: main(342) No kernel interface It's startup script wanted to load a missing kernel module 'iscsi_tgt'. :^/ Any ideas? -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
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
On 2019/12/03 09:27, Jan Engelhardt wrote:
» zypper in --no-r targetcli-fb
Ahh... may have to wait a bit until I get my local packages correctly mirroring a latest release.
(Alternatively, "cd /iscsi" and create a WWN there to export it via iscsi. It's quite intuitive.)
Uh, yea, what's a WWN? and where would I find direction on how to export it via iscsi for those not quite as intuitive... ;^/ Thanks! -l -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Tuesday 2019-12-03 20:31, L A Walsh wrote:
On 2019/12/03 09:27, Jan Engelhardt wrote:
» zypper in --no-r targetcli-fb
Ahh... may have to wait a bit until I get my local packages correctly mirroring a latest release.
(Alternatively, "cd /iscsi" and create a WWN there to export it via iscsi. It's quite intuitive.)
Uh, yea, what's a WWN? and where would I find direction on how to export it via iscsi for those not quite as intuitive... ;^/
It's a shell with tabbing and not many commands. Also, google: http://linux-iscsi.org/wiki/ISCSI -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 2019/12/03 11:37, Jan Engelhardt wrote:
It's a shell with tabbing and not many commands. Also, google: http://linux-iscsi.org/wiki/ISCSI ====
Looks great! Thanks. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (2)
-
Jan Engelhardt
-
L A Walsh