gpt4 book ai didi

centos - iscsiadm "no portals found"

转载 作者:太空宇宙 更新时间:2023-11-03 17:17:34 25 4
gpt4 key购买 nike

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

192.168.180.88 中的 iSCSI 目标

[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 命令显示两个目标。是不是我配置有误?

非常感谢!

威尔逊

最佳答案

当我遇到那个问题时,这个命令对我很有用。我希望它适用于遇到此问题的任何人。 (请参阅 tgtadm 的手册页)

 tgtadm --lld iscsi --mode target --op bind --tid 1 --initiator-address ALL

关于centos - iscsiadm "no portals found",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18456410/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com