How to Configure an iSCSI Target for Discovery

compared with
Current by DenaSteward
on Nov 18, 2009 13:43.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (12)

View page history
* [Configure an IB HCA for iSER|How to Configure an IB HCA for iSER] (iSER only)
* [Configure iSCSI Ports|How to Configure iSCSI Target Ports]
{note:title=Tip}In the following procedures, the itadm command is run on the target and the devfsadm command is run on the initiator.
{note}

{anchor:staticdiscovery}
ipib 0:0:0:46:fe:80:0:0:0:0:0:0:0:2:c9:2:0:27:5b:59
{code}
# Log into the target system as root and specify its registration with an iSNS server.
# Log into the target system as root and define the iSNS server with the target that will be registered. You must specify the IP address of the iSNS server and the port number separated by a colon (_IP_address:port_number_). In this example, the default port for an iSNS server is used.
{code}
# itadm -i -sns enable
# itadm modify-defaults --isns-server 10.0.0.129:3205
{code}
# Define the iSNS server with which the target will be registered.
You must specify the IP address of the iSNS server and the port number separated by a colon (_IP_address:port_number_). In this example, the default port for an iSNS server is used.
# Enable target registration.
{code}
# itadm -s -isns-server 10.0.0.129:3205
# itadm modify-defaults --isns enable
{code}
# Verify the creation of the target.

Ensure that the connections to the target use iSER by configuring at least one target portal group that represents the IPoIB interfaces and bind those to the targets. Using SendTargets for iSER lets you avoid reverting to a sockets iSCSI configuration.
 
The following steps cause the target to accept only connections to only on the two IP addresses specified.
# Log in as root and obtain the (inet) IP address of the targets.
{code}
# itadm list-target -v
{code}
The target now accepts connections to on the two IP addresses you specified.

h5. Where to Go Next

The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact