freenas kernel: connection2:0: detected conn error (1020)

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*自动生成新文件即可。

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
Ubuntu是一种流行的Linux操作系统,而FreeNAS是一个基于FreeBSD的开源网络附加存储(NAS)操作系统。在Ubuntu上安装FreeNAS可以提供一个功能强大的网络存储解决方案。以下是安装FreeNAS的步骤: 1. 首先,确保你已经在Ubuntu上安装了必要的软件包和依赖项。可以使用以下命令更新软件包列表并安装所需的软件包: ``` sudo apt update sudo apt install build-essential git python3 python3-dev python3-pip libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev ``` 2. 接下来,从FreeNAS的GitHub存储库中克隆源代码。使用以下命令克隆存储库: ``` git clone https://github.com/freenas/freenas.git ``` 3. 进入克隆的FreeNAS目录: ``` cd freenas ``` 4. 使用pip安装所需的Python依赖项: ``` sudo pip3 install -r requirements.txt ``` 5. 安装FreeNAS的构建工具: ``` sudo python3 setup.py develop ``` 6. 安装FreeNAS的Web界面依赖项: ``` sudo pip3 install -r gui/requirements.txt ``` 7. 生成FreeNAS的配置文件: ``` cp freenas-config.example freenas-config ``` 8. 运行FreeNAS的Web界面: ``` sudo python3 manage.py runserver ``` 9. 现在,你可以通过在Web浏览器中访问`http://localhost:8000`来访问FreeNAS的Web界面。 请注意,这只是一个基本的安装过程,具体的步骤可能会因为不同的Ubuntu版本和FreeNAS版本而有所变化。建议在安装之前查阅FreeNAS的官方文档以获取最新的安装指南和详细说明。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值