Open-iSCSI

Links

 * RHEL 5 iSCSI HOWTO (pdf)
 * RedHat 5.x Software iSCSI initiator configuration and running guide (Dell)
 * Open-iSCSI README (documentation)
 * CentOS / Red Hat Linux: Install and manage iSCSI Volume
 * iSCSI setup or RH / CentOS 5
 * COMMANDS
 * Show iscsi interfaces : iscsiadm -m iface
 * Scan for targets : iscsiadm -m discovery -t sendtargets -p 
 * (then do) service iscsi restart

REDHAT DOCS

 * NOTE : for QLOGIC SANsurfer, you'll need to do "yum install xorg-x11-deprecated-libs" (it'll show as "libXp")
 * (RH 5) Online Storage Reconfiguration Guide
 * iSCSI Discovery Configuration NOTE: Node records are in /var/lib/iscsi/nodes
 * Configuring iSCSI Offload and Interface Binding
 * Scanning iSCSI Interconnects
 * Logging In to an iSCSI Target
 * iSCSI Settings With dm-multipath


 * (RH 6) Storage Administration Guide
 * Online Storage Management
 * Scanning iSCSI Interconnects

NOTE: Configure the iSCSI cards like any other network card first...

1. CONFIGURE iSCSI
node.session.auth.username =  node.session.auth.password =  discovery.sendtargets.auth.username =  discovery.sendtargets.auth.password = 
 * Open /etc/iscsi/iscsid.conf with vi text editor and setup CHAP username and password if used:
 * Where :
 * node.session.* is used to set a CHAP username and password for initiator authentication by the target(s).
 * discovery.sendtargets.* is used to set a discovery session CHAP username and password for the initiator authentication by the target(s)


 * You may also need to tweak and set other options. Refer to man page for more information. Now start the iscsi service:
 * /etc/init.d/iscsi start
 * For REDHAT:
 * chkconfig iscsid on ; service iscsid start
 * chkconfig iscsi on ; service iscsi start

2. CREATE ISCSI INTERFACES

 * Create an iscsi interface for each physical interface. Assuming there's two, you'd do
 * iscsiadm -m iface -I iface0 -o new
 * iscsiadm -m iface -I iface1 -o new


 * To show all the iSCSI interfaces just do iscsiadm -m iface (or you can do -I to look at a particular one)
 * After this is done, bind the iSCSI interfaces to the physical ones :
 * iscsiadm -m iface -o update -I iface0 -n iface.net_ifacename -v eth2
 * iscsiadm -m iface -o update -I iface1 -n iface.net_ifacename -v eth3

3. TARGETS

 * Once the iscsid service is running and the initiators are configured, you can discover available targets.
 * iscsiadm -m discovery -t st -p 

If you have issues you can logoff a target with: iscsiadm -m node -u ''' ** NOTE ** the discoveries will be cached. If you need to delete them ''' (see here for syntax)
 * Next you can log into the target: iscsiadm -m node -l
 * iscsiadm -m discoverydb -t st -p  --op=delete