This topic provides an example of how to manage tape resources.
Each system in the following example reports two tape subsystems, or resources. These tape resources are connected to the tape library resource. In this example, the tape library resource is the 3494 Data Server. The 3494 Data Server then generates an automatic configuration of a device description for a media library device (MLD) . In this situation, any request to the tape library device (the 3494 Data Server) results in the tape library resource manager allocating which tape resource to use. This simplifies tape management tasks for most users because the system is responsible for the majority of those tasks.
The Work with Media Library Status (WRKMBLSTS) command allows you to view the tape libraries and associated tape resources from a configuration standpoint. Using this command on each of the three systems in the example results in the following displays:
There are three possible values for the allocation of each resource. Each value assumes that the tape library is varied on. The values are:
When a tape resource that is shared between systems is not in use, it should remain in an unprotected state with the tape library device varied on. If the tape resource is left in an allocated or deallocated state, a command request to use the resource might result in an error stating that no resources are available.
If you are using backup and recovery media services (BRMS), you should not use SHARED *YES for media libraries. Use UNPROTECTED to share your resources. You can also use a combination of UNPROTECTED and ALLOCATED on the network to ensure that each system has the correct device that is required for backup operations. Leave the tape libraries varied on at all times, and use the allocation status to control use.
One problem to consider in the example is the problem of cable limitations. One system can potentially prevent another from accessing tape resources even when one is available. The difference is in how a user can force a system to use a specific resource. The ways to force a system to use a specific resource are:
One method of resolving this problem is to manipulate the start times of save operations on each system. In the example, system A and system B are contending for tape resource TAP01. Start the save operation on system B to ensure that system B has access to a tape resource.
The following table shows how the strategy chart appears if this method is used in the example.
Start time | Approximate complete time | Backup group | System | Device | Tape resource forced |
---|---|---|---|---|---|
10:05 p.m. | 1:00 a.m. | 2 | A | TAPMLB01 | TAP01 (TAP02 is busy on system C) |
10:00 p.m. | 11:00 p.m. | 5 | C | TAPMLB01 | TAP02 |
11:00 p.m. | 1:00 a.m. | 6 | C | TAPMLB01 | TAP02 |
1:05 a.m. | 6:00 a.m. | 1 | A | TAPMLB01 | TAP02 (TAP01 is busy on system B) |
1:00 a.m. | 4:00 a.m. | 3 | B | TAPMLB01 | TAP01 |
4:00 a.m. | :00 a.m. | 4 | B | TAPMLB01 | TAP01 |
Because ALLOCATED resources are selected for use before UNPROTECTED resources, you can use this aspect to your advantage. A user exit (the *EXIT special value) is a user-defined CL command that permits automatic processing of predefined user routines. On system A in the example, you can use the *EXIT special value in the BRMS control group to change TAP02 from UNPROTECTED to ALLOCATED. The next save request then attempts to access TAP02 first. When the save operation is completed, you use the *EXIT special value at the end of the control group to change the resource back from ALLOCATED to UNPROTECTED. For more information about the *EXIT special value, see Backup Recovery and Media Services for iSeries™.
In order to accomplish this in the example, keep all the resources in UNPROTECTED status and change two backup groups. In this situation, you are only concerned about systems that are attached to more than one resource. Only systems that are attached to more than one resource can produce a resource access conflict. In this example, the system that is attached to more than one resource is System A, in Table 1. System A belongs to backup group 1 and backup group 2.
The following table shows how the strategy table appears if this method is used in the example.
Start time | Approximate complete time | Backup group | System | Device | Tape resource forced |
---|---|---|---|---|---|
10:00 p.m. | 1:00 a.m. | 2 | A | TAPMLB01 | TAP01 |
10:00 p.m. | 11:00 p.m. | 5 | C | TAPMLB01 | TAP02 |
11:00 p.m. | 1:00 a.m. | 6 | C | TAPMLB01 | TAP02 |
1:00 a.m. | 6:00 a.m. | 1 | A | TAPMLB01 | TAP02 (TAP01 is busy on system B) |
1:00 a.m. | 4:00 a.m. | 3 | B | TAPMLB01 | TAP01 |
4:00 a.m. | 6:00 a.m. | 4 | B | TAPMLB01 | TAP01 |
You can also use the multiple tape library device descriptions that are created when a tape library is configured. As each tape resource in a tape library reports to the iSeries server, a separate tape library description might be created. Typically, you should use one TAPMLB xx and assign all the tape resources to it. However, system A in the example differs from this. The following display shows the configuration that is generated on system A.
After the command CFGDEVMLB(TAPMLB01) is completed, you can see both resources under TAPMLB01, even though TAP02 actually generated TAPMLB02. Both resources are set to UNPROTECTED.
If you varied on TAPMLB02, it also recognizes TAP01 and TAP02. However, because only one tape library can use a resource, TAP01 and TAP02 must to be set to DEALLOCATED in TAPMLB02, as is shown on the following display.
In order to use the TAPMLB02 device description, you set TAP01 to UNPROTECTED in TAPMLB01 and you set TAP02 to UNPROTECTED in TAPMLB02, as is shown in the following display.
The following table shows how the strategy chart appears if you use this method in the example.
Start time | Approximate complete time | Backup group | System | Device | Tape resource forced |
---|---|---|---|---|---|
10:00 p.m. | 1:00 a.m. | 2 | A | TAPMLB01 | TAP01 |
10:00 p.m. | 11:00 p.m. | 5 | C | TAPMLB02 | TAP02 |
11:00 p.m. | 1:00 a.m. | 6 | C | TAPMLB02 | TAP02 |
1:00 a.m. | 6:00 a.m. | 1 | A | TAPMLB02 | TAP02 |
1:00 a.m. | 4:00 a.m. | 3 | B | TAPMLB01 | TAP01 |
4:00 a.m. | 6:00 a.m. | 4 | B | TAPMLB01 | TAP01 |