User Tools

Site Tools


linux:linux-san:iscsi:iscsi:rhel5

iSCSI in RHEL5 and Newer

FIXME Need to test this

In RHEL 4 there was an /etc/iscsi.conf no longer exists in RHEL 5

Main difference is that you now have the iscsiadm utility to do a lot fo the work for you.

Configuration

Process to setup iSCSI in RHEL 5 and newer has changed a bit.

Here are the main steps

# yum install iscsi-initiator-utils  # installing the iscsi initiator utils
# service iscsid start        # This starts the iscsi service
# chkconfig iscsid on         # this configures iscsi service to start automatically

At this point you can configure the luns to be available for your Linux host.

Once that is done you can use the following command to obtain the list of available targets to the host with:

#iscsiadm –m discovery –t st –p xxx.xxx.xxx.xxx:3260
# put the IP address of the host providing targets here.

To view the target information use

# iscsiadm -m node -p ipaddress

Finally log into all the targets with

#iscsiadm –m node –l

If you only want to log into some of the targets you can use

#iscsiadm –m node –T <Complete Target Name> –l –p xxx.xxx.xxx.xxx:3260

To check the status of the iSCSI sessions use
<file>
#iscsiadm -m session –P3 | less

To enable CHAP for a particular target use the iscsiadm to update the settings for that target.

#iscsiadm -m node -T "<Complete Target Name>" -p xxx.xxx.xxx.xxx:3260 --op=update -
#iscsiadm -m node -T "<Complete Target Name>“ -p xxx.xxx.xxx.xxx:3260 --op=update -- name node.session.auth.username --value=<CHAP user>
#iscsiadm -m node -T "<Complete Target Name>“ -p xxx.xxx.xxx.xxx:3260 --op=update -- name node.session.auth.password --value=<password>
#iscsiadm -m node –T "<Target Name>" -p xxx.xxx.xxx.xxx:3260 -l
linux/linux-san/iscsi/iscsi/rhel5.txt · Last modified: by 127.0.0.1