HP 3PAR Ubuntu Operating System Implementation Guide

2. Check state of the iSCSI service.
# /etc/init.d/open-iscsi status
* iscsid is running
* Current active iSCSI sessions:
iscsiadm: No active sessions.
3. Verify that the iSCSI module is loaded.
# lsmod | grep iscsi
iscsi_tcp 18587 2
libiscsi_tcp 25163 1 iscsi_tcp
libiscsi 57546 3 ib_iser,iscsi_tcp,libiscsi_tcp
scsi_transport_iscsi 53735 4 ib_iser,iscsi_tcp,libiscsi
Creating the iSCSI Connection in Ubuntu Using the iscsiadm Command
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
After running this command, a database file will be created for the new node in the /etc/
iscsi/nodes/ iqn.2000-05.com.3pardata:20110002ac0001a6/ directory that
contains the iSCSI configuration parameters for that node.
2. To view the contents of the database file, issue the iscsiadm --mode node command.
For example:
# iscsiadm --mode node
10.102.2.2:3260,31 iqn.2000-05.com.3pardata:20310002ac0000b1
10.103.3.3:3260,131 iqn.2000-05.com.3pardata:21310002ac0000b1
3. Login to iscsiadm:
# iscsiadm --mode node login
Connecting a Host Server with iSCSI 15