Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments

Managing target portal groups

About target portal groups  Top

A target portal group is a set of one or more storage system network interfaces that can be used for an iSCSI session between an initiator and a target. A target portal group is identified by a name and a numeric tag.

For iSCSI sessions that use multiple connections, all of the connections must use interfaces in the same target portal group. Each interface belongs to one and only one target portal group. Interfaces can be physical interfaces or logical interfaces (VLANs and vifs). By default, each interface is in its own target portal group.

Prior to Data ONTAP 7.1, each interface was assigned to its own target portal group. The target portal group tag was assigned based on the interface location and could not be modified. This works fine for single-connection sessions.

Starting with Data ONTAP 7.1, you can explicitly create target portal groups and assign tag values. If you want to use multi-connection sessions, you need to create one or more target portal groups.

Because a session can use interfaces in only one target portal group, you may want to put all of your interfaces in one large group. However, some initiators are also limited to one session with a given target portal group. To support multipath I/O (MPIO), you need to have one session per path, and therefore more than one target portal group.

Caution
Some initiators, including those used with Windows, HP-UX, and Linux, create a persistent association between the target portal group tag value and the target. If the target portal group tag changes, the LUNs from that target will be unavailable.

When you migrate from a prior version of Data ONTAP to version 7.1, the target portal group tags will change. See the Data ONTAP 7.1 Upgrade Guide and the Data ONTAP Release Notes for information on how to migrate from an earlier release when you have iSCSI LUNs used by these operating systems.

Caution
When used with multi-connection sessions, the Windows iSCSI software initiator creates a persistent association between the target portal group tag value and the target interfaces. If the tag value changes while an iSCSI session is active, the initiator will be able to recover only one connection for a session. To recover the remaining connections, you must refresh the initiator's target information.

Listing target portal groups  Top

You can view a list of the current target portal groups using the command line or FilerView. For each target portal group, the list includes the name, tag, and the interfaces that belong to the group.

Listing target portal groups using the command line

To list target portal groups, complete the following step.

Step

Action

1

On the storage system console, enter the following command:

iscsi tpgroup show

Listing target portal groups using FilerView

To list target portal groups, complete the following step.

Step

Action

1

Click LUNs > iSCSI > Manage Portal Groups.

Creating a target portal group  Top

If you do not plan to use multi-connection iSCSI sessions, you do not need to create target portal groups.

If you do plan to use multi-connection sessions, create a target portal group that contains all of the interfaces you want to use for one iSCSI session.

When you create a target portal group, the specified interfaces are removed from their current groups and added to the new group. Any iSCSI sessions using the specified interfaces are terminated, but the initiator should reconnect automatically. However, initiators that create a persistent association between the IP address and the target portal group will not be able to reconnect.

Creating a target portal group using the command line

To create a target portal group, complete the following step.

Step

Action

1

On the storage system console, enter the following command:

iscsi tpgroup create [-f] tpgroup_name [-t tag] 
  [interface ...]

-f forces the new group to be created, even if that terminates an existing session using one of the interfaces being added to the group.

tpgroup_name is the name of the group being created (1 to 32 characters, no spaces or non-printing characters).

-t tag sets the target portal group tag to the specified value. In general you should accept the default tag value; see About target portal groups for more information. User-specified tags must be in the range 1 to 256.

interface ... is the list of interfaces to include in the group, separated by spaces.

Example

The following command creates a target portal group named server_group that includes interfaces e8a and e9a:

iscsi tpgroup create server_group e8a e9a

Creating a target portal group using FilerView

To create a target portal group, complete the following steps.

Step

Action

1

Click LUNs > iSCSI > Manage Portal Groups.

2

Click Create Portal Group.

3

Enter the Portal Group Name (1 to 32 characters, no spaces or non-printing characters).

4

Select the interfaces to include in the group. Use Ctrl-click to select multiple interfaces.

5

Optionally enter the User-Defined Tag. In general you should leave this field blank to accept the default tag value; see About target portal groups for more information. User-specified tags must be in the range 1 to 256.

