In environments with Virtual Tape System (VTS) clusters distributed across multiple physical locations (e.g., Location A and Location B), users may want to ensure that processors running at a specific location prioritize tape drive allocation from the local cluster rather than selecting devices randomly or from a remote location.
By default, MIM's MIA component does not automatically preference local clusters over remote ones based on the processor's location.
MIA manages the Eligible Device List (EDL) provided by z/OS. Unless explicitly configured, MIA treats all online, managed devices within the EDL as equally eligible for allocation. It does not possess inherent "location awareness" to automatically favor devices based on physical proximity to the processor.
To achieve preferencing behavior, you must manually assign preference values to devices on a system-by-system basis. This is accomplished using the `VARY` command with the `PREFERENCE` parameter, typically within the `MIMSYNCH` member using `IFSYS` statements.
Determine the device addresses associated with the VTS cluster at Location A and Location B.
Use `IFSYS` blocks to ensure that preferencing commands only execute on the systems residing in the corresponding location.
Example Configuration:
In this example, System A is local to VTS Cluster A, and System B is local to VTS Cluster B.
/* Preferencing for systems at Location A */IFSYS SYSTEMA @VARY (AddrA),PREFERENCE=10 /* High priority for local Cluster A */ @VARY (AddrB),PREFERENCE=1 /* Lower priority for remote Cluster B */ENDIF
/* Preferencing for systems at Location B */IFSYS SYSTEMB @VARY (AddrB),PREFERENCE=10 /* High priority for local Cluster B */ @VARY (AddrA),PREFERENCE=1 /* Lower priority for remote Cluster A */ENDIF
Note: In MIA, a higher numeric preference value indicates a higher priority for allocation.
After implementing the changes, you can verify the settings and device status using the following console command:
`F mia_taskname,DISPLAY LOCALUNITS`
Additional Considerations: