Linux 启动器找不到由tgt创建的ISCSI目标

Linux 启动器找不到由tgt创建的ISCSI目标,linux,storage,iscsi,Linux,Storage,Iscsi,我刚刚通过tgt创建了一个ISCSI目标,输入命令tgtadm--lld ISCSI--mode target--op show 我可以看到: 目标1:iqn.2009-02.com.示例:for.all System information: Driver: iscsi State: ready I_T nexus information: LUN information: LUN: 0 Type: controller SCSI ID:

我刚刚通过tgt创建了一个ISCSI目标,输入命令tgtadm--lld ISCSI--mode target--op show 我可以看到:

目标1:iqn.2009-02.com.示例:for.all

System information:
    Driver: iscsi
    State: ready
I_T nexus information:
LUN information:
    LUN: 0
        Type: controller
        SCSI ID: IET     00010000
        SCSI SN: beaf10
        Size: 0 MB, Block size: 1
        Online: Yes
        Removable media: No
        Prevent removal: No
        Readonly: No
        SWP: No
        Thin-provisioning: No
        Backing store type: null
        Backing store path: None
        Backing store flags: 
    LUN: 1
        Type: disk
        SCSI ID: IET     00010001
        SCSI SN: beaf11
        Size: 3223 MB, Block size: 512
        Online: Yes
        Removable media: No
        Prevent removal: No
        Readonly: No
        SWP: No
        Thin-provisioning: No
        Backing store type: rdwr
        Backing store path: /dev/vda4
        Backing store flags: 
Account information:
ACL information:
    147.2.208.156
    ALL
    147.2.206.159
147.2.206.159是启动器IP,但启动器找不到。我是ISCSI新手,请有人告诉我如何更正它或我遗漏了什么


非常感谢

让我回答我自己的问题,我在另一个虚拟机中重复这些步骤并成功,因此tgt和LIO似乎不能在同一台机器上运行,这是可以理解的,也许他们都试图访问或修改同一个内核iscsi模块

希望这能帮助别人


有人有什么想法吗?

iSCSI目标监听端口3260。如果您启动TGT和LIO(我不确定这是否可能),那么它们中只有一个能够在端口3260上侦听。