Checking volumes into a full library with swapping

If no empty slots are available in the library when you are checking in volumes, the check-in operation fails unless you enable swapping. If you enable swapping and the library is full, the server selects a volume to eject and then checks in the volume that you requested.

About this task

The server selects the volume to eject by checking first for any available scratch volume, then for the volume that is least frequently mounted. The server ejects the volume that it selects for the swap operation from the library and replaces the ejected volume with the volume that is being checked in.

Procedure

To swap volumes if an empty library slot is not available to check in a volume, issue the CHECKIN LIBVOLUME command and specify the SWAP=YES parameter.
For example, to check in a volume that is named VOL1 into a library that is named AUTO and specify swapping, issue the following command:
checkin libvolume auto vol1 swap=yes