6.5 HP StoreAll OS User Guide

Following is a sample validation summary file:
# cat /fsIbrix/.archiving/validation/history/4-0.sum
JOB_ID=4
FILESYSTEM_NAME=fsIbrix
FILESYSTEM_MOUNT_DIR=/fsIbrix
PATH=/fsIbrix/./directory90
SCANTYPE=hashsum
CREATE_TIME=Wed Jul 18 05:18:12 2012
START_TIME=Wed Jul 18 05:18:12 2012
KICKOFF_TIME=Wed Jul 18 05:18:12 2012
STOP_TIME=Mon Jul 23 14:36:59 2012
NUM_JOB_ERRORS=0
NUM_FILES_VALIDATED=1000000
NUM_FILES_SKIPPED=0
NUM_CONTENT_INCONSISTENCIES=0
NUM_METADATA_INCONSISTENCIES=0
#
Viewing and comparing checksums for a file
If a validation scan summary file reports inconsistent checksums for a file and you want to investigate
further, use the showsha (SHA test utility) and showmbhash (Validation Express Query lookup
utility) commands to compare the current checksums with the checksums that were originally
calculated for the file.
The showsha command calculates and displays the checksums for a file. For example:
# /usr/local/ibrix/sbin/showsha rhnplugin.py
Content hash: da39a3ee5e6b4b0d3255bfef95601890afd80709
Meta hash: e1a4256d01b86709ff58a768ddf730b60f31fb03
The showmbhash command displays the checksums stored for the file. For example:
# /usr/local/ibrix/sbin/showmbhash rhnplugin.py
File System: fs
PATH: /fs/rhnplugin.py
Poid 4295128750:1481149679
Retention State:(3) WORM RETAINED
Retention Expiration: Sun Jan 19 03:23:47 2014
Last Attempted Validation Scan: NONE
Last Successful Validation Scan: NONE
Content Hash: da39a3ee5e6b4b0d3255bfef95601890afd80709
Meta Hash: e1a4256d01b86709ff58a768ddf730b60f31fb03
In this example, the checksums match and there are no inconsistencies. NONE in Last Attempted
Validation Scan and Last Successful Validation Scan in the showmbhash output mean than the
file has not yet been validated.
Handling validation scan errors
When a validation scan detects files having hash values inconsistent with their original values, it
displays an alert in the events section of the Management Console. However, the alert lists only
the first inconsistent file detected. It is important to check the validation summary report to identify
all inconsistent files that were flagged during the scan.
When there are inconsistencies, it is necessary to determine whether the cause is file corruption
or checksum corruption. Compare the file checksum with the backup file:
/usr/local/ibrix/sbin/showsha <fileFromBackup>
288 Managing data retention