Method used to configure the iSCSI initiator in Red Hat 4

1

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.

Other related questions:
Method used to configure the iSCSI initiator in Red Hat 5
You can configure the iSCSI initiator in Red Hat 5 as follows: Perform basic iSCSI configurations as follows: 1. Run the /etc/init.d/iscsi start command to start the iSCSI service. 2. Modify the configuration file /etc/iscsi/iscsid.conf. Specifically, set node.startup to automatic to enable automatic logins to the target. 3. Run the iscsiadm -m discovery -t st -p [targetip] command to discover the target. 4. Add ports detected on the storage array to corresponding hosts and map these ports to LUNs. 5. Run the iscsiadm -m node -p [targetip] -l command to register the target. 6. Run the chkconfig iscsi on command to automatically start the iSCSI service upon system startup. 7. Run the fdisk -l command to scan for the LUNs mapped to the host. Note: (1) You can perform an operation opposite to step 5 by running the iscsiadm -m node -p [targetip] -u command to deregister the target from the system. (2) Step 2 and step 6 aim to automatically restart the iSCSI service upon system startup. You can run the fdisk -l to automatically detect LUNs mapped to the host (including command devices). Configure CHAP as follows: 1. Run the following three commands in sequence to add the CHAP authentication to a target: iscsiadm -m node -o update -p [targetip] -n node.session.auth.authmethod -v CHAP iscsiadm -m node -o update -p [targetip] -n node.session.auth.username -v [chap user name] iscsiadm -m node -o update -p [targetip] -n node.session.auth.password -v [Chap auth passwd] 2. Configure the same user name and password for the target on the storage side by referring to the array operation guide. 3. Run the /etc/init.d/iscsi restart command to restart the iSCSI service. 4. If CHAP authentication for multiple targets is required, repeat the preceding steps.

Method used to configure the iSCSI initiator in SLES 9
The basic iSCSI configuration and CHAP authentication configuration in SLES 9 are the same as those in Red Hat 4. Refer to iSCSI initiator configuration in Red Hat 4.

Method used to configure the iSCSI initiator in Windows
You can configure the iSCSI initiator in Windows as follows: Perform basic iSCSI configurations as follows: 1. Check whether the Microsoft iSCSI service has been started. If the iSCSI service has not been started, set the service to automatically start. 2. Open the iSCSI initiator configuration tool. Choose Start > Control Panel and double-click the iSCSI Initiator icon. 3. (Optional) Change the initiator name. On the General tab page, click Change... and modify Initiator node name. The node name must be unique. Note: When the service is running properly, do not modify the node name. Otherwise, services will be interrupted. 4. Add targets. Under Target Portal of the Discovery tab page, click Add. In the Add Target Portal dialog box that is displayed, configure Target IP and the port number. The port number of iSCSI is 3260 by default. 5. On the Targets tab page, click Refresh. You can see all targets. Select all targets in the inactive status and click Logon. Select the first item. 6. On the Computer Management page, choose Storage > Disk management. You can view the LUNs on the disk array. Configure Challenge Handshake Authentication Protocol (CHAP) as follows: 1. On the disk array, configure the CHAP name and password of the initiator. 2. In the Log On to Target dialog box, click Advanced... and configure the CHAP user name and password.

Method used to configure the iSCSI initiator in Solaris 10
Method used to configure the iSCSI initiator in Solaris 10: 1. Check whether iSCSI services have been started. Run svcs -a |grep iscsi to check the status of iSCSI. If the status of iSCSI is online, iSCSI services have been started. Otherwise, run svcadm enable iscsi_initiator to start iSCSI services. 2. Configure the Solaris iSCSI initiator. Run iscsiadm add discovery-address [ip addr:portal no] # iscsiadm add discovery-address xxx.xxx.xxx.xxx:3260 to configure the Solaris iSCSI initiator. 3. Add an initiator corresponding to the host on the array side and map it to the LUN. 4. (Optional) Methods used to search for the iSCSI target: a. If a dynamic discovery device (SendTargets) has been configured, run the following command: # iscsiadm modify discovery --sendtargets enable b. If a dynamic discovery device (iSNS) has been configured, run the following command: # iscsiadm modify discovery --isns enable c. If a static discovery device has been configured, run the following command: # iscsiadm modify discovery --static enable 5. Run devfsadm -i iscsi to create links for iSCSI devices. 6. Run format to check iSCSI disks.

Method used to configure the iSCSI initiator in SLES 10
Method used to configure the iSCSI initiator in SLES 10: Basic iSCSI configuration: 1. Run /etc/init.d/open-iscsi start to start iSCSI services. 2. Modify the configuration file /etc/iscsi/iscsid.conf and set node.startup to automatic to enable automatic logins to the target. 3. Run iscsiadm -m discovery -t st -p [targetip] to add the target. 4. Add ports detected on the storage array to corresponding hosts and map these ports to LUNs. 5. Run iscsiadm -m node -p [targetip] -l to register the target. 6. Run chkconfig -add open-iscsi to enable automatic startup of the server. 7. Run fdisk -l to scan for the LUN mapped to the host. CHAP configuration: 1. Run the following three commands in sequence to add the CHAP authentication for a target: iscsiadm -m node -o update -p [targetip] -n node.session.auth.authmethod -v CHAP iscsiadm -m node -o update -p [targetip] -n node.session.auth.username -v [chap user name] iscsiadm -m node -o update -p [targetip] -n node.session.auth.password -v [Chap auth passwd] 2. Configure the same user name and password for the target on the storage side by referring to the array operation guide. 3. Run iscsiadm -m node -p targetip -l to register the target. After registration, LUNs can be detected. 4. If CHAP authentication for multiple targets is required, repeat the preceding steps.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top