Reinitialize manually
- Last UpdatedOct 02, 2024
- 2 minute read
Before you begin, make sure that:
-
A valid PI mapping exists on the primary server. A valid mapping allows you to use the piartool command to register a secondary server certificate if it has been modified.
For more information on the piartool command, see the PI Data Archive topic piartool command-line options.
If you use Collective Manager, you can manually initialize or reinitialize each secondary server in your Data Archive collective.
Note: For Data Archive versions 2017 and later, the version of the primary member must match the version of the secondary member.
-
Stop the secondary Data Archive server.
-
From a command prompt, change directory to the \pi\adm directory.
-
Stop the Data Archive server with the command: pisrvstop.bat.
-
-
On the primary Data Archive server:
-
From a command prompt, change directory to the \pi\adm directory.
-
Run the command piartool -registerhacert -u:
piartool -registerhacert -u
-
In the \pi\adm directory, rename primarybackup.bat.ManualCollectiveReinit to primarybackup.bat.
-
Initialize a secondary Data Archive server.
If you are initializing a secondary server for the first time, run the command:
primarybackup.bat -init NUM
If you are reinitializing a secondary server, run the command:
primarybackup.bat -reinit NUM
For both commands NUM is the number of archives to include.
-
-
On the secondary member of the collective:
-
Copy the backup from the primary to the secondary node.
-
In the \pi\adm directory, rename secondaryrestore.bat.ManualCollectiveReinit to secondaryrestore.bat.
-
From a command prompt, change directory to the \pi\adm directory.
-
Use the secondaryrestore.bat command to restore the backup.
secondaryrestore.bat -source c:\myprimarybackup –arc MYARCDIR
where MYARCDIR is the archive directory on your secondary node.
-
If archives on the secondary member are located at a different location than archives on the primary member, create a new archive registration file using the following command. If archives are located at the same location on the secondary member as the primary member, skip this step.
pidiag -ar <path_to_primary_archive>
The archive registration file is called piarstat.dat.
-
Start the secondary server with the pisrvstart.bat command.
-
Register the certificates between the secondary and the primary server by running the following command:
piartool -registerhacert -u
-
Manually register any archives that are not registered after reinitialization. Use the piartool -ar command to manually register those archives.
-