Schksum

From SRB

Contents

NAME

Schksum - Checksum SRB data files and/or collections.

SYNOPSIS

Schksum [-f|l|c|s] [-n replNum] [-rv] srbFile|collection ... TargetName

DESCRIPTION

Schksum performs checksum operation on one or more existing files stored in the SRB space. If a file contains multiple replicas, consistency of the checksum values across replicas will also be checked to ensure integrity across replicas. If the input is a collection and the -r option is specified, a recursive checksum will be carried out for all files in the collection and subcollections.

If no f|l|c option is specified, by default, it checks whether a checksum for this file already exists in MCAT. If it does, nothing will be done. If the checksum does not exist in MCAT, the server computes the checksum and registers it with MCAT.

The -c option puts the operation in verification mode. The server computes a checksum value based on the data stored in the SRB storage vault and compares it with the value registered with MCAT if a registered value exists. An error will be returned if they don't match.

The -f option forces the computation and registration of checksum regardless of the existence of the value in MCAT. The existing checksum is overwritten and no comparison is done between the newly computed and existing values.

The -l option lists the checkum values stored in MCAT. No computation of checksum is done. The -s option does not use the checksum value at all. Instead it compares the file size registered in the MCAT with the size stored in the SRB vault (e.g., for UNIX, the stat() call was made to get the the physical file size). It provides a quick check on the data integrity.

OPTIONS

-f
force mode. Forces the computation and registration of checksum.
-c
verification mode. Computes checksum without registering. Verifies newly computed values with the MCAT values.
-l
list mode. Lists the checkum values stored in MCAT.
-s
A quick check on data integrity using file size. The checksum value is not used at all.
-r
recursively checksum files in the collection and subcollections.
-v
verbose mode. Not relevant with the -l option.
-n
replNum checksum only the replica with replica number replNum.

SEE ALSO

Sget, Sput