![]() |
![]() |
Use this command to check for inconsistencies between database information and a storage pool volume. You can only audit volumes that belong to storage pools with DATAFORMAT=NATIVE. During the audit, the server sends processing information to the activity log and the server console.
You cannot audit a volume if it is being deleted from a primary or copy storage pool.
While an audit process is active, clients cannot restore data from the specified volume or store new data to that volume.
If the server detects a file with errors, handling of the file will depend on the type of storage pool to which the volume belongs, whether the FIX option is specified on this command, and whether the file is also stored on a volume assigned to other pools.
If TSM does not detect errors for a file that was marked as damaged, the state of the file is reset so that the file can be used.
To display information about the contents of a storage pool volume, use the QUERY CONTENT command.
To audit multiple volumes, you can use the FROMDATE and TODATE parameters, or use the STGPOOL parameter to audit all volumes in a storage pool. When you use the parameters FROMDATE, TODATE, or both, the server limits the audit to only the sequential media volumes that meet the date criteria, and automatically includes all online disk volumes in storage. To limit the number of volumes that may include disk volumes, use the FROMDATE, TODATE, and STGPOOL parameters.
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, unrestricted storage privilege, or restricted storage privilege for the storage pool to which the volume is defined.
Syntax
.-Fix--=--No------.
>>-AUDit Volume--+-volume_name-+--+-----------------+----------->
'-| A |-------' '-Fix--=--+-No--+-'
'-Yes-'
.-SKIPPartial--=--No------. .-Quiet--=--No------.
>--+-------------------------+--+-------------------+----------><
'-SKIPPartial--=--+-No--+-' '-Quiet--=--+-No--+-'
'-Yes-' '-Yes-'
A (at least one of these parameters must be specified)
|--+-----------------------------+------------------------------>
| (1) |
'--------STGPool--=--poolname-'
(1) (1)
.--------FROMDate--=--TODAY-. .-TODate--=--TODay------.
>--+---------------------------+--+-----------------------+-----|
'-FROMDate--=----date-------' '-TODate--=----date-----'
Notes:
Parameters
The actions the server performs depend on whether the volume is assigned to a primary or a copy storage pool.
Primary Storage Pool:
Copy Storage Pool:
Unless you specify SKIPPARTIAL=YES, TSM attempts to process each file stored on the volume, including files that span into and out of other volumes. To audit files that span multiple volumes, the following conditions must be true:
You can specify the data by using one of the values below:
| Value | Description | Example |
|---|---|---|
| MM/DD/YYYY | A specific date | 10/15/2001
If a date is entered, all candidate volumes written on that day (starting at 12:00:01 am) will be evaluated. |
| 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 -7 or -7.
To display information beginning with volumes written a week ago, you can specify FROMDATE=TODAY-7 or FROMDATE= -7. |
You can specify the date by using one of the values below:
| Value | Description | Example |
|---|---|---|
| MM/DD/YYYY | A specific date | 10/15/2001
If a date is entered, all candidate volumes written on that day (ending at 11:59:59 pm) will be evaluated. |
| 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-1 or -1.
To display information created up to yesterday, you can specify TODATE=TODAY-1 or simply TODATE= -1. |
Examples
Task
Verify that the database information for storage pool volume PROG2 is consistent with the data stored on the volume. TSM fixes any inconsistencies.
Task
Verify that the database information for all eligible volumes written to from 3/20/2002 to 3/22/2002 is consistent with data stored on the volume.
Task
Verify that the database information for all volumes in storage pool STPOOL3 is consistent with data stored on the volume for today.
Task
Verify that the database information for all volumes in storage pool STPOOL3 is consistent with data stored on the volume for the last two days.
Related Commands
Table 16. Commands Related to AUDIT VOLUME
| Command | Description |
|---|---|
| CANCEL PROCESS | Cancels a background server process. |
| QUERY CONTENT | Displays information about files in a storage pool volume. |
| QUERY PROCESS | Displays information about background processes. |
| QUERY VOLUME | Displays information about storage pool volumes. |