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

Data Archive Reference

Set maximum file size or maximum number of points for a dynamic archive

Set maximum file size or maximum number of points for a dynamic archive

  • Last UpdatedJan 13, 2023
  • 1 minute read

To set a limit on the file size (maxsize) or the number of points (maxpoints) of a dynamic archive, use piarcreate or piartool. (You cannot perform this operation using PI SMT.)

  • Use piartool to create and register a dynamic archive file and set the maxpoints and maxsize values using the following syntax:

    piartool –acd path maxpoints maxsize

  • Use piarcreate to create a new archive file and set the maxpoints and maxsize values using the following syntax:

    piarcreate –d path maxpoints maxsize

  • For example:

    C:\PI\adm>piarcreate -d D:\PI\dat\piarch.115 2000 20000
    Attempting to create a 2000 record, dynamic archive: D:\PI\dat\piarch.115 with a maximum size of 20000 Mbytes.
    Initializing archive file: D:\PI\dat\piarch.115
    Archive D:\PI\dat\piarch.115 is prepared to be registered

  • Use piarcreate to change the maxpoints parameter:

    G:\pi\adm>piarcreate -?
    Usage: piarcreate -v

    piarcreate -d path maxpoints maxsize(Mb)
    piarcreate path size(Mb)

  • The following listing is for a 2048 MB archive; the maximum number of configurable points for the archive is 1,048,576 (half the total number of records).

    D:\PI\adm>piartool -al
    Archive shift prediction:
    Shift Time: 5-Oct-05 19:42:01
    Target Archive: e:\pi\arc\piarch-2GB.1
    Archive[0]: e:\pi\arc\piarch-2GB.3 (Used: 53.4%)
    PIarcfilehead[$Workfile: piarfile.cxx $ $Revision: 101 $]::
    Version: 7 Path: e:\pi\arc\piarch-2GB.3
    State: 4 Type: 0 Write Flag: 1 Shift Flag: 1
    Record Size: 1024 Count: 2097152 Add Rate/Hour: 154207.3
    Offsets: Primary: 253063/1048576 Overflow: 1231270/2097152
    Annotations: 1/65535 Annotation File Size: 2064
    Start Time: 5-Oct-05 06:11:09
    End Time: Current Time
    Backup Time: Never
    Last Modified: 5-Oct-05 13:26:21

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