Here is an easy way to list details about an ISCSI share or LUN. You have all the required details about the share below. You could also map this information in an iscsi client system to figure out the device map or device file as shown below.
[terminal]
[root@localhost glusterblock]# iscsiadm -m session -P 3
iSCSI Transport Class version 2.0-870
version 6.2.0.873-33
Target: iqn.2016-12.org.gluster-block:5b5b9581-bc66-4d51-8b4e-2befcd30fee7 (non-flash)
Current Portal: 10.67.116.64:3260,1
Persistent Portal: 10.67.116.64:3260,1
**********
Interface:
**********
Iface Name: default
Iface Transport: tcp
Iface Initiatorname: iqn.1994-05.com.redhat:8efc1ab116fc
Iface IPaddress: 10.67.116.64
Iface HWaddress:
Iface Netdev:
SID: 41
iSCSI Connection State: LOGGED IN
iSCSI Session State: LOGGED_IN
Internal iscsid Session State: NO CHANGE
*********
Timeouts:
*********
Recovery Timeout: 120
Target Reset Timeout: 30
LUN Reset Timeout: 30
Abort Timeout: 15
*****
CHAP:
*****
username: 5b5b9581-bc66-4d51-8b4e-2befcd30fee7
password: ********
username_in:
password_in: ********
************************
Negotiated iSCSI params:
************************
HeaderDigest: None
DataDigest: None
MaxRecvDataSegmentLength: 262144
MaxXmitDataSegmentLength: 262144
FirstBurstLength: 65536
MaxBurstLength: 262144
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
[root@localhost glusterblock]# ll /dev/sdb
brw-rw—- 1 root disk 8, 16 May 20 14:24 /dev/sdb
[root@localhost glusterblock]# ll /dev/disk/by-path/ip-10.67.116.64:3260-iscsi-iqn.2016-12.org.gluster-block:5b5b9581-bc66-4d51-8b4e-2befcd30fee7-lun-0
lrwxrwxrwx 1 root root 9 May 20 14:24 /dev/disk/by-path/ip-10.67.116.64:3260-iscsi-iqn.2016-12.org.gluster-block:5b5b9581-bc66-4d51-8b4e-2befcd30fee7-lun-0 -> ../../sdb
[root@localhost glusterblock]# iscsiadm -m session
tcp: [41] 10.67.116.64:3260,1 iqn.2016-12.org.gluster-block:5b5b9581-bc66-4d51-8b4e-2befcd30fee7 (non-flash)
[root@localhost glusterblock]#
[/terminal]
Copyright secured by Digiprove © 2020 Humble Chirammal