The device pools defined by the DEFPOOL statements have a great deal of control over ACC and SRS. As the name implies, a device pool is a list of eligible devices, but the device pools also control many other installation and recovery options.
By default, once ACC or SRS has processed the rules language for any of the product’s environments, no other environments require rule processing. For example, assume an application allocates, then writes to the following DD statement:
//DD1 DD DSN=PROD.MASTER.FILE,DISP=(NEW,CATLG),
// UNIT=SYSDA,SPACE=(CYL,(5,5))
If both ACC and SRS are active, ACC
will get control first during data set allocation. The following rule could be used to force
allocation to an allowable device. The set expression assigns the PRDPOOL
device pool to the DD statement. ACC ignores the SRS
recovery operands on the pool definition and uses the eligible device list and the
ALGORITHM parameter to control volume selection.
DEFRULE PRDPERM IF &HLQ = PROD
THEN SET DISKPOOL=PRDPOOL
DEFPOOL PRDPOOL ALGORITHM(MAXSPACE)
REDUCEP(PERCENT(10) LIMIT(20)) SETSEC(PERCENT(100)) REDUCES(YES)
ADDVOL(YES) VOLSER=(PROD*,PRDT01,PRDT03,PRDT04,PRDT10)
After the rules have been run the first time, you can think of the DD statement as being
modified as follows. The DISKPOOL parameter is not valid on a DD
statement.
| //DD1 | DD | DSN=PROD.MASTER.FILE,DISP=(NEW,CATLG), |
| // | UNIT=SYSDA,SPACE=(CYL,(5,5)), | |
| // | DISKPOOL=PRDPOOL |
If the application then writes too much data to the data set and causes a space failure, SRS can then attempt recovery. Since a device pool has already been assigned to the DD statement, SRS need not process the rules language for recovery options. Depending on the cause of the space problem, SRS selects the appropriate recovery options from the available pool definition.
ACC and SRS have special symbolic field names used for
device pooling: DISKPOOL, TAPEPOOL,
DATAPOOL, and INDXPOOL. When a user allocates a data set,
a rule definition can use a SET statement to select a pool name that will
force allocation to an allowable device. SRS can share the pool definitions
to control space recovery.
The rules language can use the SET parameter to assign a
device pool to the allocation request. In the following example, the PRDPERM
rule definition controls PROD data sets by setting DISKPOOL
to PRDPOOL.
DEFRULE PRDPERM IF &HLQ = PROD
THEN SET DISKPOOL=PRDPOOL
DEFPOOL PRDPOOL VOLSER=(PROD*,PRDT01,PRDT03,PRDT04,PRDT10)
ACC and SRS use the name specified on the
SET operand to obtain the associated device pool: PRDPOOL.
This device pool was built during the rule conversion process at initialization, or after the
last REFRESH command. The product will then ensure that only a device from
the PRDPOOL pool is used for the allocation request.
A single IF-THEN-ELSE group can SET multiple symbolic
fields associated with volume pooling. ACC will then apply the appropriate
field during the allocation request. For example, if ACC is processing a
tape request, only the TAPEPOOL symbolic field would be used for the
allocation request. The following symbolic names perform the device pooling functions:
-
DISKPOOL- performs device pooling for allocations associated with a disk data set. SRS options are typically defined in a DEFPOOL group pointed to by aDISKPOOLfield. -
TAPEPOOL- performs device pooling for allocations associated with a tape data set. -
DATAPOOL- performs device pooling for allocations associated with a VSAM DATA component. WhenDATAPOOLis specified, only the data component of a VSAM component will be pooled. The index component will use the volume specified on the IDCAMS control card.Note: The ACCVSAM option must be enabled to useDATAPOOL. -
INDXPOOL- performs device pooling for allocations associated with a VSAM INDEX component. WhenINDXPOOLis specified, only the index component of a VSAM component will be pooled. The data component will use the volume specified on the IDCAMS control card.Note: The ACCVSAM option must be enabled to useINDXPOOL.
VSAMSEP symbolic field also controls device pooling for VSAM files.
When an IF-THEN-ELSE group sets VSAMSEP = YES, ACC will
separate the volumes allocated to the data and index components of a VSAM file.Alternate Device Pools
If the devices within a pool definition cannot satisfy the allocation
request, an alternate pool can be requested. This facility is requested with the
ALTPOOL parameter. Assume that the PRDPOOL pool did not
have enough space to satisfy the allocation request. In the following example,
ACC would then attempt to use the PRDTEMP pool.
DEFRULE PRDPERM IF &HLQ = PROD
THEN SET DISKPOOL=PRDPOOL
DEFPOOL PRDPOOL ALTPOOL(PRDTEMP) VOLSER=(PROD*,PRDT01,PRDT03,PRDT04,PRDT10)
DEFPOOL PRDTEMP VOLSER=(STOR*,WORK*) MNTYPE=(STORAGE,PUBLIC)
Each pool definition can use the ALTPOOL parameter to point to one other
pool, but as many alternate pools as desired can be chained with the
ALTPOOL parameter. Each alternate pool can specify one other pool. There
are two limitations: the alternate pool chain cannot loop back to a definition already in
the chain; and allocation may be attempted on a specific device one time only. That is, if
the same volume is specified in multiple pool definitions, the volume will only be eligible
for allocation one time.
Alternate pool definitions are used to define device pools that handle overflow conditions.
Parameters coded on the alternate pool definition that are not related to defining the
device pool are ignored. The one exception is the ALGORITHM parameter,
which allows the alternate pool to use a different device selection algorithm than the
primary pool definition.
ALTPOOL for the current pool definition is
ignored when using the ADDVOL POOL subparameter during
SRS recovery processing. This parameter is used to specify a separate
pool of devices when dynamically adding a volume for space recovery.ACC can also control the order of device selection within a pool definition. Once ACC and Allocation have trimmed the eligible device list, the list is typically passed to the System Resource Manager (SRM) or an SMS volume selection routine. SRM selects the volume with the best logical path utilization and device delay time. If your DASD devices have plenty of space, and the data set is going to be used in the immediate future, the SRM algorithm works well.
ALGORITHM parameter on the
DEFPOOL statement can control the order of device selection for both
non-SMS and SMS controlled data sets. The pool
definition can provide an alternate volume selection algorithm for conditions that require
other management considerations. If no algorithm is specified on the pool definition,
ACC allows SRM or SMS to select
the volume. SRM Device Selection Algorithm
When a rule selects a pool definition for an allocation request and no
ALGORITHM parameter was specified on the pool definition, the product
lets the operating system select the device from the pool. Allocation uses the unit name, or
storage group, to obtain a list of candidate devices. The list is passed to the System
Resource Manager (SRM) which selects the device with the best logical
path utilization and device delay time. If your DASD devices have plenty of space, and the
data set is going to be used in the immediate future, the SRM algorithm
works very well.
In the following example, since no ALGORITHM parameter was specified on
the PRDPOOL definition, the operating system will control the order of
device selection.
DEFRULE PRDPERM IF &HLQ = PROD
THEN SET DISKPOOL=PRDPOOL
DEFPOOL PRDPOOL VOLSER=(PROD*)
ACC intercepts the SRM device allocation request made
by Allocation. The pool definition can request one of the alternate volume selection
algorithms provided: MAXSPACE, FRAGINDX,
BESTFIT, or RESPTIME.
If space management considerations are very important to a device pool,
the MAXSPACE algorithm can be used to balance data set allocations on the
volumes within a pool definition. When the MAXSPACE algorithm has been
requested by a pool definition, the SRM call made by Allocation will be
intercepted. The product will use the candidate volume list to select the device with the
largest percentage of available freespace.
In the following example, the MAXSPACE algorithm orders the devices in
PRDPOOL by the percentage of space remaining on the volumes.
ACC will then select the volume with the largest percentage of
available space.
DEFRULE PRDPERM IF &HLQ = PROD
THEN SET DISKPOOL=PRDPOOL
DEFPOOL PRDPOOL ALGORITHM(MAXSPACE) VOLSER=(PROD*)
MAXSPACE algorithm may briefly affect system
performance.The BESTFIT Volume Selection Algorithm
In rare conditions, you may want to allocate new data sets to a volume in the pool
definition that has the least available space. The BESTFIT algorithm can be
used to stack data sets on volumes with the least available space, leaving the remaining
volumes as empty as possible.
When the BESTFIT algorithm has been requested by a pool definition, the
SRM call made by Allocation will be intercepted. The product will use
the candidate volume list to select the device with the least percentage of available
freespace.
In the following example, the BESTFIT algorithm orders the devices in
PRDPOOL by the percentage of allocated space on the volumes in the pool
definition. ACC will then select the volume with the least available
space.
DEFRULE PRDPERM
IF &HLQ = PRODBIG
THEN SET DISKPOOL=BIGPOOL
DEFPOOL BIGPOOL ALGORITHM(BESTFIT) VOLSER=(PRODX*)
BESTFIT algorithm tends to over-allocate volumes, and
possibly cause DASD performance problems by stacking all of a group's data sets on the same
device, the use of this algorithm is not recommended.The DEFGROUP statements in the rules language can be used to define groups
of data sets that should be separated if at all possible. The KEEPAWAY
parameter can be used along with the following volume selection algorithms:
SRM, MAXSPACE, and FRAGINDX. Both
ACC and SRS can use the KEEPAWAY
parameter for volume selection.
The KEEPAWAY parameter forces the algorithm to examine the
DEFGROUP definitions for the current data set. If a group contains the
data set, the algorithm reads the catalog record for each data set in the group. The
algorithm keeps track of the number of "in-group" data sets that reside on each volume.
After scanning all the group definitions, the KEEPAWAY function orders the
candidate volume list based on the number of "in-group" data sets found on each volume. The
volume selection routines will then apply the requested algorithm to volumes that have the
same "in-group" count.
For example, the following DEFGROUP statements define two keep away
groups.
DEFGROUP KAG1 (PRODDB2.CCTR5.PRMSTR1,
PRODDB2.CCTR5.PRMSTR2, PRODDB2.CCTR5.PRMSTR3)
DEFGROUP KAG2 (PRODIMS.FDCL4.FDMSTR1,
PRODIMS.FDCL4.FDMSTR2, PRODIMS.FDCL4.FDMSTR3)
In the following example, the KEEPAWAY algorithm orders the devices in
PRDPOOL by the number of "in-group" data sets. The
MAXSPACE algorithm will then be applied to the candidate list as a
secondary sort key. The product will then select the volume with the least overlap with data
sets in the keep away groups, and the most available space.
DEFRULE PRDPERM
IF &HLQ = (PRODDB2,PRODIMS) THEN SET DISKPOOL=PRDPOOL
DEFPOOL PRDPOOL ALGORITHM(MAXSPACE KEEPAWAY) VOLSER=(PROD*)
To be more specific, if a job allocates a data set named
PRODIMS.FDCL4.FDMSTR3, the KEEPAWAY algorithm will first
examine DEFGROUP KAG1. Since the data set does not exist in the keep away
group, the algorithm will continue with the next group definition.
Since the second group contains the data set being allocated, the KEEPAWAY
algorithm will examine the catalog record for each data set in the group. For example, the
first data set might have two volumes in the catalog record: PROD01 and
PROD07. The algorithm will increment a counter for each volume. After
processing all the keep away groups, the product will then select the PROD*
volume that contains the least "in-group" data sets and the most available space.
Using the INCLUDE parameter - There are also conditions where you want
to keep a data set away from other data sets, but the other data sets don't have to be
separated from each other. This can be accomplished by using the INCLUDE
parameter on the DEFGROUP statement.
For example, data set A should not be on any volume that contains data set B, C, D, or E.
However, it does not matter if B, C, D, or E are on the same volumes. The following
DEFGROUP illustrates this example:
DEFGROUP KAG3 (A) INCLUDE(B C D E)
Using Generic Data Set Masks on DEFGROUP Statements -
KEEPAWAY processing can use an SMS type mask to expand the list of data
sets in a group definition. For example, the following DEFGROUP statement
will keep USER1 and USER2 data sets away from each
other.
DEFGROUP GROUP1 (USER1.**, USER2.**)
An EXCLUDE parameter can also be used in conjunction with the generic
masks. In the example above, all USER1 and USER2 data sets
would be included in the group definition. In the following example, data sets with the
second qualifier of 'TEST' are removed from the group definition.
DEFGROUP GROUP1 (USER1.**, USER2.**) EXCLUDE(*.TEST.**)
Using the DEFPOOL KEEPAWAY RULES subparameter - Lastly, the
DEFPOOL KEEPAWAY parameter can use the RULES (rule name)
subparameter to separate data sets based on criteria other than VOLSER. For
example, you could use a rule member to separate data sets based on controller addresses.
The rules will get control for each in-group data set and each volume in the eligible device
list.
&RULE_SKIP parameter determines whether the
data set should be considered in-group. Setting &RULE_SKIP = NO (which
is the default) means perform KEEPAWAY processing on the compare. Setting
&RULE_SKIP = YES means you don't care about KEEPAWAY
processing in this condition. If &RULE_SKIP=NO is specified, the
&RULE_VALUE can be used to determine the importance of the
separation. By default, this value is one, but higher numbers can be used to weight
separation to different devices. RULES (rule name) can
introduce serious system overhead. If you are considering using this feature, we strongly
recommend contacting the support first.KEEPAWAY option can be used in several environments by
ACC and SRS. If KEEPAWAY or
KEEPAWAY(SRM) is specified, the option orders the SRM
candidate list and the optimum volume is selected. KEEPAWAY(DADSM) can also
be specified, but the DADSM environment is less forgiving. If all the volumes in the
candidate list have "in-group" data sets on them, the request will fail.The RESPTIME Volume Selection Algorithm
The RESPTIME algorithm performs selection based on the
device response times over a given time interval. ACC has a data
acquisition subtask that samples performance data. The RESPTIME algorithm
uses the data to average the response times from the samples to cover the performance
window. The pool definition can also specify the performance objective to use on the
allocation request. The device that comes closest to the performance objective will be
selected by the RESPTIME algorithm.
By default, the RESPTIME algorithm uses a performance window of 300
seconds (5 minutes), and a performance objective of 0 milliseconds. This will force
RESPTIME to select the best performing volume in the pool over the last
five minutes. Additional parameters can be provided with the RESPTIME
algorithm: the performance window (secs) and objectives (ms). The following example requests
a 10-minute window with a 35 ms response time objective.
DEFRULE PRDPERM IF &HLQ = PROD
THEN SET DISKPOOL=PRDPOOL
DEFPOOL PRDPOOL ALGORITHM(RESPTIME
WINDOW(600) OBJECTIVE(35))
VOLSER=(PROD*)
The performance data acquisition subtask runs in the DIF address space. The subtask will
obtain extended CSA to store the performance data. Each on-line DASD device will require (24
+ (2*intervals)) bytes of extended CSA. The LIST CSA DIF
command can be used to display the CSA usage - examine "DIF DPT TABLE". The number of
sampling intervals is specified in the first positional operand of the
RESPDEFT parameter specified in the DIF execution JCL. By default,
samples from the last 60 performance intervals are kept. For more detailed information about
RESPDEFT, examine the RESPDEFT parameter in the Dynamic
Install Facility. A quick list of the positional operands on RESPDEFT
follows:
- number of sampling intervals
- length of time between intervals - (seconds)
- default DASD response time - (milliseconds)
- penalty factor used for already allocated devices - (milliseconds)
When the FRAGINDX algorithm has been requested by a pool
definition, the SRM call made by Allocation will be intercepted. The
product will use the candidate volume list to select the least fragmented volume in the pool
definition.
In the following example, the FRAGINDX algorithm orders the devices in
PRDPOOL by the fragmentation index associated with each volume.
ACC will then select the volume with the smallest fragmentation
index.
DEFRULE PRDPERM IF &HLQ = PROD
THEN SET DISKPOOL=PRDPOOL
DEFPOOL PRDPOOL ALGORITHM(FRAGINDX) VOLSER=(PROD*)
FRAGINDX algorithm may affect system performance.The PGS Volume Selection Algorithm
The Preferred Guaranteed Space (PGS) algorithm can be used to implement a
"guaranteed space"-like algorithm for SMS and non-SMS
controlled allocations. In an SMS environment, the PGS
algorithm forces SMS to first attempt the user requested volume without
coding Guaranteed Space on the storage class. Unlike the SMS Guaranteed
Space parameter, if the space request fails on the specified volume, the
PGS algorithm allows other volumes in the storage group to be used as
candidates for the request. If CHECK(FLOAT) is specified on the
DEFPOOL statement, non-SMS requests can also use this
algorithm.
The PGS parameter must be used along with any of the other volume
selection algorithms and should be specified as the second positional parameter on the
ALGORITHM keyword. PGS simply influences the first
volume selected from the storage group. The primary algorithm controls the subsequent device
selections.
DEFRULE PRDPERM IF &HLQ = PROD
THEN SET DISKPOOL=PRDPOOL
DEFPOOL PRDPOOL ALGORITHM(MAXSPACE PGS) VOLSER=(PROD*)
PGS only honors the
first requested volume.The DEFPOOL statement can restrict the devices in the pool definition to
only allow ACC-controlled allocations to use the devices. This
restriction facility can limit the creation of data sets on devices in the pool, or deny all
allocations to the devices.
In the following example, the RESTRICT(NEW) parameter
protects the devices from invalid user requests. The non-ACC controlled
users cannot create data sets on the volumes in the device pool - even if the volumes are
specifically requested.
DEFRULE PRDPERM IF &HLQ = PROD
THEN SET DISKPOOL=PRDPOOL
DEFPOOL PRDPOOL RESTRICT(NEW) VOLSER=(PROD*,PRDT01,PRDT03,PRDT04,PRDT10)
If RESTRICT(ALL) was specified, all the volumes within the pool would be
off-line to non-ACC controlled users. These users will not be able to
create or access any data set on a volume within the pool definition.
Controlling Specific Allocations
A pool definition has some flexibility with allocations that request specific devices. If
SPECIFIC(FLOAT) is requested on the pool definition,
ACC will always remove the volume from a new data set allocation. If
SPECIFIC(CHECKPOOL) is requested, a specified volume will be removed only
when the volume does not reside within the pool or an alternate pool definition. When
SPECIFIC(NOFLOAT) is requested, volumes are never removed, and an invalid
request will fail with a JCL error. The SPECIFIC parameter defaults to
SPECIFIC(CHECKPOOL).
In the following example, the SPECIFIC(FLOAT) parameter removes all
specified volumes for PROD data sets. An allocation request floats to the
best device in the pool at the time of allocation. Remember, device selection is based on
SRM or the requested selection algorithm.
DEFRULE PRDPERM IF &HLQ = PROD
THEN SET DISKPOOL=PRDPOOL
DEFPOOL PRDPOOL SPECIFIC(FLOAT) VOLSER=(PROD*,PRDT01,PRDT03,PRDT04,PRDT10)
ACC Controlled Allocations
The rules language can be used to establish a pool definition, but not fully activate the
pool. For an ACC-controlled allocation request, the MODE
parameter on the DEFPOOL statement determines how ACC
will process the request.
The MODE(WARN) parameter disables the pooling request made by an
ACC rule. All other SET requests made by the rules
language will be honored. If the user requested a specific volume that does not reside in
the pool definition, ACC will write a warning message about the
violation, but allow the allocation request.
The MODE(ACTIVE) parameter allows the product to control the allocation
request using the device pool selected by the rules language. If the user requested a
specific
volume that does not reside in the pool definition, ACC will write a
message about the violation and convert the allocation request to nonspecific. By default,
ACC will then float the space request to the best volume in the device
pool. An MVS system uses the SRM algorithms for device selection. The
ALGORITHM parameter on the DEFPOOL statement can be used
to select devices based on available space, fragmentation level, best fit, or device
performance.
If MODE(INACTIVE) is requested, ACC will not intercept
the environment specified on the DEFENV statement. No processing will occur
for the environment.
SPECIFIC(CHECKPOOL) parameter. Note that
SPECIFIC(CHECKPOOL) is the default for a pool definition.MODE parameter on the DEFENV statement related to
the environment establishes the default for the MODE parameter on the
DEFPOOL statement.If a non-ACC-controlled allocation specifically requests a unit that
resides in a restricted ACC pool definition, the MODE
parameter on the DEFENV statement controls the request. If
MODE(WARN) is specified, the product will write a warning message, and
allow the allocation. If MODE(ACTIVE) is specified on
DEFENV, non-ACC controlled allocation requests will be
denied allocation and an associated message will be displayed. Also, the job will receive an
operating system message about the volume not being available.