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

Data Archive Administration

Recover a primary archive

  • Last UpdatedOct 02, 2024
  • 1 minute read

Data Archive cannot archive data during the recovery process if the corrupted archive is the primary archive. Because a primary archive cannot be unregistered, to recover it you must either:

  • Stop PI Archive Subsystem

  • Force a shift so that the archive is no longer the primary archive

To force a shift, use the piartool -fs command.

  1. Stop PI Archive Subsystem.

  2. Run piarchss and specify the parameters:

    • Output archive is fixed size (-f 0)

    • End time left open (-oet Primary)

  3. After recovery:

    1. Rename the old primary archive.

    2. Rename the output file to the same path and filename of the original primary archive.

    3. Restart PI Archive Subsystem.

Example of primary archive recovery

In this example, the Failed to unregister input archive message may be ignored. It occurs because PI archive subsystem was stopped prior to recovery.

$ ../bin/piarchss -if /export/PI/dat/piarch.005 -of piarch.005.fix
-f 0 -oet 0
...First pass...
...Sorting input archive...
Failed to unregister input archive: [-10733] PINET: RPC Resolver is Off-Line
Archive utility not running - or archive not registered
Continue processing...
...Output pass...
1084 Loaded in 2( 0 + 2 ) Seconds 542 Event/Sec.
1038 Archive Total seconds - ratio: 519

In this example, the piarch.005.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. The end time of the output archive is left open because the -oet 0 option was specified.

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