Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Data Archive Administration

Recovery of a non-primary archive

  • Last UpdatedOct 02, 2024
  • 1 minute read

To recover the data from a corrupted non-primary archive, run piarchss, specifying the corrupted archive as the input file and a non-existing file as the output file. By default, the start and end times of the input archive are used as the start and end times of the newly created output archive.

It is possible to recover the data in a non-primary archive while Data Archive is still archiving data. The offline archive utility unregisters the archive during the recovery operation.

Here is an example command to recover a non-primary archive:

$ ../bin/piarchss -if /export/PI/dat/piarch.001 -of piarch1.fix -f 0
...First pass...
...Sorting input archive...
...Output pass...
676 Loaded in 2( 1 + 1 ) Seconds 338 Event/Sec.
739 Archive Total seconds - ratio: 369

In this example, the piarch1.fix file does not exist prior to the operation. It is created as a fixed archive the same size as the input archive because the -f 0 option was specified. After it is created, it can be registered using the piartool -ar command, and then data events can be added to the archive in the usual way.

If the input file is registered prior to the recovery, it is unregistered during the operation. You must register the input file when the recovery is complete.

TitleResults for “How to create a CRG?”Also Available in