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

Data Archive Reference

Verify the integrity of the archive files

  • Last UpdatedJan 13, 2023
  • 1 minute read

In cases of hardware failure, record chains can become inconsistent. To examine broken pointers and verify archive integrity, use the archive check utility. Run this command on unregistered archive files or when the server is inactive.

  1. At a command prompt, go to the PI\adm directory.

  2. Type the command: pidiag -archk path

    Where path is the full path to the archive.

    Note: You can specify the optional complete parameter, as in: pidiag -archk path complete, to include details about each record in the report, including the start time, number of events, and fill ratio of the data record.

    The command generates a report that displays:

    • List of points sorted by record number (RecNo)

    • Number of index records (indices)

    • Number of data records

    • Count of events in all records and the average fill ratio (fr)

      The archive offline utility, piarchss, repairs any record chaining problem. For details, see Offline archive file management with piarchss.

Points receiving events in order with no edits or remove events typically have a fill ratio close to 100%.

Note: Since the last record in a chain is rarely full, the fill ratio is rarely at exactly 100%.

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