首页 > 解决方案 > iscsi 磁盘未显示在 /dev/disk/by-path 中

问题描述

I was able to successfully log into an ISCSI target by command

        command:sudo iscsiadm --mode node --targetname iqn.2010-06.com.XXXX-a215 --portal 10.X.X.X:3260, 1 --login
        output: Logging in to [iface: default, target:iqn.2010-06.com.XXXX-a215, portal: 10.X.X.X,3260] (multiple)
    Login to [iface: default, target:iqn.2010-06.com.XXXX-a215, portal: 10.X.X.X,3260] successful.

但是当我执行 ls -lh /dev/disk/by-path 时,我无法找到与上述添加的目标相对应的设备。

当我做 iscsiadm -m session -P 3

Target: iqn.2010-06.com.XXX-a216 (non-flash)
    Current Portal: X.X.X.X:3260,1
    Persistent Portal: X.X.X.X:3260,1
        **********
        Interface:
        **********
        Iface Name: default
        Iface Transport: tcp
        Iface Initiatorname: iqn.1994-05.com.redhat:6da67798e2
        Iface IPaddress: X.X.X.X
        Iface HWaddress: <empty>
        Iface Netdev: <empty>
        SID: 1
        iSCSI Connection State: Unknown
        iSCSI Session State: LOGGED_IN
        Internal iscsid Session State: Unknown
        *********
        Timeouts:
        *********
        Recovery Timeout: 120
        Target Reset Timeout: 30
        LUN Reset Timeout: 30
        Abort Timeout: 15
        *****
        CHAP:
        *****
        username: <empty>
        password: ********
        username_in: <empty>
        password_in: ********
        ************************
        Negotiated iSCSI params:
        ************************
        HeaderDigest: None
        DataDigest: None
        MaxRecvDataSegmentLength: 262144
        MaxXmitDataSegmentLength: 1048576
        FirstBurstLength: 262144
        MaxBurstLength: 16776192
        ImmediateData: Yes
        InitialR2T: Yes
        MaxOutstandingR2T: 1
        ************************
        Attached SCSI devices:
        ************************
        Host Number: 3  State: running
        scsi3 Channel 00 Id 0 Lun: 0
            Attached scsi disk sdb      State: running
Target: **iqn.2010-06.com.XXX-a215** (non-flash)
    Current Portal: X.X.X.X:3260,1
    Persistent Portal: X.X.X.X:3260,1
        **********
        Interface:
        **********
        Iface Name: default
        Iface Transport: tcp
        Iface Initiatorname: iqn.1994-05.com.redhat:6da67798e2
        Iface IPaddress: 10.15.235.74
        Iface HWaddress: <empty>
        Iface Netdev: <empty>
        SID: 4

a216 能够显示为 sdb,a215 不显示,并且当我执行 iscsiadm -m session -P 3 时有关 a215 的信息非常低。这是什么意思?

标签: unixiscsi

解决方案


推荐阅读