HP 3PAR SUSE Linux Enterprise 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.201 255.255.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 500 n/a 0 0.0.0.0 0.0.0.0
3205
1:3:1 ready 10.101.0.201 255.255.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. 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.100.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.
6. To set the gateway for subnets 10.100 and 10.101, issue the following commands:
# controliscsiport gw 10.100.0.254 -f 0:3:1
# controliscsiport gw 10.101.0.254 -f 1:3:1
7. To verify the gateway settings, issue the showport command. For example:
# showport -iscsi
N:S:P State IPAddr Netmask Gateway TPGT MTU Rate DHCP iSNS_Addr
iSNS_Port
0:3:1 ready 10.100.0.101 255.255.0.0 10.100.0.254 31 1500 10Gbps 0 0.0.0.0
3205
1:3:1 ready 10.101.0.201 255.255.0.0 10.101.0.254 131 1500 10Gbps 0 0.0.0.0
3205
Creating the iSCSI Host Definition
This section describes how to create an iSCSI host definition.
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 SUSE Using the iscsiadm Command” (page 40).
Emulex
1. Create an iSCSI host definition entry by using the createhost -iscsi [options]
<hostname> [<iscsi_name>...] command.
Required
For iSCSI, SUSE Enterprise Linux 10 or 11 requires a host persona, which is set by using the
createhost command option -persona.
Example with the -persona option:
Creating the iSCSI Host Definition 19