HP Matrix Operating Environment and HP Storage Provisioning Manager support for port groups

Technical white paper | Matrix OE and SPM
10
Perform rezoning using the script
After all preparations have been completed, and the list of server (initiator) WWNs and new port groups have been
determined, it is time to do the actual rezoning. Rezone.ps1 is the supplied PowerShell script used to do this rezoning
operation. When run, this script will:
1. Find all SPM storage services using the specified initiator.
2. Remove the initiator WWN requirements matching the specified initiator WWN and any port group requirements
from those services.
3. Reactivate the services.
This will remove the SPM created zones that are no longer being used by the initiator WWN*.
4. Re-apply the initiator WWN requirements.
5. Add port group requirements for the port group specified.
6. Reactivate the services a second time.
This will create zones for the initiator WWNs that have no existing zones*.
*SPM will not remove zones that were created outside of SPM. When creating zones, SPM will use existing zones that meet
the initiator WWN requirements, even if not created by SPM.
Note:
Using the Rezone script on SPM services that were upgraded from a previous version requires special handling. Please
see the section
Upgrading SPM to 2.2.2 or later for more information.
The Rezone script takes the following parameters.
-Port <port#> TCP port number used to communicate with SPM. Default is 8000.
-Login <login name> if omitted, prompts for a username
-Password <password> if omitted, prompts for a password
-UseHttp Web protocol. Allowed values are http and https. Default is https
-InitiatorWWN <wwn> Initiator (Server) WWN to be rezoned. This must be provided.
-PortGroup <group name> Name of new port group to be used. If none is provided, SPM choses the ‘least used’
port group.
-ArrayName <array name> Optional name of array for which target ports should be rezoned
The port group and array name arguments are optional. If no port group is specified, SPM will use the least-used port
algorithm to choose a new port group. If no array name is specified, SPM will act on all services that reference the specified
initiator. If an array name is specified SPM will limit its actions to those services that present volumes on the specified array
to the specified initiator.
Limitations:
· The Rezone script must run on the CMS where SPM is installed.
· While the Rezone script is running, no operations should be performed on any service referencing the initiator
provided to the script.
· The Rezone script should not be started when operations on any service referencing the initiator provided to the
script are in progress. This can be determined by reviewing the current jobs within the SPM job table.
· The PowerShell script execution policy may need to be modified to allow the script to be run.
Note that if there is already an existing zone connecting the initiator to the target ports on the array, SPM will re-use that
zone. If there is no existing zone, SPM will create a new zone containing the initiator and all ports on the array that are on
the same fabric as the initiator (and in the white list, if one is defined for HP 3PAR StoreServ). Please see the HP Storage
Provisioning Manager (SPM) User Guide for more information.
Note
: If the Rezone script fails for some reason, such as if services were previously upgraded and never re-activated, the
affected services need to be repaired before the Rezone script can be run again. This should be done using Matrix OE
storage pool entries. The suggested steps to do this are:
1. Find and modify the SPE that contains the broken services (volumes).
2. Uncheck the
Mask
checkbox for the broken volume(s*).