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

Making LUNs available on specific FCP target ports

What portsets are  Top

A portset consists of a group of FCP target ports. You bind a portset to an igroup, to make the LUN available only on a subset of the storage system's target ports. Any host in the igroup can access the LUNs only by connecting to the target ports in the portset.

If an igroup is not bound to a portset, the LUNs mapped to the igroup are available on all of the storage system's FCP target ports. By using portsets, you can selectively control which initiators can access LUNs and the ports on which they access LUNs.

You use portsets for LUNs that are accessed by FCP hosts only. You cannot use portsets for LUNs accessed by iSCSI hosts.

How portsets are used in storage system clusters  Top

Portsets are supported only with the single_image cfmode setting. They are not supported with other cfmode settings. The single_image setting makes all ports on both systems in the cluster visible to the hosts. You use portsets to fine-tune which ports are available to specific hosts and limit the amount of paths to the LUNs to comply with the limitations of your multipathing software.

The single_image mode is not the default cfmode setting for a new system or for an upgrade. Before you use portsets, you must change your cfmode setting to single_image.

Note
Make sure your portset definitions and igroup bindings align with the cabling and zoning requirements of your configuration.

For detailed information about single_image mode, see How Data ONTAP supports FCP with clustered systems.

For procedures that describe how to change your cluster's cfmode setting to single_image mode, see the following documents:

How upgrades affect igroups and portsets  Top

When you upgrade to Data ONTAP 7.1, all ports are visible to all initiators in the igroups until you create portsets and bind them to the igroups.

How portsets affect igroup throttles  Top

Portsets enable you to control queue resources on a per-port basis. If you assign a a throttle reserve of 40 percent to an igroup that is not bound to a portset, then the initiators in the igroup are guaranteed 40 percent of the queue resources on every target port. If you bind the same igroup to a portset, then the initiators in the igroup have 40 percent of the queue resources only on the target ports in the portset. This means that you can free up resources on other target ports for other igroups and initiators.

Before you bind new portsets to an igroup, verify the igroup's throttle reserve setting by using the igroup show -t command. It is important to check existing throttle reserves because you cannot assign more than 99 percent of a target port's queue resources to an igroup. When you bind more than one igroup to a portset, the combined throttle reserve settings might exceed 100 percent.

Example

igroup_1 is bound to portset_1, which includes ports 4a and 4b on each system in the cluster (FilerA:4a, FilerA:4b, FilerB:4a, FilerB:4b). The throttle setting of igroup is 40 percent.

You create a new igroup (igroup_2), with a throttle setting of 70 percent. You bind igroup_2 to portset_2, which includes ports 4b on each system in the cluster (FilerA:4b, FilerB:4b). The throttle setting of the igroup is 70 percent. In this case, ports 4b on each system are overcommitted. Data ONTAP prevents you from binding the portset and displays a warning message prompting you to change the igroup throttle settings.

It is also important to check throttle reserves before you unbind a portset from an igroup. In this case, you make the ports visible to all igroups that are mapped to LUNs. The throttle reserve settings of multiple igroups might exceed the available resources on a port.

For details about igroup throttles, see Managing Fibre Channel initiator requests.

Creating a portset  Top

For clustered systems, it is recommended that when you add local ports to a portset, that you also add the partner system's corresponding target ports to the same portset. For example, if you have local systems's target port 4a port in the portset, then make sure to include the partner system's port 4a in the portset as well. This ensures that cluster takeover and giveback occurs without connectivity problems.

To create a portset, complete the following step.

Step

Action

1

Enter the following command:

portset create -f portset_name port...

-f creates an FCP portset.

portset_name is the name you specify for the portset. You can specify a string of up to 95 characters.

port is the target FCP port. You can specify a list of ports. If you do not specify any ports, then you create an empty portset. You can add as many as 18 target FCP ports. Check your configuration limits in the Fibre Channel Configuration Guide to understand the maximum number of ports supported for your setup.

You specify a port by using the following formats:

  • slotletter is the slot and letter of the port--for example, 4b. If you use the slotletter format and the system is in a cluster, the port from both the local and partner storage system is added to the portset.
  • filername:slotletter adds only a specific port on a storage system--for example, filerA:4b.

Binding an igroup to a portset  Top

If you do not bind an igroup to a portset, and you map a LUN to the igroup, then the initiators in the igroup can access the LUN on any port on the storage system. To bind an igroup to a portset, complete the following step.

Step

Action

1

Enter the following command:

igroup bind igroup_name portset_name

igroup_name is the name of the igroup.

portset_name is the name of the portset.

Adding or removing ports from a portset  Top

To add a port to a portset, complete the following step.

Step

Action

1

Enter the following command.

portset add portset_name port...

portset_name is the name of the portset.

port is the target FCP port. You can specify more than one port. You specify a port by using the following formats:

  • slotletter is the slot and letter of the port--for example, 4b. If you use the slotletter format and the system is in a cluster, the port from both the local and partner system is added to the portset.
  • filername:slotletter adds only a specific port on a system--for example, filerA:4b.

To remove a port from a portset, complete the following step.

Step

Action

1

Enter the following command.

portset remove portset_name port...

portset_name is the name of the portset.

port is the target FCP port. You can specify more than one port. You specify a port by using the following formats:

  • slotletter is the slot and letter of the port--for example, 4b. If you use the slotletter format and the system is in a cluster, the port from both the local and partner system is removed from the portset.
  • filername:slotletter removes only a specific port on a system--for example, filerA:4b.

Unbinding an igroup from a portset  Top

If you unbind or unmap an igroup from a portset, then all hosts in the igroup can access LUNs on all target ports. To unbind an igroup from a portset, complete the following step.

Step

Action

1

Enter the following command.

igroup unbind igroup_name 

igroup_name is the name of the igroup.

Viewing the ports in a portset  Top

To view the ports in a portset, complete the following step.

Step

Action

1

Enter the following command.

portset show [portset_name]

If you do not supply portset_name, all portsets and their respective ports are listed. If you supply portset_name, only the ports in the portset are listed.

Showing igroup-to-portset bindings  Top

To show which igroups are bound to portsets, complete the following step.

Step

Action

1

Enter the following command.

igroup show igroup_name

Destroying a portset  Top

Before you destroy a portset, make sure you unbind it from any igroups. To destroy a portset, complete the following step.

Step

Action

1

Unbind the portset from any igroups by entering the following command:

igroup unbind igroup_name portset_name
2

Enter the following command.

portset destroy [-f] portset_name...

You can specify a list of portsets.

If you use the -f option, you destroy the portset even if it is still bound to an igroup.

If you do not use the -f option and the portset is still bound to an igroup, the portset destroy command fails.

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