Skip Headers
Oracle Hierarchical Storage Manager and QFS Software Command Reference
Section 1m: Maintenance Commands
Release 6.1.1
E70305-03

NAME

archive_audit - Generate an archive audit

SYNOPSIS

∕opt∕SUNWsamfs∕sbin∕archive_audit [ -f audit_file ] [ -V ] [ -d ] [ -c archive_copy_number ]… root_path

AVAILABILITY

SUNWsamfs

DESCRIPTION

archive_audit generates an audit of all archived files and removable media files (excluding archiver and stager removable media files, and removable media files created for disaster recovery which have not yet been referenced) in the Oracle HSM directory root_path by media type and VSN. The audit results are written to the VSN audit file. An optional summary of all archive VSNs is written to standard output.

Note that archive_audit will not be able to distinguish removable media files used by the stager daemon in file systems which have been created in systems prior to version 4.0 and upgraded, so these sizes will be counted in the totals. Also, removable media files created by a user for disaster recovery purposes may duplicate space on a volume assigned to an archive copy, in which case the space will be accounted for twice.

OPTIONS

-c archive_copy_number

Only archive copies for the indicated archive_copy_number will be examined. Multiple -c archive_copy_number options may be given; then archive copies for any of the archive_copy_numbers will be examined.

-d

Only damaged archive copies are listed in the VSN audit file.

-f audit_file

The name of the VSN audit file. If -f is not specified, or if audit_file is "-", then the output is written to standard out. Archive_audit appends to the audit_file.

-V

Verbose. Write the optional summary to standard output. Each file is summarized in the following format:

media VSN n files, s bytes, d damaged copies.

Where media is the media type, VSN is the VSN, n is the number of files on that VSN, and s is the number of bytes of data archived on that VSN. d is the number of damaged archive copies on that VSN.

VSN AUDIT FILE

The VSN audit file contains a 1-line entry for each section on an archived file or removable media file. Each entry has this information:

media  vsn  status  copy  section  position  size  file  seg_num  disk_path

where:

EXAMPLE

The following is an example of an entry in the archive_audit audit file:

   lt\0DLT000\0----\01\00\04ffd.9fa5e\0169643\0∕sam5∕QT∕rainbow.sgi\06

EXIT STATUS

The following exit values are returned:

0

Audit completed successfully.

6

Nonfatal: An issue encountered with rootpath's filename or the path.

7

Nonfatal: Closing of a subdirectory under the rootpath failed.

10

Nonfatal: sam_segment_vsn_stat for a file failed.

11

Nonfatal: sam_vsn_stat for a file failed.

12

Nonfatal: sam_readrminfo for a file failed.

13

Nonfatal: idstat for a file failed.

14

Nonfatal: getdent for a directory failed.

15

Nonfatal: Invalid segment size for a file encountered.

30

Fatal: Command line argument errors.

31

Fatal: Audit file issues were encountered.

32

Fatal: An issue with the root path or a subdirectory was encountered.

35

Fatal: Malloc errors terminated archive_audit.

SEE ALSO

sam-archiverd (1m), mcf (4)