安装Centos 7盒的iscsi-initiator-utils后。
Dependency Installed:
iscsi-initiator-utils-iscsiuio.x86_64 0:6.2.0.873-21.el7
我使用发现模式连接到共享框。
[root@cluster01 ~]# iscsiadm --mode discovery --type sendtargets --portal 172.16.0.134
172.16.0.134:3260,-1 iqn.2003-01.org.linux-iscsi.localhost.x8664:sn.404bfd24eedb
172.16.0.134:3260,1 iqn.2003-01.org.linux-iscsi.share.x8664:sn.ca5f207fa878
然后我打开iscsi服务:
[root@cluster01 ~]# service iscsi start
Redirecting to /bin/systemctl start iscsi.service
Job for iscsi.service failed. See 'systemctl status iscsi.service' and 'journalctl -xn' for details.
当我检查时
systemctl status iscsi.service
它显示:
Loaded: loaded (/usr/lib/systemd/system/iscsi.service; enabled)
Active: failed (Result: exit-code) since Fri 2014-12-26 22:25:07 EST; 4min 10s ago
Docs: man:iscsid(8)
man:iscsiadm(8)
Process: 11832 ExecStart=/sbin/iscsiadm -m node --loginall=automatic (code=exited, status=8)
Process: 11828 ExecStart=/usr/libexec/iscsi-mark-root-nodes (code=exited, status=0/SUCCESS)
Main PID: 11832 (code=exited, status=8)
Dec 26 22:25:07 cluster01.itech.com iscsiadm[11832]: iscsiadm: Could not login to [iface: default, target: iqn.2003-01.org.linux-iscsi.localhost.x8664:sn.404bfd24eedb, portal: 1....134,3260].
Dec 26 22:25:07 cluster01.itech.com iscsiadm[11832]: iscsiadm: initiator reported error (8 - connection timed out)
Dec 26 22:25:07 cluster01.itech.com iscsiadm[11832]: iscsiadm: Could not login to [iface: default, target: iqn.2003-01.org.linux-iscsi.share.x8664:sn.ca5f207fa878, portal: 172.16.0.134,3260].
Dec 26 22:25:07 cluster01.itech.com iscsiadm[11832]: iscsiadm: initiator reported error (24 - iSCSI login failed due to authorization failure)
Dec 26 22:25:07 cluster01.itech.com iscsiadm[11832]: iscsiadm: Could not log into all portals
Dec 26 22:25:07 cluster01.itech.com iscsiadm[11832]: Logging in to [iface: default, target: iqn.2003-01.org.linux-iscsi.localhost.x8664:sn.404bfd24eedb, portal: 172.16.0.134,3260] (multiple)
Dec 26 22:25:07 cluster01.itech.com iscsiadm[11832]: Logging in to [iface: default, target: iqn.2003-01.org.linux-iscsi.share.x8664:sn.ca5f207fa878, portal: 172.16.0.134,3260] (multiple)
Dec 26 22:25:07 cluster01.itech.com systemd[1]: iscsi.service: main process exited, code=exited, status=8/n/a
Dec 26 22:25:07 cluster01.itech.com systemd[1]: Failed to start Login and scanning of iSCSI devices.
Dec 26 22:25:07 cluster01.itech.com systemd[1]: Unit iscsi.service entered failed state.
提示:有些行是椭圆形的,使用-l来完整显示。
怎么了?