iscsi设置服务器ip地址失败提示:

错误如下:

 

/> iscsi/iqn.2021-07.com.qq.www:chengdu/tpg1/portals create 192.168.4.11
Using default IP port 3260
Could not create NetworkPortal in configFS

解决办法:

 1.首先进入端口目录

/> cd /iscsi/iqn.2021-07.com.qq.www:chengdu/tpg1/portals/
/iscsi/iqn.20.../tpg1/portals> ls
o- portals .......................................................................... [Portals: 1]
o- 0.0.0.0:3260 ........................................................................... [OK]

发现已经存在ip和端口了。

手动删除:

/iscsi/iqn.20.../tpg1/portals> delete 0.0.0.0 3260
Deleted network portal 0.0.0.0:3260

删除后再次添加ip即可

/iscsi/iqn.20.../tpg1/portals> create 192.168.4.11
Using default IP port 3260
Created network portal 192.168.4.11:3260.
/iscsi/iqn.20.../tpg1/portals> ls
o- portals .......................................................................... [Portals: 1]
o- 192.168.4.11:3260 ...................................................................... [OK]

posted @ 2021-07-09 11:29  落樰兂痕  阅读(455)  评论(0编辑  收藏  举报