To view active sessions to the target, use the following command:
iscsicli SessionList
To support storage array controller failover, the host server must be connected to at least one iSCSI port on each controller. Repeat step 3 for each iSCSI port on the storage array that you want to establish as a failover target. (The Target_Portal_Address will be different for each port you connect to).
PersistentLoginTarget does not initiate a login to the target until after the system is rebooted. To establish immediate login to the target, substitute LoginTarget for PersistentLoginTarget.
NOTE: Refer to the Microsoft iSCSI Software Initiator 2.x User’s Guide for more information about the commands used in the previous steps. For more information about Windows Server 2008 Server Core, refer to the Microsoft Developers Network (MSDN). Both resources are available at www.microsoft.com.
If you are using a Linux Server
If you configured CHAP authentication in the previous steps, you must restart iSCSI from the Linux command line as shown below. If you did not configure CHAP authentication, you do not need to restart iSCSI.
/etc/init.d/iscsi restart
Verify that the host server is able to connect to the storage array by running the iscsi
Sample output from the command should look similar to this:
*******************************************************************************
SFNet iSCSI Driver
*******************************************************************************
TARGET NAME | : |
TARGET ALIAS | : |
HOST ID | : 2 |
BUS ID | : 0 |
TARGET ID | : 0 |
TARGET ADDRESS | : 192.168.0.110:3260,1 |
SESSION STATUS | : ESTABLISHED AT Wed May 9 18:20:27 CDT 2007 |
SESSION ID | : ISID 00023d000001 TSIH 5 |
******************************************************************************* | |
TARGET NAME | : |
TARGET ALIAS | : |
HOST ID | : 3 |
BUS ID | : 0 |
TARGET ID | : 0 |
TARGET ADDRESS | : 192.168.0.111:3260,1 |
56