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 ?

  • Do you have iscsiadm? lscpi? What linux distribution? What sort of storage system are you running? – Jesse_b Jan 31 at 18:00
  • linux distribution is redhat – Nullpointer Feb 6 at 13:41

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

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.