AllTechWiki



A Place for All Technical Stuff Linux Cloud etc

How to discover iscsi targets in Linux VM

Storage team gives target Ip’s to discover in Linux VM

iscsiadm --mode discovery --op update --type sendtargets --portal  10.11.12.13

iscsiadm --mode discovery --op update --type sendtargets --portal  10.11.12.13

iscsiadm --mode discovery --op update --type sendtargets --portal  10.11.12.13

iscsiadm --mode discovery --op update --type sendtargets --portal  10.11.12.13

iscsiadm --mode node -l all

iscsiadm --mode session


If you are not able to see the LUN's by normal rescan-scsi-bus.sh command , try to use rescan-scsi-bus.sh -a command , it will scan all new targets

rescan-scsi-bus.sh -a 


FILES

       /etc/iscsi/iscsid.conf

              The configuration file read by iscsid and iscsiadm on startup.


       /etc/iscsi/initiatorname.iscsi

              The file containing the iSCSI InitiatorName and InitiatorAlias read by iscsid and iscsiadm on startup.


       /var/lib/iscsi/nodes/

              This directory contains the nodes with their targets.


       /var/lib/iscsi/send_targets

              This directory contains the portals.

Post a Comment

Previous Post Next Post

Basic Useful Links