=====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 –l –p xxx.xxx.xxx.xxx:3260
To check the status of the iSCSI sessions use
#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 "" -p xxx.xxx.xxx.xxx:3260 --op=update -
#iscsiadm -m node -T "“ -p xxx.xxx.xxx.xxx:3260 --op=update -- name node.session.auth.username --value=
#iscsiadm -m node -T "“ -p xxx.xxx.xxx.xxx:3260 --op=update -- name node.session.auth.password --value=
#iscsiadm -m node –T "" -p xxx.xxx.xxx.xxx:3260 -l