6

Click Create, and then click OK.

Destroying a target portal group  Top

Destroying a target portal group removes the group from the storage system. Any interfaces that belonged to the group are returned to their individual default target portal groups. Any iSCSI sessions with the interfaces in the group being destroyed will be terminated.

Destroying a target portal group using the command line

To destroy a target portal group, complete the following step.

Step

Action

1

On the storage system console, enter the following command:

iscsi tpgroup destroy [-f] tpgroup_name

-f forces the group to be destroyed, even if that terminates an existing session using one of the interfaces in the group.

tpgroup_name is the name of the group being destroyed.

Destroying a target portal group using FilerView

To destroy a target portal group, complete the following steps.

Step

Action

1

Click LUNs > iSCSI > Manage Portal Groups.

2

Select the Portal Group. Note that you cannot destroy the default target portal groups.

3

Click Destroy, and then click OK.

Adding interfaces to an existing target portal group  Top

You can add interfaces to an existing target portal group. The specified interfaces are removed from their current groups and added to the new group. Any iSCSI sessions using the specified interfaces are terminated, but the initiator should reconnect automatically. However, initiators that create a persistent association between the IP address and the target portal group will not be able to reconnect.

Adding interfaces using the command line

To add one or more interfaces to an existing target portal group, complete the following step.

Step

Action

1

On the storage system console, enter the following command:

iscsi tpgroup add [-f] tpgroup_name [interface ...]

-f forces the interfaces to be added, even if that terminates an existing session using one of the interfaces being added to the group.

tpgroup_name is the name of the group.

interface ... is the list of interfaces to add to the group, separated by spaces.

Example

The following command adds interfaces e8a and e9a to the portal group named server_group:

iscsi tpgroup add server_group e8a e9a

Adding interfaces using FilerView

To add one or more interfaces to an existing target portal group, complete the following steps.

Step

Action

1

Click LUNs > iSCSI > Manage Portal Groups.

2

Click the name of the Portal Group in the list. Note that you cannot add interfaces to the default target portal groups.

Result

The Modify iSCSI Portal Group page is displayed, with the current interfaces highlighted in the Interfaces field.

3

In the Interfaces field, select all of the interfaces you want in the target portal group. Be sure the current interfaces are selected as well as the interfaces being added. Use Ctrl-click to select multiple interfaces.

4

Click Modify, and then click OK.

Removing interfaces from an existing target portal group  Top

You can remove interfaces from an existing target portal group. The specified interfaces are removed from the group and returned to their individual default target portal groups. Any iSCSI sessions with the interfaces being removed are terminated, but the initiator should reconnect automatically. However, initiators that create a persistent association between the IP address and the target portal group will not be able to reconnect.

Removing interfaces using the command line

To remove one or more interfaces from an existing target portal group, complete the following step.

Step

Action

1

On the storage system console, enter the following command:

iscsi tpgroup remove [-f] tpgroup_name [interface ...]

-f forces the interfaces to be removed, even if that terminates an existing session using one of the interfaces being removed from the group.

tpgroup_name is the name of the group.

interface ... is the list of interfaces to remove from the group, separated by spaces.

Example

The following command removes interfaces e8a and e9a from the portal group named server_group, even though there is an iSCSI session currently using e8a:

iscsi tpgroup remove -f server_group e8a e9a

Removing interfaces using FilerView

To remove one or more interfaces from an existing target portal group, complete the following steps.

Step

Action

1

Click LUNs > iSCSI > Manage Portal Groups.

2

Click the name of the Portal Group in the list. Note that you cannot add interfaces to the default target portal groups.

Result

The Modify iSCSI Portal Group page is displayed, with the current interfaces highlighted in the Interfaces field.

3

In the Interfaces field, deselect the interfaces you want to remove. Be sure the interfaces you want to keep are still selected. Use Ctrl-click to select or deselect multiple interfaces.

4

Click Modify, and then click OK.

Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments