HP 3PAR RedHat and Oracle Linux Implementation Guide

2. You can check the state of the open-iSCSI service run level information with the chkconfig
command. Run level 5 should be on.
# chkconfig --list | grep iscsi
iscsi 0:off 1:off 2:off 3:off 4:off 5:on 6:off
# chkconfig --list | grep iscsid
iscsid 0:off 1:off 2:off 3:off 4:off 5:on 6:off
To turn on iSCSI, use the following commands:
# chkconfig iscsi on
# chkconfig iscsid on
To verify iSCSI status:
# chkconfig --list iscsi
iscsi 0:off 1:off 2:off 3:on 4:on 5:on 6:off
# chkconfig --list iscsid
iscsid 0:off 1:off 2:off 3:on 4:on 5:on 6:off
3. Verify that the iscsi module is loaded.
# lsmod | grep iscsi
iscsi_tcp 56897 2
libiscsi 59329 2 ib_iser,iscsi_tcp
scsi_transport_iscsi 63569 4 ib_iser,iscsi_tcp,libiscsi
scsi_mod 184057 10
sg,ib_iser,iscsi_tcp,libiscsi,scsi_transport_iscsi,qla2xxx,lpfc,scsi_transport
_fc,cciss,sd_mod
Creating the Software iSCSI Connection in RHEL 6 or RHEL 5 Using the iscsiadm
Command
NOTE: To set up a hardware iSCSI connection, see “Setting Up Hardware iSCSI for RHEL 6 or
RHEL 5” (page 60).
After connecting the host to the HP 3PAR StoreServ Storage iSCSI target port, use the iscsiadm
command to create the iSCSI connection, complete following steps:
1. Discover the target node using the iscsiadm command in discovery mode:
iscsiadm -m discovery -t sendtargets -p <target ip address>:<iscsi port>.
For example:
# iscsiadm -m discovery -t sendtargets -p 10.100.0.101:3260
10.100.0.101:3260,31 iqn.2000-05.com.3pardata:20310002ac000079
Configuring RHEL 6 or RHEL 5 for Software and Hardware iSCSI 79