如何在Linux中显示连接的目标?


12

当我做

localhost:~# iscsiadm -m discovery -t st -p 192.168.0.4
192.168.0.4:3260,1 iqn.2004-04.com.qnap:ts-509:iscsi.linux02.ba4731
192.168.0.4:3260,1 iqn.2004-04.com.qnap:ts-509:iscsi.linux01.ba4731
192.168.0.4:3260,1 iqn.2004-04.com.qnap:ts-509:iscsi.linux03.ba4731
localhost:~# 

我看到了可用的目标,但是如何查看CentOS5服务器上实际连接了哪个目标?

编辑:

当然可以这样做,但是像这样的程序不能iscsiadm告诉我吗?

localhost:~# ls /dev/disk/by-path/
ip-192.168.0.4:3260-iscsi-iqn.2004-04.com.qnap:ts-509:iscsi.linux02.ba4731-lun-0@  pci-0000:00:1f.2-scsi-0:0:0:0-part2@
pci-0000:00:1f.1-ide-0:0@                                                          pci-0000:00:1f.2-scsi-0:0:0:0-part3@
pci-0000:00:1f.2-scsi-0:0:0:0@                                                     pci-0000:00:1f.2-scsi-1:0:0:0@
pci-0000:00:1f.2-scsi-0:0:0:0-part1@                                               pci-0000:00:1f.2-scsi-1:0:0:0-part1@

在目标(服务器)端,尝试使用cat / proc / net / iet / session

Answers:


22

使用iscsiadm -m会告诉你,你想知道什么?(或者我认为iscsiadm -m session -P 3可能会提供更多信息)

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.