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.
-
Stop PI Archive Subsystem.
-
Run piarchss and specify the parameters:
-
Output archive is fixed size ()
-
End time left open ()
-
-
After recovery:
-
Rename the old primary archive.
-
Rename the output file to the same path and filename of the original primary archive.
-
Restart PI Archive Subsystem.
-
Example of primary archive recovery
In this example, the 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 option was specified. The end time of the output archive is left open because the option was specified.