重启iscsi报19 - encountered non-retryable iSCSI login failure

[root@node1 iscsi]# service iscsi restart
Stopping iscsi:                                            [  OK  ]
Starting iscsi: iscsiadm: Could not login to [iface: default, target: iqn.2006-01.com.openfiler:tsn.a5fe1648bc51, portal: 10.3.4.150,3260].
iscsiadm: initiator reported error (19 - encountered non-retryable iSCSI login failure)
iscsiadm: Could not login to [iface: default, target: iqn.2006-01.com.openfiler:tsn.a5fe1648bc51, portal: 10.3.4.162,3260].
iscsiadm: initiator reported error (19 - encountered non-retryable iSCSI login failure)
iscsiadm: Could not log into all portals
                                                           [  OK  ]
                                                           
                                                           
出现这种错误的原因:是原先login存储一些信息保留在系统环境中
iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.a5fe1648bc51 -p 192.168.2.254:3260 -l

查看iscsiadm的命令行发现如下信息:
 man iscsiadm
 .......
 .....
  -I, --interface=[iface]
              The interface argument specifies the iSCSI interface to use for the operation.  iSCSI interfaces (iface) are defined in /var/lib/iscsi/ifaces.  For  hardware
              iSCSI  (qla4xxx) the iface config must have the hardware address (iface.hwaddress = port?. MAC address) and the driver/transport_name (iface.transport_name).
              The iface?. name is then the filename of the iface config. For software iSCSI, the iface config must have either the hardware address  (iface.hwaddress),  or
              the network layer?. interface name (iface.net_ifacename), and it must have the driver/transport_name
 ......
 
iscsi interface的定义存放在/var/lib/iscsi/ifaces 中,于是cd /var/lib/iscsi/ifaces
[root@node1 ifaces]# ll -a
total 8
drwxr-xr-x. 2 root root 4096 May 11  2015 .
drwxr-xr-x. 8 root root 4096 Oct 20 05:30 ..
[root@node1 ifaces]# cd ..
[root@node1 iscsi]# cd nodes/
[root@node1 nodes]# ll
drw-------. 4 root root 4096 Oct 20 04:36 iqn.2006-01.com.openfiler:asm.data
drw-------. 4 root root 4096 Oct 20 04:36 iqn.2006-01.com.openfiler:asm.fra
drw-------. 4 root root 4096 Oct 20 04:36 iqn.2006-01.com.openfiler:asm.ocr
drw-------. 4 root root 4096 Oct 19 23:51 iqn.2006-01.com.openfiler:tsn.a5fe1648bc51
[root@node1 nodes]# rm -rf iqn.2006-01.com.openfiler:tsn.a5fe1648bc51
[root@node1 nodes]# ll
drw-------. 4 root root 4096 Oct 20 04:36 iqn.2006-01.com.openfiler:asm.data
drw-------. 4 root root 4096 Oct 20 04:36 iqn.2006-01.com.openfiler:asm.fra
drw-------. 4 root root 4096 Oct 20 04:36 iqn.2006-01.com.openfiler:asm.ocr
[root@node1 nodes]# service iscsi restart
Stopping iscsi:                                            [  OK  ]
Starting iscsi:                                            [  OK  ]

致些报错信息解决
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值