Troubleshooting
Problem
A scratch volume is checked in a Tivoli Storage Manager library but after some time, the volume status is changed from scratch to private.
Diagnosing The Problem
A volume that is use by Tivoli Storage Manager is changed from scratch to private status. The volume may validly have been used to store client data. The following command can be used to verify if the volume has been used to store client backup/archive data.
query volume {volume_name}
If the volume has not been used for client data, it will return the following error:
ANR2034E QUERY VOLUME: No match found using this criteria.
ANS8001I Return code 11.
The volume may also have validly been used as a Tivoli Storage Manager database backup volume. The following commands can be used to verify this :
query volhis type=dbb
query volhis type=dbs
The volume may also have validly been used as a backupset volume or export volume. The following command can be used to verify this :
select * from volhistory where volume_name='XXX'
In above command, replace XXX with the volume name in uppercase.
If the volume is not in use by the Tivoli Storage Manager server and yet the volume status is changed to "private", then it would indicate the tape volume is not labelled correctly. The following errors will be recorded in the Tivoli Storage Manager server activity log :
ANR8355E I/O error reading label for volume {volume_name} in drive {drive_name}.
ANR8778W Scratch volume {volume_name} changed to Private Status to prevent re-access.
Resolving The Problem
In the case where the tape volume does not have a label and fails with the above ANR8355E error, the following can be used to resolve this issue.
First, make sure the library is idle. Make sure that all volumes in all tape drives are dismounted. Then, run the following Tivoli Storage Manager administrative commands in the order below :
update library {library_name} autolabel=yesupdate libvol {library_name) {volume_name} status=scratch
If you do not wish to update your library definition with autolabel=yes, then you can run the following commands instead :
checkout libvol {library_name} {volume_name} remove=no checklabel=nolabel libvol {library_name} search=yes labelsource=barcode checkin=scratch vollist={volume_name}
Use the 'help {command}' administrative command to get the complete syntax for each command.
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21622531