Method used to configure the iSCSI initiator in Red Hat 4

The method used to configure the iSCSI initiator in Red Hat 4 is as follows:
Perform basic iSCSI configurations as follows:
1. Run the vi /etc/iscsi.conf command to open the iSCSI configuration file.
2. In iscsi.conf file, search for DiscoveryAddress=xx.xx.xx.xx and delete the comment character (#) before the line. Add all addresses of the targets that connect to a host at the end of the line in the format of DiscoveryAddress=xx.xx.xx.xx, such as DiscoveryAddress=10.10.10.10.
3. Leave no indention at the beginning of DiscoveryAddress=xx.xx.xx.xx. Otherwise, when you run the fdisk -l command to scan for LUNs, the thread is suspended. If you restart the iSCSI service, the thread is still suspended.
4. Run the /etc/init.d/iscsi start to start the iSCSI service. Run the fdisk -l command to scan for the LUNs mapped to the host.
5. If you want to set the iSCSI service to be automatically started at boot time, run the chkconfig iscsi on command.
Configure CHAP authentication as follows:
1. Run the vi /etc/iscsi.conf command to open the iSCSI configuration file.
2. Under the corresponding items of the target addresses that require CHAP authentication, configure the user name and password of targets for authentication as follows:
OutgoingUsername=xxx
OutgoingPassword=xxx.
3. The added user name and password must be the same as those added to the corresponding port of the disk array. Otherwise, the iSCSI connection is not set up successfully.
4. Run the /etc/init.d/iscsi restart command to restart the iSCSI service. Run the fdisk -l command and you can see mapped LUNs.

Scroll to top