How to Create a Target Portal Group

compared with
Current by DenaSteward
on Jul 21, 2009 11:47.

(show comment)
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (3)

View page history
You can create a Target Portal Group (TPG) to manage the discovery of multiple iSCSI and iSER targets. A TPG is a list of IP addresses that determines which interfaces a specific iSCSI target will listen to.
A TPG contains IP addresses and TCP port numbers. Use the {{itadm create-tpg}} command to create a TPG as a list of ip-address:port specifiers. A specific iSCSI target is bound to that TPG with the {{itadm modify-target -t}} command. When an iSCSI target is made active, an iSCSI listener is created for each ip-address and port belonging to a TPG associated with that target.


A TPG is an efficient way to control which targets are discovered through specific ports. For instance, you could restrict your iSCSI target so that it is available only through one specific IP address, or only through a set of iSER-capable IP addresses.
h3.  Using TPGs with iSER

When you use SendTargets discovery and iSER at the same time, a common convention is to use a TPG to associate a specific iSCSI Target port with only iSER-capable IP addresses. For example, if a target system has four IP addresses, A, B, C, and D, and only addresses B and C are iSER-capable, then addresses B and C could be added to a TPG, and assigned to a target T. 

An iSCSI initiator with both Ethernet and IB interfaces could use SendTargets discovery to discover the possible storage targets. Without the use of TPGs, the initiator might always prefer the use of the Ethernet interfaces over the IB interfaces. By associating target T only with the IB interfaces, the initiator will correctly prefer using its IB-Ccapable interface when connecting to target T.


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