Synchronize the new primary with PI AF server
- Last UpdatedOct 02, 2024
- 2 minute read
- PI System
- PI Server 2018
- PI Server
When you create a new primary server, it must be synchronized with the PI AF server.
Note: Only the primary Data Archive is synchronized with the PI AF server.
-
Stop the PI AF Link Subsystem service on the new primary Data Archive.
-
Note the Log On As user for the PI AF Link Subsystem service (this is the piaflink user).
-
Open a command window, navigate to the ..\PI\bin directory, and type:
piaflink -fixafmdbmap
-
Give the piaflink user read-write permissions to the pimdbafmapping.dat file in the ..\PI\dat folder.
-
If the piaflink user is a domain account and the same user that ran PI AF Link Subsystem on the old primary Data Archive, then skip the next two steps.
-
If PI AF server is on a different machine than the new primary Data Archive:
-
On the PI AF server computer, find the local Windows group with the name "AF Link to PI-Old Server" where Old Server is the name of the old primary Data Archive.
-
Rename this local Windows group to "AF Link to PI-New Server" where New Server is the name of the new primary Data Archive.
-
If the aflink user is a domain account, then add the aflink user as a member of this local Windows group.
-
If the aflink user is Network Service, then add the machine account name of the new primary Data Archive as a member of this local Windows group.
-
If the aflink user is a local user on the new primary Data Archive machine, then create the same user with the same password on the AF Server machine and add that local user to the local group on the AF Server machine.
-
-
If PI AF server is on the same machine as the new primary Data Archive:
-
Find the local Windows group with the name "AF Link to PI-Old Server" where Old Server is the name of the old primary Data Archive.
-
Rename this local Windows group to "AF Link to PI-New Server" where New Server is the name of the new primary Data Archive.
-
Add the aflink user as a member of this local Windows group.
-
-
Start the PI AF Link Subsystem service on the new primary Data Archive.