iscsiadmin 挂载报错

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了iscsiadmin 挂载报错相关的知识,希望对你有一定的参考价值。

命令: iscsiadm -m discovery -t sendtargets -p dx-it-iscsi-target06 --login

报错1:

iscsiadm: Could not scan /sys/class/iscsi_transport.

iscsiadm: Could not scan /sys/class/iscsi_transport.
iscsiadm: can not connect to iSCSI daemon (111)!
iscsiadm: Cannot perform discovery. Initiatorname required.
iscsiadm: Discovery process to 10.188.16.155:3260 failed to create a discovery session.

iscsiadm: Could not perform SendTargets discovery.

原因:没有启动iscsi服务:

解决办法:

/etc/init.d/open-iscsi  status

/etc/init.d/open-iscsi  start


命令: iscsiadm -m discovery -t sendtargets -p dx-it-iscsi-target06 --login

报错2:

10.32.209.115:3260,1 iqn.2017-02.com.sankuai:dx-it.target0

10.32.209.115:3260,1 iqn.2017-02.com.sankuai:dx-it.target0

Logging in to [iface: eth3, target: iqn.2017-02.com.sankuai:dx-it.target0, portal: 10.32.209.115,3260]

Logging in to [iface: eth2, target: iqn.2017-02.com.sankuai:dx-it.target0, portal: 10.32.209.115,3260]

iscsiadm: Could not login to [iface: eth3, target: iqn.2017-02.com.sankuai:dx-it.target0, portal: 10.32.209.115,3260]: 

iscsiadm: initiator reported error (4 - encountered connection failure)

iscsiadm: Could not login to [iface: eth2, target: iqn.2017-02.com.sankuai:dx-it.target0, portal: 10.32.209.115,3260]: 

iscsiadm: initiator reported error (4 - encountered connection failure)

解决办法:rm  /etc/iscsi/ifaces/eth*


挂载成功如下:

# iscsiadm -m discovery -t sendtargets -p dx-it-iscsi-target06 --login

10.32.209.115:3260,1 iqn.2017-02.com.sankuai:dx-it.target0

Logging in to [iface: default, target: iqn.2017-02.com.sankuai:dx-it.target0, portal: 10.32.209.115,3260]

Login to [iface: default, target: iqn.2017-02.com.sankuai:dx-it.target0, portal: 10.32.209.115,3260]: successful



以上是关于iscsiadmin 挂载报错的主要内容,如果未能解决你的问题,请参考以下文章

springcloud报错-------关于 hystrix 的异常 FallbackDefinitionException:fallback method wasn't found(代码片段

mount挂载文件报错

错误记录Android Studio 编译报错 ( Could not determine java version from ‘11.0.8‘. | Android Studio 降级 )(代码片段

错误记录Android Studio 编译报错 ( Could not determine java version from ‘11.0.8‘. | Android Studio 降级 )(代码片段

Flutterflutter doctor 报错Android license status unknown. Run `flutter doctor --android-licenses‘(代码片段

解决移动端报错:Unable to preventDefault inside passive event listener due to target being treated as……(代码片段