您好,欢迎来到年旅网。
搜索
您的当前位置:首页解决磁盘共享时Could not create NetworkPortal in configFS的问题

解决磁盘共享时Could not create NetworkPortal in configFS的问题

来源:年旅网

我用7.3的虚拟机快照,7.3的镜像在做磁盘共享时,遇到了Could not create NetworkPortal in configFS的问题,下面来解决下:

[root@server ~]# targetcli
targetcli shell version 2.1.fb41
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.

/> ls
o- / ..................................................................... [...]
  o- backstores .......................................................... [...]
  | o- block .............................................. [Storage Objects: 0]
  | o- fileio ............................................. [Storage Objects: 0]
  | o- pscsi .............................................. [Storage Objects: 0]
  | o- ramdisk ............................................ [Storage Objects: 0]
  o- iscsi ........................................................ [Targets: 0]
  o- loopback ..................................................... [Targets: 0]
/> /backstores/block create westos:storage1 /dev/vdb1
Created block storage object westos:storage1 using /dev/vdb1.
/> iscsi/ create iqn.2019-05.com.westos:storage1
Created target iqn.2019-05.com.westos:storage1.
Created TPG 1.
Global pref auto_add_default_portal=true
Created default portal listening on all IPs (0.0.0.0), port 3260.
/> iscsi/iqn.2019-05.com.westos:storage1/tpg1/luns create /backstores/block/westos:storage1 
Created LUN 0.
/> iscsi/iqn.2019-05.com.westos:storage1/tpg1/acls create iqn.2019-05.com.westos:key
Created Node ACL for iqn.2019-05.com.westos:key
Created mapped LUN 0.
/> iscsi/iqn.2019-05.com.westos:storage1/tpg1/portals create 172.25.2.224
Using default IP port 3260
Could not create NetworkPortal in configFS
/> cd /iscsi/iqn.2019-05.com.westos:storage1/tpg1/portals/
/iscsi/iqn.20.../tpg1/portals> ls
o- portals ........................................................ [Portals: 1]
  o- 0.0.0.0:3260 ......................................................... [OK]
/iscsi/iqn.20.../tpg1/portals> delete 0.0.0.0 3260
Deleted network portal 0.0.0.0:3260
/iscsi/iqn.20.../tpg1/portals> cd 

/> iscsi/iqn.2019-05.com.westos:storage1/tpg1/portals create 172.25.2.224
Using default IP port 3260
Created network portal 172.25.2.224:3260.
/> exit
Global pref auto_save_on_exit=true
Last 10 configs saved in /etc/target/backup.
Configuration saved to /etc/target/saveconfig.json

  • 客户端测试:

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- oldu.cn 版权所有 浙ICP备2024123271号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务