HP 3PAR Ubuntu Operating System Implementation Guide

4. Verify the changed settings by issuing showport -iscsi.
# showport -iscsi
N:S:P State IPAddr Netmask Gateway TPGT MTU Rate DHCP iSNS_Prim iSNS_Sec iSNS_Port
0:3:1 ready 10.100.0.101 255.0.0.0 0.0.0.0 31 1500 1Gbps 0 0.0.0.0 0.0.0.0 3205
0:3:2 loss_sync 0.0.0.0 0.0.0.0 0.0.0.0 32 1500 n/a 0 0.0.0.0 0.0.0.0 3205
1:3:1 ready 10.101.0.201 255.0.0.0 0.0.0.0 131 1500 1Gbps 0 0.0.0.0 0.0.0.0 3205
1:3:2 loss_sync 0.0.0.0 0.0.0.0 0.0.0.0 132 1500 n/a 0 0.0.0.0 0.0.0.0 3205
------------------------------------------------------------------------------------------------
4
5. Once the host has been configured for iSCSI and is connected to the network, you can issue
the controliscsiport ping <ipaddr> <node:slot:port> command to verify that
the switch ports where the HP 3PAR StoreServ Storage iSCSI target ports and iSCSI Initiator
host connect are visible to each other.
# controliscsiport ping 10.10.0.11 0:3:1
ping succeeded
NOTE: When the host initiator port and the HP 3PAR OS target port are in different IP subnets,
the gateway address for the HP 3PAR OS port should be configured in order to avoid unexpected
behavior.
Creating the Software iSCSI Host Definition
This section describes how to create a software iSCSI host definition.
NOTE: If multiple initiator ports are used, add the following to /etc/sysctl.conf:
net.ipv4.conf.all.arp_filter = 1
NOTE: To be able to establish an iSCSI Initiator connection/session with the iSCSI target port
from the host, you must create a host definition entry, create the iSCSI host definition, and configure
the HP 3PAR StoreServ Storage iSCSI target port(s).
For details, see “Creating the iSCSI Connection in Ubuntu Using the iscsiadm Command” (page 15).
1. Create an iSCSI host definition entry by using the createhost -iscsi [options]
<hostname> [<iscsi_name>...] command. Obtain initiator name from /etc/iscsi/
initiatorname.iscsi.
Required
For iSCSI, Ubuntu requires the generic-ALUA host persona, which is set by using the
createhost command with the -persona 2 option.
Example with the -persona option:
# createhost -iscsi -persona 2 ubuntuhost iqn.1993-08.org.debian:01:a31abdebc38
2. Verify that the host entry has been created.
Example for an HP 3PAR StoreServ Storage array running HP 3PAR OS 3.1.2.MU2:
# showhost
Id Name Persona ----------WWN/iSCSI_Name----------- Port
6 ubuntuhost Generic-ALUA iqn.1993-08.org.debian:01:a31abdebc38 ---
Creating the Software iSCSI Host Definition 7