rac 连接freenas iscsi 连接存储报错。May 30 00:16:14 rac1 iscsid: connection1:0 is operational after recovery (1 attempts)
May 30 00:16:16 rac1 kernel: connection1:0: detected conn error (1020)
May 30 00:16:16 rac1 iscsid: Kernel reported iSCSI connection 1:0 error (1020 - ISCSI_ERR_TCP_CONN_CLOSE: TCP connection closed) state (3)
May 30 00:16:19 rac1 iscsid: connection1:0 is operational after recovery (1 attempts)
May 30 00:16:21 rac1 kernel: connection1:0: detected conn error (1020)
May 30 00:16:21 rac1 iscsid: Kernel reported iSCSI connection 1:0 error (1020 - ISCSI_ERR_TCP_CONN_CLOSE: TCP connection closed) state (3)
May 30 00:16:23 rac1 iscsid: connection1:0 is operational after recovery (1 attempts)
May 30 00:16:26 rac1 kernel: connection1:0: detected conn error (1020)
May 30 00:16:26 rac1 iscsid: Kernel reported iSCSI connection 1:0 error (1020 - ISCSI_ERR_TCP_CONN_CLOSE: TCP connection closed) state (3)
May 30 00:16:28 rac1 iscsid: connection1:0 is operational after recovery (1 attempts)
May 30 00:16:31 rac1 kernel: connection1:0: detected conn error (1020)
May 30 00:16:31 rac1 iscsid: Kernel reported iSCSI connection 1:0 error (1020 - ISCSI_ERR_TCP_CONN_CLOSE: TCP connection closed) state (3)
May 30 00:16:33 rac1 iscsid: connection1:0 is operational after recovery (1 attempts)
May 30 00:16:35 rac1 kernel: connection1:0: detected conn error (1020)
May 30 00:16:35 rac1 iscsid: Kernel reported iSCSI connection 1:0 error (1020 - ISCSI_ERR_TCP_CONN_CLOSE: TCP connection closed) state (3)
May 30 00:16:38 rac1 iscsid: connection1:0 is operational after recovery (1 attempts)
May 30 00:16:40 rac1 kernel: connection1:0: detected conn error (1020)
May 30 00:16:40 rac1 iscsid: Kernel reported iSCSI connection 1:0 error (1020 - ISCSI_ERR_TCP_CONN_CLOSE: TCP connection closed) state (3)
May 30 00:16:43 rac1 iscsid: connection1:0 is operational after recovery (1 attempts)
May 30 00:16:45 rac1 kernel: connection1:0: detected conn error (1020)
May 30 00:16:45 rac1 iscsid: Kernel reported iSCSI connection 1:0 error (1020 - ISCSI_ERR_TCP_CONN_CLOSE: TCP connection closed) state (3)
May 30 00:16:48 rac1 iscsid: connection1:0 is operational after recovery (1 attempts)
May 30 00:16:50 rac1 kernel: connection1:0: detected conn error (1020)
May 30 00:16:50 rac1 iscsid: Kernel reported iSCSI connection 1:0 error (1020 - ISCSI_ERR_TCP_CONN_CLOSE: TCP connection closed) state (3)
May 30 00:16:53 rac1 iscsid: connection1:0 is operational after recovery (1 attempts)
May 30 00:16:55 rac1 kernel: connection1:0: detected conn error (1020)
May 30 00:16:55 rac1 iscsid: Kernel reported iSCSI connection 1:0 error (1020 - ISCSI_ERR_TCP_CONN_CLOSE: TCP connection closed) state (3)
May 30 00:16:58 rac1 iscsid: connection1:0 is operational after recovery (1 attempts)
May 30 00:17:00 rac1 kernel: connection1:0: detected conn error (1020)
May 30 00:17:00 rac1 iscsid: Kernel reported iSCSI connection 1:0 error (1020 - ISCSI_ERR_TCP_CONN_CLOSE: TCP connection closed) state (3)
dateMay 30 00:17:02 rac1 iscsid: connection1:0 is operational after recovery (1 attempts)
May 30 00:17:04 rac1 kernel: connection1:0: detected conn error (1020)
May 30 00:17:05 rac1 iscsid: Kernel reported iSCSI connection 1:0 error (1020 - ISCSI_ERR_TCP_CONN_CLOSE: TCP connection closed) state (3)
May 30 00:17:07 rac1 iscsid: connection1:0 is operational after recovery (1 attempts)
原因是克隆的虚机,所以两个节点的cat /etc/iscsi/initiatorname.iscsi这个值相同。
解决办法:
删除yum remove iscsi*然后删除文件
rm -f /etc/iscsi/initiatorname.iscsi后,重新安装yum install iscsi*自动生成新文件即可。