iscsiadm -m session -P 0
or
iscsiadm -m session
These commands print the list of running sessions with the format:
driver [sid] ip:port,target_portal_group_tag targetname
For example:
iscsiadm -m session
tcp [2] 10.15.84.19:3260,2 iqn.1992-08.com.netapp:sn.33615311
tcp [3] 10.15.85.19:3260,3 iqn.1992-08.com.netapp:sn.33615311
For more information about the iSCSI API, refer to
/usr/share/doc/iscsi-initiator-utils-version/README
4. Persistent Naming
The
directory contains symlinks to different symbolic names that point back to any
/dev/disk/
attached raw device. These symbolic names are useful in determining what names for each
device are persistent regardless of which ports or protocols are used.
The symlinks used by these persistent names are divided by type in the following
subdirectories:
by-id/
Names devices by SCSI VPD page 0x80 or 0x83 data
by-uuid/
Names devices based on file system Universally Unique Identifier (UUID)
by-label/
Names devices based on file system label
by-path/
Names devices by
info and Host:BusTarget:LUN info.
For iSCSI devices,
names are not reliable if you have two multiple paths to the same portal.
by-path
path. For fibre channel this may name the device using the PCI
sysfs
names use the target name and portal information. Note that
by-path/
Persistent Naming
.
/dev/disk/
7
Need help?
Do you have a question about the ENTERPRISE LINUX - ONLINE STORAGE RECONFIGURATION GUIDE BETA and is the answer not in the manual?
Questions and answers