
White Paper
Installation
All the necessary rpm packages can be found in the RHEL5 DVD, install them as
follows:
# rpm –ivh iscsi-initiator-utils-6.2.0.742-0.5.el5
# rpm –ivh device-mapper-1.02.13-1.el5 // Usually be included
// in default setup
// of RHEL5
# rpm –ivh device-mapper-multipath-0.4.7-8.el5
Configuration
Part 1: Usage of iSCSI initiator
1. The iSCSI initiator name can be specified in the configuration file
/etc/iscsi/initiatorname.iscsi.
# vi /etc/iscsi/initiatorname.iscsi
InitiatorName = Your_initiator_name
2. Edit the configuration file of iSCSI initiator in /etc/iscsi/iscsid.conf, the iscsi
session timeout value has to be changed to a proper value. The default value is
120 seconds, but it is too long to keep the I/O wait before the path is judged as
fail and it may cause the I/O failure. Please set a shorter and proper timeout
value in this configuration file.
# vi /etc/iscsi/iscsid.conf
node.session.timeo.replacement_timeout = 30 // Please set a proper
// timeout value
3. In /etc/iscsi/iscsid.conf, it also provides others settings, such as:
node.startup = Automatic
// Set auto-login when
// discover target
isns.address = 192.168.x.x // Set iSNS server IP
isns.port = 3205 // The port no. used by
// iSNS
node.session.auth.authmethod = CHAP // Enable CHAP auth.
node.session.auth.username = username // Set CHAP username
node.session.auth.password = password // Set CHAP password
4. Please restart the iSCSI service to make these changes work.
# service iscsi restart
5. The rpm package iscsi-initiator-utils provides a command line tool called
iscsiadm. It can manage the connections to iSCSI target. The iscsiadm tool
has three operational modes – discovery, node, and session. The following will
introduce these modes.
Operational mode – discovery is used to discover the target, the usage is
- 3 -
Kommentare zu diesen Handbüchern