iscsiadm: No portals found

来源:互联网 发布:mysql批量替换字符串 编辑:程序博客网 时间:2024/05/22 00:41

   在探测iscsi的时候出现如下错误:

[root@Rac-two ~]# iscsiadm -m discovery -t sendtargets -p 192.168.2.11:3260
[  OK  ] iscsid: [  OK  ]
iscsiadm: No portals found
[root@Rac-two ~]#

解决办法:

[root@openfiler1 ~]# more /etc/initiators.allow

# PLEASE DO NOT MODIFY THIS CONFIGURATION FILE!
#       This configuration file was autogenerated
#       by Openfiler. Any manual changes will be overwritten
#       Generated at: Sun Feb 9 15:51:02 CST 2014

iqn.2006-01.com.openfiler:tsn.0448d623a7b0  192.168.2.112/24, 192.168.2.111/24

# End of Openfiler configuration

[root@openfiler1 ~]# more /etc/initiators.deny

# PLEASE DO NOT MODIFY THIS CONFIGURATION FILE!
#       This configuration file was autogenerated
#       by Openfiler. Any manual changes will be overwritten
#       Generated at: Sun Feb 9 15:51:02 CST 2014

iqn.2006-01.com.openfiler:tsn.0448d623a7b0 ALL


# End of Openfiler configuration

[root@openfiler1 ~]# vi /etc/initiators.deny


# PLEASE DO NOT MODIFY THIS CONFIGURATION FILE!
#       This configuration file was autogenerated
#       by Openfiler. Any manual changes will be overwritten
#       Generated at: Sun Feb 9 15:51:02 CST 2014

#iqn.2006-01.com.openfiler:tsn.0448d623a7b0 ALL


# End of Openfiler configuration

 

0 0