![]() |
![]() |
Use this command to delete volume history file records that are no longer needed (for example, records for obsolete database backup volumes).
When you delete records for volumes that are not in storage pools (for example, database backup or export volumes), the volumes return to scratch status even if TSM acquired them as private volumes. Scratch volumes of device type FILE are deleted. When you delete the records for storage pool volumes, the volumes remain in the TSM database. When you delete records for recovery plan file objects from a source server, the objects on the target server are marked for deletion.
Notes:
Privilege Class
To issue this command, you must have system privilege.
Syntax
>>-DELete VOLHistory--TODate--=--date--+-----------------+------>
'-TOTime--=--time-'
>--Type--=--+-All---------------------------------------+------><
+-DBBackup--+------------------------+------+
| '-DEVclass--=--classname-' |
+-DBSnapshot--+------------------------+----+
| '-DEVclass--=--classname-' |
+-DBDump------------------------------------+
+-DBRpf-------------------------------------+
+-EXPort------------------------------------+
| .-DELETELatest--=--No------. |
+-RPFile--+--------------------------+------+
| '-DELETELatest--=--+-No--+-' |
| '-Yes-' |
| .-DELETELatest--=--No------. |
+-RPFSnapshot--+--------------------------+-+
| '-DELETELatest--=--+-No--+-' |
| '-Yes-' |
+-STGNew------------------------------------+
+-STGReuse----------------------------------+
'-STGDelete---------------------------------'
Parameters
| Value | Description | Example |
|---|---|---|
| MM/DD/YYYY | A specific date | 01/23/1999 |
| TODAY | The current date | TODAY |
| TODAY-days or -days | The current date minus days specified. The maximum number of days you can specify is 9999. | TODAY-30 or -30.
To delete records that are 30 or more days old, you can specify TODAY-30 or simply -30. |
| Value | Description | Example |
|---|---|---|
| HH:MM:SS | A specific time on the specified date | 12:30:22 |
| NOW | The current time on the specified date | NOW |
| NOW+HH:MM or +HH:MM | The current time plus hours and minutes on the specified date | NOW+03:00 or +03:00.
If you issue the DELETE VOLHISTORY command at 9:00 with TOTIME=NOW+03:00 or TOTIME=+03:00, TSM deletes records with a time of 12:00 or earlier on the specified date. |
| NOW-HH:MM or -HH:MM | The current time minus hours and minutes on the specified date | NOW-03:30 or -03:30.
If you issue the DELETE VOLHISTORY command at 9:00 with TOTIME=NOW-3:30 or TOTIME=-3:30, TSM deletes records with a time of 5:30 or earlier on the specified date. |
A full, incremental, or snapshot database backup volume is eligible to be deleted if all of the following conditions are met:
A full, incremental, or snapshot database backup volume is eligible to be deleted if all of the following conditions are met:
This parameter can only be used to delete volume history entries of type RPFILE (for instance, those recovery plan files that were created using the DEVCLASS parameter with the PREPARE command). If this parameter is not specified, the latest RPFILE entries are not deleted.
This parameter can only be used to delete volume history entries of type RPFSNAPSHOT (for instance, those recovery plan files that were created using the DEVCLASS parameter with the PREPARE command). If this parameter is not specified, the latest RPFSNAPSHOT entries are not deleted.
Examples
Task
Delete all recovery plan file information created on or before 03/28/1998.
Related Commands
Table 123. Commands Related to DELETE VOLHISTORY
| Command | Description |
|---|---|
| BACKUP VOLHISTORY | Records volume history information in external files. |
| DEFINE SCHEDULE | Defines a schedule for a client operation or an administrative command. |
| DELETE VOLUME | Deletes a volume from a storage pool. |
| PREPARE | Creates a recovery plan file.. |
| QUERY RPFILE | Displays information about recovery plan files. |
| QUERY VOLHISTORY | Displays sequential volume history information that has been collected by the server. |
| EXPIRE INVENTORY | Manually starts inventory expiration processing. |
| MOVE DRMEDIA | Moves DRM media onsite and offsite. |
| SET DRMRPFEXPIREDAYS | Set criteria for recovery plan file expiration. |
| SET DRMDBBACKUPEXPIREDAYS | Specifies criteria for database backup series expiration. |