How do i check that, which type of storage are connected with my linux(Redhat) system. I want to find that either ISCSI or FC storage connect ?
Asked
Active
Viewed 3,377 times
1
-
Do you have `iscsiadm`? `lscpi`? What linux distribution? What sort of storage system are you running? – jesse_b Jan 31 '19 at 18:00
-
linux distribution is redhat – Nullpointer Feb 06 '19 at 13:41
2 Answers
2
Run lsscsi -t. For FC devices, the 3rd column will say fc:<port name>,<port id>. For iSCSI devices, it should display the iSCSI target name (e.g. iqn.2001-04.com.example:sda.sdb.sdc), although this could vary depending on whether you're using a hardware or software implementation of iSCSI.
For example, this is a FibreChannel LUN:
[0:0:0:0] disk fc:0x500507680c258479,0x0b0801 /dev/sdb
And this would be an iSCSI LUN:
[2:0:0:0] disk iqn.2001-04.com.example:sda.sdb.sdc,t,0x1 /dev/sda
telcoM
- 87,318
- 3
- 112
- 232
1
for FC try
systool -c fc_host -v
which give a report for all FC card, and a more details for connected one.
You are seen by SAN with the wwid given by port_name
if no FC present (*)
Error opening class fc_host
(*) note that not present and unconnected are different thing.
Archemar
- 31,183
- 18
- 69
- 104