iscsiadm“没有找到门户网站”

问题描述 投票:2回答:1

我在Centos6服务器上安装了一个iscsi目标,并配置了一个可以在一台客户机上找到的目标(网络192.168.95.x中的Ubuntu 1304)。但是,当我添加一个目标并尝试从另一台计算机(同一子网中的Centos5)连接时,它显示“找不到门户”。以下是设置的打印输出:

iscsi目标在192.168.180.88

[root@iscsi01 ~]# tgt-admin --show

Target 1: iqn.2013-08.com.xxx:vm.01<br>
    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
            Backing store type: null
            Backing store path: None
            Backing store flags: 
        LUN: 1
            Type: disk
            SCSI ID: IET     00010001
            SCSI SN: beaf11
            Size: 1989308 MB, Block size: 512
            Online: Yes
            Removable media: No
            Prevent removal: No
            Readonly: No
            Backing store type: rdwr
            Backing store path: /data/iqn.2013-08.com.xxx.vm.img
            Backing store flags: 
    Account information:
        wilson
    ACL information:
        192.168.180.0/24
        192.168.163.0/24
        192.168.95.0/24
Target 2: iqn.2013-08.com.xxx:wy
    System information:
        Driver: iscsi
        State: ready
    I_T nexus information:
    LUN information:
        LUN: 0
            Type: controller
            SCSI ID: IET     00020000
            SCSI SN: beaf20
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Prevent removal: No
            Readonly: No
            Backing store type: null
            Backing store path: None
            Backing store flags: 
        LUN: 1
            Type: disk
            SCSI ID: IET     00020001
            SCSI SN: beaf21
            Size: 107374 MB, Block size: 512
            Online: Yes
            Removable media: No
            Prevent removal: No
            Readonly: No
            Backing store type: rdwr
            Backing store path: /data/iqn.2013-08.com.xxx.wy.img
            Backing store flags: 
    Account information:
        wilson
    ACL information:
        192.168.95.0/24
        192.168.180.0/24

同一子网中的iscsi启动器(192.168.180.x - Centos5)

[root@syslong ~]# iscsiadm -m discovery -t st -p 192.168.180.88
iscsiadm: No portals found

/etc/iscsi/iscsid.conf

    node.startup = automatic
    node.leading_login = Yes
    node.session.auth.authmethod = CHAP
    node.session.auth.username = wilson
    node.session.auth.password = xxxx
    discovery.sendtargets.auth.authmethod = CHAP
    discovery.sendtargets.auth.username = wilson
    discovery.sendtargets.auth.password = xxxx

不同子网中的iscsi启动器(192.168.95.x - Ubuntu 1304)

wilson@guntank:~$ sudo iscsiadm -m discovery -t st -p 192.168.180.88
[sudo] password for wilson: 
192.168.180.88:3260,1 iqn.2013-08.com.xxx:wy

在ubuntu机器中,它只找到了iscsi目标服务器中的一个目标,但在iscsi目标服务器中,两个目标都可以使用tgt-admin命令显示。我配置的不正确吗?

非常感谢!

威尔逊

centos iscsi
1个回答
0
投票

这是一个ACL问题。

在iSCSI-Target中运行以下命令:

tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL

然后运行以下命令:

iscsiadm -m discoverydb -t st --p 192.168.1.5

© www.soinside.com 2019 - 2024. All rights reserved.