码迷,mamicode.com
首页 > 其他好文 > 详细

一个关于ISCSI故障的例子

时间:2014-09-15 19:52:20      阅读:372      评论:0      收藏:0      [点我收藏+]

标签:iscsi detected conn error (1011)

/var/log/messages的错误描述

Sep 14 04:02:58   kernel:  connection4:0: detected conn error (1011)

Sep 14 04:02:59   iscsid: Kernel reported iSCSI connection 4:0 error (1011) state (3)

Sep 14 04:03:01   kernel:  connection3:0: detected conn error (1011)

Sep 14 04:03:02   iscsid: Kernel reported iSCSI connection 3:0 error (1011) state (3)

Sep 14 04:03:02   kernel:  connection1:0: detected conn error (1011)

Sep 14 04:03:02   kernel:  connection8:0: detected conn error (1011)

Sep 14 04:03:02   kernel:  connection2:0: detected conn error (1011)

Sep 14 04:03:02   kernel:  connection5:0: detected conn error (1011)

Sep 14 04:03:03   iscsid: Kernel reported iSCSI connection 1:0 error (1011) state (3)

Sep 14 04:03:03   iscsid: Kernel reported iSCSI connection 8:0 error (1011) state (3)

Sep 14 04:03:03   iscsid: Kernel reported iSCSI connection 2:0 error (1011) state (3)

Sep 14 04:03:03   iscsid: Kernel reported iSCSI connection 5:0 error (1011) state (3)

Sep 14 04:03:04   iscsid: connection4:0 is operational after recovery (1 attempts)

Sep 14 04:03:08   iscsid: connection3:0 is operational after recovery (1 attempts)

Sep 14 04:03:08   iscsid: connection8:0 is operational after recovery (1 attempts)

Sep 14 04:03:08   iscsid: connection2:0 is operational after recovery (1 attempts)

Sep 14 04:03:08   iscsid: connection1:0 is operational after recovery (1 attempts)

Sep 14 04:03:08   iscsid: connection5:0 is operational after recovery (1 attempts)


解决方法:

用lsscsi命令查看错误的connection对应的disk (/dev/sdX)

[0:0:0:0]    cd/dvd  Optiarc  DVD-ROM DDU820S  MH52  /dev/scd0

[2:0:0:0]    disk    LEFTHAND iSCSIDisk        9500  /dev/sdj

[3:0:0:0]    disk    LEFTHAND iSCSIDisk        9500  /dev/sdk


再去iscsi存储查看每个volume的iscsi session


发现有问题的volume对应的iscsi session有两个或者在两个中间切换,说明有多于一个session尝试登入。


幸运的是,另一个session只是login,没有挂载,不然就有可能破坏这个disk。


找到另外那个session对应的服务器,登出iscsi,问题解决。



一个关于ISCSI故障的例子

标签:iscsi detected conn error (1011)

原文地址:http://victorzhang.blog.51cto.com/9044706/1552810

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!