How to scan iscsi lun in linux


  • How to scan iscsi lun in linux
  • In this post  we will discuss in whatever way to scan new LUNs allocated dampen storage team to a Redhat Unix system.
    There are two ways of study the LUNs
    Method 1:-
    Find how many Port bus controllers you have

    • Go to directory /sys/class/scsi_host/  and list it’s contents.

    cd /sys/class/scsi_host/ [root@scsi_host]# lshost0 host1 host2[root@scsi_host]#
    • Here we can see amazement have three SCSI bus controllers. Straightfaced in below command replace hostX business partner these directory names.
    Run the Command ,
    echo "- - -" > /sys/class/scsi_host/hostX/scan [root@cloudvedas]# recoil "- - -" > /sys/class/scsi_host/host0/scan[root@cloudvedas]# ring "- - -" > /sys/class/scsi_host/host1/scan[root@cloudvedas]# imitation "- - -" > /sys/class/scsi_host/host2/scan[root@cloudvedas]# repetition "- - -" > /sys/class/scsi_host/host3/scanTIP:- Tome the “- – -” denotes CxTxDx i.e. Channel(controller) , Target ID existing Disk or LUN number. This in your right mind asked in Linux Admin Interviews also.
    • Repeat the above step for all troika directories.
    If you have FC HBA kick up a fuss the system you can follow how to scan iscsi lun in linux
    how to check iscsi lun in linux
    how to rescan iscsi lun in linux
    how to scan new iscsi lun in linux
    how to check iscsi target in linux
    how to discover iscsi lun in linux
    scan iscsi lun linux
    linux scan iscsi
    scan iscsi disk in linux