Use the CHECKIN LIBVOLUME command to add a sequential access storage volume to ADSM's inventory for an automated library. The CHECKIN LIBVOLUME command informs the ADSM server that a volume is available for use. The server does not use any volumes that physically reside in an automated library until a volume has been checked in via the CHECKIN LIBVOLUME command.
If you include the DEVCONFIG option in the dsmserv.opt file, the files you specify with that option are automatically updated with the results of this command.
Note: | The CHECKIN LIBVOLUME command processing will not wait for a drive to become available, even if the drive is only in the IDLE state. A library drive must be made available, if necessary, by dismounting the drive with the DISMOUNT VOLUME command. Once a library drive is available, the CHECKIN LIBVOLUME command can be reissued. |
This command creates a background process that can be canceled with the CANCEL PROCESS command. To display information on background processes, use the QUERY PROCESS command.
Privilege Class
To issue this command, you must have system privilege or unrestricted storage privilege.
Syntax
(3) >>-CHECKIn LIBVolume--libraryname--volname----------------------> .-CHECKLabel--=--Yes--------------. >---STATus--=--+-PRIvate-+--+---------------------------------+-> '-SCRatch-' '-CHECKLabel--=--+-Yes---------+--' +-No----------+ | (3) | '-Barcode-----' .-SWAP--=--No-------. >----+-------------------+--VOLRange--=--+-volname1-+-----------> '-SWAP--=--+-No--+--' '-volname2-' '-Yes-' .-MOUNTWait--=--60---------------. >---+--------------------------------+--------------------------> '-MOUNTWait--=--mountwaitvalue---' .-SEARCH--=--No------------. >----+--------------------------+-------------------------------> '-SEARCH--=--+-No-------+--' +-Yes------+ | (2) | '-Bulk-----' (1) .-DEVType------=--CARTridge------. >----+--------------------------------+------------------------>< | (1) | '-DEVType------=--+-CARTridge-+--' '-3590------'
1 | The DEVTYPE parameter only applies to 349X libraries containing 3590 devices. |
2 | Do not enter a volume name when the SEARCH parameter equals yes. If a volume name is entered under this condition, an error is issued. |
3 | For SCSI libraries only, you should usually specify SEARCH= YES and no volume name. For performance reasons it is not recommended to mix volumes with barcode labels and volumes without barcode labels in a library device. |
Parameters
For optical volumes being checked into an automated library, you must take the default (CHECKLABEL=YES). ADSM must read the label to determine whether the volume is rewritable (OPTICAL device type) or write-once read-many (WORM device type). Possible values are:
Barcode is applicable to libraries with LIBTYPE=SCSI only. This option can only be used with SEARCH=YES.
To use the barcode reader for the CHECKIN LIBVOLUME command (with SEARCH=YES specified), include the parameter CHECKLABEL=BARCODE (abbreviated as CHECKL=B) in the command following the positional parameters. For example:
CHECKIN LIBVOL MYLIB SEARCH=YES STATUS=SCRATCH CHECKL=B
This parameter will cause a low-level audit of the library, including a barcode scan of all cartridges. The CHECKIN LIBVOLUME command will then use the barcode information as the label of the volume to check-in the cartridges.
This value for the CHECKLABEL parameter overrides the default value of YES, which has the result of loading each cartridge into a drive and reading the label directly from the tape media itself.
If the scanner is unable to read a given barcode label, or if a tape does not have a barcode label, the checkin will load that tape in a drive to read the label. This is consistent with the default action of these commands and is necessary for their proper operation.
It should also be noted that CHECKLABEL=NO is invalid for CHECKIN (with SEARCH=YES). The above barcode information applies to SCSI libraries, but does not apply to 3494-class libraries.
You can override swap processing by selecting a volume in the library and then explicitly issuing the CHECKOUT LIBVOLUME command prior to the CHECKIN LIBVOLUME command.
The prefix and suffix areas are optional. If they are used, they are identical alphanumeric characters between volname1 and volname2. Prefix area begins at the first character and ends at the first non-compare numeric character. The incremental area is numeric characters. The incremental area begins at the first non-compare character and ends at the next alpha character. The incremental numeric of volname2 must be greater than the numeric of volname1. The suffix area begins at the end of the incremental area. If all characters of volname1 and volname2 are identical, then all characters are prefix area and only one volume is in the range. The possible combination for volume ranges are: AnA, nA, An, n, or A.
A equals the prefix or suffix area where alphanumeric characters of volname1 and volname2 are identical.
n equals the numeric incremental area.
When VOLRange is specified, SEARCH=YES must also be specified.
You can override swap processing by selecting a volume in the library and then explicitly issuing the CHECKOUT LIBVOLUME command prior to the CHECKIN LIBVOLUME command.
If the library is shared between applications, be cautious when selecting this parameter. ADSM could examine a volume required by another application.
For SCSI libraries, the server scans all of the slots in the library for volumes that have not previously been checked in. If a volume meets this requirement and contains a valid volume label, it is checked in automatically.
For 349X libraries, the server queries the library control unit to determine all volumes that are assigned to the specified library's SCRATCH or PRIVATE category and all volumes that have just been inserted into the library's convenience or bulk I/O station. Each of these volumes is tested for a valid media label and then checked into the library automatically. For additional information about categories, see the DEFINE LIBRARY command and the ADSM Administrator's Guide.
For SCSI libraries, the server scans all of the Entry/Exit ports in the library for volumes. If a volume is found that contains a valid volume label, it is checked in automatically. Please note that the CHECKLABEL option NO is invalid with this SEARCH option. When using the CHECKLABEL=YES option, the volume is moved from the Entry/Exit ports to the drive where the label is read. After reading the label, the tape is moved from the drive to a storage slot. When using the CHECKLABEL=BARCODE, the volume's barcode is read and the tape is moved from the Entry/Exit port to a storage slot. For barcode support to correctly work, the ADSM device drivers must be installed for ADSM controlled libraries.
Usage Notes
When the server cannot find a volume it needs for a client operation in an automated library, the server will request that the volume be checked in. If the volume is available, check the volume in. If the volume is not available (for example, lost or destroyed), update the access mode of the volume to UNAVAILABLE by using the UPDATE VOLUME command. Cancel the server's request for check-in by using the CANCEL REQUEST command. (To get the ID of the request to cancel, use the QUERY REQUEST command.) Do not cancel the client process that caused the request.
Examples
Task
Check in the volume named WPDV00 into the library named AUTO.
Related Commands
Table 24. Commands Related to CHECKIN LIBVOLUME
Command | Description |
---|---|
AUDIT LIBRARY | Ensures that an automated library is in a consistent state. |
CHECKOUT LIBVOLUME | Checks a storage volume out of an automated library. |
DEFINE LIBRARY | Defines an automated or manual library. |
QUERY LIBRARY | Displays information about one or more libraries. |
QUERY LIBVOLUME | Displays information about a library volume. |
UPDATE LIBVOLUME | Changes the status of a storage volume. |