Openfiler iscsiadm: No portals found

来源:互联网 发布:ehviewer网络错误2016 编辑:程序博客网 时间:2024/06/07 01:32
[root@centos1 init.d]# iscsiadm -m discovery -t sendtargets -p 192.168.2.11:3260

iscsiadm: No portals found



解决方法:

 

[root@openfiler2 etc]# cat /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: Wed Feb 8 15:47:26 CST 2017


iqn.2006-01.com.openfiler:ractest.ocrvdisk1  192.168.2.*/16
iqn.2006-01.com.openfiler:ractest.ocrvdisk2  192.168.2.*/16
iqn.2006-01.com.openfiler:ractest.ocrvdisk3  192.168.2.*/16
iqn.2006-01.com.openfiler:ractest.dbfile1  192.168.2.*/16
iqn.2006-01.com.openfiler:ractest.fra1  192.168.2.*/16


# End of Openfiler configuration



[root@openfiler2 etc]# cat /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: Wed Feb 8 15:47:26 CST 2017


#iqn.2006-01.com.openfiler:ractest.ocrvdisk1 ALL


#iqn.2006-01.com.openfiler:ractest.ocrvdisk2 ALL


#iqn.2006-01.com.openfiler:ractest.ocrvdisk3 ALL


#iqn.2006-01.com.openfiler:ractest.dbfile1 ALL


#iqn.2006-01.com.openfiler:ractest.fra1 ALL





# End of Openfiler configuration

 

注释掉/etc/initiators.deny文件里的内容即可正常连接。


[root@centos1 192.168.2.11,3260]# iscsiadm -m discovery -t sendtargets -p 192.168.2.11:3260
192.168.2.11:3260,1 iqn.2006-01.com.openfiler:ractest.fra1
192.168.2.11:3260,1 iqn.2006-01.com.openfiler:ractest.dbfile1
192.168.2.11:3260,1 iqn.2006-01.com.openfiler:ractest.ocrvdisk3
192.168.2.11:3260,1 iqn.2006-01.com.openfiler:ractest.ocrvdisk2
192.168.2.11:3260,1 iqn.2006-01.com.openfiler:ractest.ocrvdisk1





0 0
原创粉丝点击