DFSMS is enhanced with this new support to provide policy-based data movement between storage classes and storage groups defined within a Primary (L0) Storage hierarchy. This data movement will be performed during the existing space management processing performed by primary space management, on-demand migration, and interval migration, which are performed at the volume level. When a volume is selected for space management processing due to being over threshold, in addition to analyzing each data set on the volume to determine if it is eligible for migration or expiration, these functions will additionally determine if a data set is eligible to be transitioned, based on new management class criteria.
MANAGEMENT CLASS DISPLAY Page 4 of 6
CDS Name . . . . . . . . . . : USER.MYSCDS
Management Class Name . . . : MC1
Class Transition Criteria
Time Since Creation Years :
Months :
Days . :
Time Since Last use Years :
Months :
Days . :
Periodic
Monthly on Day . . . . :
Quarterly on Day . . . . :
in Month . . . :
Yearly on Day . . . . :
in Month . . . :
Similar to data set migrations, class transitions will occur during the second phase of volume-level space management processing. The first phase will attempt to free enough space on the volume by expiring and reconnecting data sets. If the first phase does not free enough space on the volume, then the second phase of space management will move eligible data off of the volume. Data sets that are eligible for a class transition will be processed first. If a data set is eligible for both a class transition and migration, then it will be migrated. This prevents the data from being transitioned to another volume, only to be later migrated. After all data sets that are eligible for a class transition have been processed, then standard migration processing will be performed. Class transitions and migrations occur until the volume reaches its low threshold. The DFSMShsm MD exit can be used to bypass the transition of specific data sets.
If the ACS routines indicate that only the management class should be transitioned, then no actual data movement is performed. DFSMShsm just assigns the data set to the new management class.
Figure 1 shows sample ACS routines for assigning new classes and groups during a class transition.
Storage Class:
IF &ACSENVIR = 'SPMGCLTR' THEN
SELECT (&STORCLAS)
WHEN ('SSD') SET &STORCLAS = 'EASYTIER'
WHEN ('EASYTIER') SET &STORCLAS = 'SCSATA'
OTHERWISE SET &STORCLAS = &STORCLAS
END
ELSE ...
Management Class:
IF &ACSENVIR = 'SPMGCLTR' THEN
/* SPACE MANAGEMENT CLASS TRANSITION */
SELECT (&MGMTCLAS)
WHEN ('NOML2') SET &MGMTCLAS = 'ML2OK'
WHEN ('DB2NEW') SET &MGMTCLAS = 'DB2AGED'
OTHERWISE SET &MGMTCLAS = &MGMTCLAS
END
ELSE ...
Storage Group:
IF &ACSENVIR = 'SPMGCLTR' THEN
SELECT (&STORCLAS)
WHEN ('EASYTIER') SET &STORGRP = 'EASYTIER'
WHEN ('SCSATA') SET &STORGRP = 'SGSATA'
OTHERWISE SET &STORGRP = &STORGRP
END
ELSE ...