Categories
Linux

How to see what iSCSI targets are connected to a CentOS Host

I was working on a server after there was an outage on the storage system which was a iSCSI QNAP NAS.

I did a little Google searching and found this command which worked wonderfully

iscsiadm -m session

This will give you a list of all of the devices connected via iSCSI, including the IP Address of the device you are connecting to.

Hopefully, by documenting this I will be able to remember it when I need it in the future. 
If you found this helpful, please share it with your friends, and if you are interested in some of the hardware mentioned in this post, please check the affiliate links below. 
QNAP 8 bay NAS
QNAP 4 bay NAS
Synology 2 Bay NAS

Leave a Reply