Tips:一些记录,一些笔记

2024/08/28
WEDNESDAY
When all else is lost the future still remains.
就是失去了一切别的,也还有未来。

01
错误描述
在Linux上通过「iscsiadm」访问「iSCSI target」服务端,也就是访问「Openfiler」的时候,遇到了如题所示的报错。
具体如下所示:
[root@node1 network-scripts]# iscsiadm -m discovery -t sendtargets -p 192.168.2.21iscsiadm: No portals found[root@node1 network-scripts]#
出现这个错误的时候,Linux后端的系统日志(/var/log/messages)也出现了错误信息:
Aug 28 11:31:07 node1 iscsid: iscsid: conn 0 login rejected: initiator error - target not found (02/03)Aug 28 11:31:07 node1 iscsid: iscsid: Kernel reported iSCSI connection 1:0 error (1020 - ISCSI_ERR_TCP_CONN_CLOSE: TCP connection closed) state (1)Aug 28 11:31:07 node1 kernel: connection1:0: detected conn error (1020)
02
解决方法
修改服务端Openfiler的配置「/etc/initiators.deny」:
[root@openfiler ~]# 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: Sun Aug 25 9:07:51 CST 2024#asm_data01 ALL#asm_ocr01 ALL#asm_ocr02 ALL#asm_ocr03 ALL# End of Openfiler configuration[root@openfiler ~]#
如上所示,将其中的内容全部注释。
然后,在客户端,再试试,就没问题了:
[root@node1 network-scripts]# iscsiadm -m discovery -t sendtargets -p 192.168.2.21192.168.2.21:3260,1 asm_ocr03192.168.2.21:3260,1 asm_ocr02192.168.2.21:3260,1 asm_ocr01192.168.2.21:3260,1 asm_data01[root@node1 network-scripts]#
END
温馨提示
如果你喜欢本文,请分享到朋友圈,想要获得更多信息,请关注我。
文章转载自Nephilim,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




