Discovering iSCSI targets on your Linux host by using iSNS

You can discover iSCSI target portals by using the internet storage name service (iSNS) method.

Before you use the iSNS discovery, you must do the following tasks:

To discover iSCSI targets by using iSNS, complete the following steps:

  1. Modify the iSNS server settings in the /etc/iscsi/iscsid.conf file by entering the IP address and the port number that is used by your iSNS server:
    isns.address = <iSNS server IP address>
    isns.port = <iSNS server port>
  2. Make the iSNS configuration changes effective by restarting the iSCSI initiator service.
  3. Run the iSNS discovery command to generate a list of all iSCSI target portals that are registered with the iSNS server:
    iscsiadm --mode discovery --type isns