HP 3PAR Ubuntu Operating System Implementation Guide

3205
# createhost -iscsi
# showhost ubuntuhost
Id Name Persona ----------WWN/iSCSI_Name----------- Port
24 ubuntuhost Generic iqn.1996-04.de.suse:01:5198e46d85d5 ---
> iscsiadm -m discovery
> iscsiadm -m node -l
# showiscsisession
N:S:P --IPAddr--- TPGT TSIH Conns ------------iSCSI_Name-------------
-------StartTime-------
0:4:2 10.101.1.24 42 15 1 iqn.1996-04.de.suse:01:5198e46d85d5 2013-09-10
14:54:32 PDT
1:4:2 10.101.1.24 142 15 1 iqn.1996-04.de.suse:01:5198e46d85d5 2013-09-10
14:54:32 PDT
2:4:2 10.101.2.24 242 15 1 iqn.1996-04.de.suse:01:5198e46d85d5 2013-09-10
14:54:32 PDT
3:4:2 10.101.2.24 342 15 1 iqn.1996-04.de.suse:01:5198e46d85d5 2013-09-10
14:54:33 PDT
# showhost -d ubuntuhost
Id Name Persona ----------WWN/iSCSI_Name-----------
Port IP_addr
24 ubuntuhost Generic iqn.1996-04.de.suse:01:5198e46d85d5 3:4:2 10.101.2.24
24 ubuntuhost Generic iqn.1996-04.de.suse:01:5198e46d85d5 1:4:2 10.101.1.24
24 ubuntuhost Generic iqn.1996-04.de.suse:01:5198e46d85d5 0:4:2 10.101.1.24
24 ubuntuhost Generic iqn.1996-04.de.suse:01:5198e46d85d5 2:4:2 10.101.2.24
Connecting a Host Server with iSCSI
Setting Up the Switch, iSCSI Initiator, and iSCSI target ports
Connect the Ubuntu host iSCSI initiator port(s) and the HP 3PAR StoreServ Storage iSCSI target
ports to the switch(es).
If you are using VLANs, make sure that the switch ports which connect to the HP 3PAR StoreServ
Storage iSCSI target ports and iSCSI initiator ports reside in the same VLANs and/or that you can
route the iSCSI traffic between the iSCSI initiator ports and the HP 3PAR StoreServ Storage iSCSI
target ports. Once the iSCSI initiator and HP 3PAR StoreServ Storage iSCSI target ports are
configured and connected to the switch, you can use the ping command on the iSCSI initiator
host to make sure it sees the HP 3PAR StoreServ Storage iSCSI target ports.
NOTE: Setting up the switch for VLAN and routing configuration is beyond the scope of this
document. Consult your switch manufacturer's guide for instructions about setting up VLANs and
routing.
The procedures in this chapter assume that you have completed the following tasks:
Setup and configuration of the host Network Interface Card (NIC) or converged network
adapter (CNA) as Initiator port that will be used by the iSCSI Initiator software to connect to
the HP 3PAR StoreServ Storage iSCSI target ports.
Installation of the iSCSI initiator software package.
Configuring Ubuntu for iSCSI
This section discusses the necessary tasks for setting up iSCSI on Ubuntu.
Installing iSCSI on Ubuntu
Install the open-iscsi software package if it has not been installed. The software package can be
installed using the aptitude tool or apt-get open-iscsi.
10 Configuring the HP 3PAR StoreServ Storage for iSCSI