Auto zoning
Auto zoning enables inline communication between storage systems and Fibre Channel (FC) switches to automate zoning. The auto zoning feature automatically creates and manages zones on supported FC switches, simplifying host-to-storage connectivity and reducing errors. By automatically forming zones between host ports and storage target ports, auto zoning reduces manual administrative effort, configuration errors, and deployment time.
- Creating, modifying, and deleting zones within the Fibre Channel fabric
- Identifying optimal zone definitions to achieve optimal multi‑path configurations for host servers
- Managing zoning in accordance with SAN best practices
- Backing up and restoring zone configurations to ensure reliability and recoverability
- Automatically adapting zone definitions by tracking changes in host or storage connectivity
- With
auto zoning feature, storage target ports manage zoning operations on the FC fabric. Auto zoning
creates peer zones, which provide an optimized zoning model:
- Peer zone contents
-
- One principal device is typically a storage array target port.
- Multiple non-principal devices are typically host initiator ports.
- Peer zone communication rules
-
- The principal device can communicate with all nonprincipal devices, and non-principal devices can communicate with the principal device.
- Nonprincipal devices cannot communicate with each other.
- Supported Switch Platforms
- The auto zoning feature is supported by Brocade FC switches that meet the following conditions:
- Fabric OS (FOS) version 9.1.1 or later
- The TDZ feature must be enabled on the switch ports where the storage target ports are connected. The feature can be enabled through the switch CLI. Refer to the switch documentation for detailed steps to enable this capability.
- The TDZ feature does not need to be enabled on host ports.
- Fabric Connectivity Requirements
- For auto zoning to operate correctly and predictably, the fabric connectivity of the storage
target ports and connected host ports must meet specific requirements. These considerations can
ensure consistent zone formation, proper path distribution, and stable host‑storage communication
across fabrics.
- Auto zoning is supported only for user‑defined FC portsets.
- All FC I/O port IDs included in an auto zoning enabled portset must demonstrate symmetric fabric connectivity. The same FC I/O port ID from every node in the cluster must be connected to the same fabric. For example, FC IO Port ID 1 from all nodes must connect to Fabric A.
- Ideally, a portset should contain an equal number of target FC I/O ports from each redundant fabric.
- Host initiator ports must be connected to the same fabric as the target ports defined within the portset that you want to associate with host object.
- Auto zoning is supported only for user‑defined FC portsets.
- Auto zoning Workflow
- To start using auto zoning when adding new hosts in an existing configuration:
- Ensure that fabric requirements are met as described here.
- Create an auto zoning enabled Fibre Channel portset.
- Create the host by using the FDMI hostname or by specifying a list of host port WWPNs.
- Associate host with the auto zoning enabled portset.
- Zoning policies
-
Auto zoning supports configurable zoning policies that determine how initiator WWPNs are matched with target port WWPNs when forming peer zones.
Zoning policies are applied at the portset level, and different portsets can use different policies based on deployment requirements.
Available zoning policies are:- one_to_one connectivity
-
This policy enforces a single path between every initiator port and one target port on each canister within the same fabric.
- Each initiator WWPN is zoned with only one FC IO Port ID from the portset. Each FC IO Port ID represents a single target port from each canister.
- Zoning is performed between the initiator port and the portset target port, provided both ports are within the same fabric.
- Initiator ports are evenly distributed across all target ports from the portset to achieve better workload distribution.
- After zoning, that initiator WWPN is not zoned with any additional target ports from the portset, even if multiple suitable target ports exist on that fabric.
- one_to_one_all_fabrics
-
This policy also creates one‑to‑one zoning, but it is designed for host environments where initiator WWPNs can not be visible on all fabrics during initial discovery.
- Each initiator WWPN is zoned with one target port WWPN from each fabric but will have a single host path from fabric where Host port is connected .
- This policy is useful where initiator WWPNs do not appear upfront in the fabric
- SAN‑boot scenarios
- NPIV (N_Port ID Virtualization) WWPN configurations
- Zone Naming Convention
-
Zones are created that uses the following format,
IBM_SV_<Target Port WWPN>_00, for example, IBM_SV_50050768101655c4_00.This predictable naming scheme allows easy identification of IBM Storage managed zones in the switch fabric.
- Zone Name Prefix Configuration
-
Storage administrator has an option to specify a zone name prefix for all automatically created zones. This prefix can be configured by using the chsystem command.
- The zone name prefix must be configured before the first auto zoning enabled portset is created on the system.
- Once the prefix is set on a system that contains any auto‑zone‑enabled portset, the prefix cannot be modified.
-
If no prefix is provided, the default naming scheme is used, for example,
IBM_SV_<target-WWPN>_00.
This mechanism ensures naming consistency across all auto‑generated zones in the fabric.
If the user configures the prefix FC_Infinity, it is automatically prepended to the zone name. For example, if Prefix is FC_Infinity and Target Port WWPN is 50050768101655c4, then the resulting auto‑generated zone name becomes: FC_Infinity_IBM_SV_50050768101655c4_00.
This example demonstrates how user‑defined prefixes are applied to the default zone naming format.
Configuring auto zoning in the management GUI
To verify auto zoning capability, click Create portset. If Auto zoning is Enabled, the portset supports auto zoning.
When adding a host in , portsets with auto zoning enabled are preselected.
Configuring auto zoning in the command-line interface
- Host object with one_to_one auto zoning policy
- The one_to_one auto zoning policy can ensure that each host WWPN connects to a single IO port within its fabric.
- Host object with one_to_one_all_fabrics auto zoning policy
-
- Create an auto-zoning enabled portset with one_to_one_all_fabrics. The
mkportset command creates an auto
zoning enabled FC portset that is named
azps1. When you run lsportset, the auto_zone_enabled value for this portset shows asyes.mkportset -porttype fc -autozoneenabled yes -autozonepolicy one_to_one_all_fabrics -name azps1 - Add Fibre Channel (FC) I/O ports with auto zoning capability to the portset. Verify that
fabric_auto_zone_capability in the lsportfc output shows
yes. For example, FC I/O port 1 (connected to Switch1, 1000D81FCCAA0EC8) and FC I/O port 2 (connected to Switch2, 100000051E817293) are auto zoning capable. Use the following command to add these ports to the portset.addfcportsetmember -portset azps1 -fcioportid 1 addfcportsetmember -portset azps1 -fcioportid 2 - Create the host object with the portset
azps1.- Host WWPNs
100000109BA817AAand100000109BA817ABconnect to Switch1 through FC I/O port 1. - Host WWPNs
2100F4E9D4542B0Eand2100F4E9D4542B0Fconnect to Switch2 through FC I/O port 2.
svctask mkhost -fcwwpn 100000109BA817AA:100000109BA817AB:2100F4E9D4542B0E:2100F4E9D4542B0F -portset azps1 -protocol fcscsi -type generic -name azhost - Host WWPNs
- Monitor the lshostzone output
for the newly added host. The output shows one entry for host
azhost. Initially, the applied_config displayszone_needed. After a short time, the zone_status updates tozoned. Each host WWPN must be zoned with one I/O port per fabric. For example, Host WWPN 100000109BA817AA is zoned to one port (IO port 1) from Switch 1 (1000D81FCCAA0EC8) and one port (IO port 2) from Switch2 (100000051E817293).lshostzone host_id host_name host_wwpn host_fabric portset_id portset_name io_port_id ioport_fabric recommended_config applied_config zone_status disruptive_change_pending 0 azhost 100000109BA817AA 1000D81FCCAA0EC8 4 azps1 1 1000D81FCCAA0EC8 zone_needed zone_needed zoned no 0 azhost 100000109BA817AA 1000D81FCCAA0EC8 4 azps1 2 100000051E817293 zone_needed zone_needed zoned no 0 azhost 100000109BA817AB 1000D81FCCAA0EC8 4 azps1 1 1000D81FCCAA0EC8 zone_needed zone_needed zoned no 0 azhost 100000109BA817AB 1000D81FCCAA0EC8 4 azps1 2 100000051E817293 zone_needed zone_needed zoned no 0 azhost 2100F4E9D4542B0E 100000051E817293 4 azps1 1 1000D81FCCAA0EC8 zone_needed zone_needed zoned no 0 azhost 2100F4E9D4542B0E 100000051E817293 4 azps1 2 100000051E817293 zone_needed zone_needed zoned no 0 azhost 2100F4E9D4542B0F 100000051E817293 4 azps1 1 1000D81FCCAA0EC8 zone_needed zone_needed zoned no 0 azhost 2100F4E9D4542B0F 100000051E817293 4 azps1 2 100000051E817293 zone_needed zone_needed zoned no - Run the lshost command and
confirm that azhost shows a status of
online.lshost id name port_count iogrp_count status site_id site_name host_cluster_id host_cluster_name protocol owner_id owner_name portset_id portset_name partition_id partition_name draft_partition_id draft_partition_name ungrouped_volume_mapping location_system_name uuid 0 azhost 4 4 online scsi 4 azps1 no 524DD8DE-B0E1-5328-8857-5E9D194F98C9
- Create an auto-zoning enabled portset with one_to_one_all_fabrics. The
mkportset command creates an auto
zoning enabled FC portset that is named