Computerglitch

An ongoing adventure

Linux iSCSI Notes

This document contains various notes on setting up and using a iSCSI target from a linux initiator.


Installing the iscsi initiator on RHEL 5:

#yum install iscsi-initiator-utils

Configuring iSCSI after installation:

#vi /etc/iscsi/iscsid.conf

Configure the username and password according to the iSCSI target:

node.session.auth.username = ISCSI_USERNAME
node.session.auth.password = ISCSI_PASSWORD
discovery.sendtargets.auth.username = ISCSI_USERNAME
discovery.sendtargets.auth.password = ISCSI_PASSWORD

Start the iscsi service:

#/etc/init.d/iscsi start

Use iscsiadm to discover and login to iscsi targets:

#iscsiadm -m discovery -t sendtargets -p 192.168.4.9

Restart the iscsi service:

#/etc/init.d/iscsi restart

Obtain the new device name using fdisk or check /var/log/messages:

#fdisk -l
or
#vi /var/log/messages

Comments