unix - 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 的信息非常低。这是什么意思?
解决方案
推荐阅读
- http-status-codes - Mailchimp 和 httpstatus.io 返回 500 错误
- c# - 序列化带有逗号的 JSON 属性名称?
- python - 在 Python 中使用键更改变量
- charts - Xamarin 日期滑块图表控件?
- kotlin - 如何从任何地方(存储库等)获取 Flow 是否重要?
- ios - 为什么 SwiftUI 中的原始视图没有主体?
- python - 如何根据名称变量的条件打印特定输出
- swift - 从图像中检测的阿兹台克代码无法快速运行
- javascript - javascript - 当我创建一个空项目数组时,我不能使用 map
- amazon-web-services - 为什么在暂停执行时无法访问似乎在范围内的对象?