When you are using Red Hat Enterprise Linux 4 series, you can set up target discovery by editing the /etc/iscsi.conf file and adding the IP addresses of the storage systems you want to use as targets.
- Open the /etc/iscsi.conf file with a text editor.
- Configure the storage system as a target by adding the following line for any one iSCSI-enabled interface on each storage system that you used for iSCSI LUNs: DiscoveryAddress=storage_system_IPaddress
storage_system_IPaddress is the IP address of an Ethernet interface on the storage system. You should specify an interface that is used for iSCSI communication.
The following lines set up the storage systems with the IP addresses 192.168.10.100 and 192.168.10.20 as targets: