How-to
Merge two historian servers' history blocks without tiering
Short answer
Yes — consolidate the two archives on one server by copying every history block that exists on only one server into the other's archive, repairing internal TagID lookup with the source taginfo.dat where names match but history stays missing, and moving any day both servers cover through CSV export and import. The destination should run the same historian release as the source or newer, 2017 or later.
On this page
Yes — the two archives can be consolidated onto one server with no tiered historian in between. Copy every history block that exists on only one server into the other server's archive without overwriting anything already there, then move any day both servers cover through CSV export and import. That block copy is the migration path for recent releases, Historian 2017 or later, with the destination on the same release as the source or a newer one when they differ.
The trap that decides whether the merged history answers queries is internal: history blocks key their records on TagIDs, not tag names, so a rebuilt server can hold blocks its own tags cannot find until the source taginfo.dat is copied in. Work the merge in that order — releases, overlap, blocks, tag repair, CSV, acceptance.
Check both archives before copying anything #
- Record the Historian release on each server. Identical releases are the clean case; when they differ, the destination must be the newer one. In this split the server that already holds the growing archive is the natural destination as long as it meets that rule — choose by release, not by server number.
- Inventory the history blocks on each server by directory name, start time and end time, and inventory the auto-summary blocks separately. Blocks hold the raw tag data, often years of it, organized by day — one or more files per day — so the directories, not phrases like 'through June', define the real boundaries.
- Mark every block whose time range also exists on the other server, and note which server holds the records you must keep for each overlapping range.
- Back up the destination archive and its tag-information files before any change, and leave the source archive untouched until the merge passes acceptance. That untouched source is the rollback.
Copy the nonoverlapping history blocks #
- Never copy the active history block — the block for the current day — from a server that is still collecting; it holds a partial day. Server 1 stopped collecting in June 2024, so every restored block on it is closed and copyable.
- Copy each selected source block directory into the destination's configured archive location, such as its circular storage location, and let nothing overwrite an existing destination block. Transferring the old server's block files and then exporting whatever cannot move as blocks is the vendor's suggested migration method.
- Treat a directory-name collision as a stop condition. Both servers hold a block covering that range: keep the destination block, compare contents and time coverage, and put the samples you still need from that range into the CSV set.
- Query a few representative tags for the copied range directly against the destination. If values return under the right names, the TagIDs already line up and no repair step is needed.
Repair tag lookup when the TagIDs differ #
Blocks store their records under internal TagIDs. A freshly built server can assign different IDs to the same tag names, so the copied blocks hold identities the destination configuration does not know, and queries over that range come back empty even though the files are in place. The repair brings the source's tag information across with the source's blocks. The paths below show the form, not installation defaults — use the locations your archive configuration names.
- Take taginfo.dat from the support directory on the same source server the blocks came from: C:\Historian\Data\Support\taginfo.dat in the example layout.
- Place that file in the destination's most recent history block directory — C:\Historian\Data\Circular\A241217_001 shows the form of one. Pick the newest block that actually exists on the destination, not by today's date.
- If auto-summary history also moved, copy auto-taginfo.dat from the same source support directory into the destination's most recent auto-summary block, at the location the auto-summary archive configuration gives.
- Restart the historian from its management console: use Shutdown (and disable), wait until it has stopped, then use Enable (allow to run). Plan that restart as an acquisition interruption and confirm collection resumes afterwards.
- Keep each tag-information file with the blocks it describes; substituting destination metadata does not repair a source identity mismatch.
| File | Comes from | Goes to |
|---|---|---|
| taginfo.dat | Source support directory, e.g. C:\Historian\Data\Support\ | Destination's most recent history block |
| auto-taginfo.dat | Same source support directory | Destination's most recent auto-summary block |
Move the overlapping days through CSV export and import #
Whole-block copying fails when the records you need sit in both servers' blocks for the same interval: dropping one block loses samples, overwriting the destination loses what it already holds. Those days travel as rows.
- Finish the block copy and any tag-information repair with the overlapping blocks excluded.
- Export the required overlapping range from the source server to CSV.
- Check the export for tag names, timestamps, values and the quality information the chosen format carries.
- Decide the duplicate rule — what happens when the same tag and timestamp exist on both servers — and test the destination's import behavior on a small trial range before loading production data.
- Import the CSV on the destination. Imported rows keep their source timestamps, under the same discipline as writing timestamped history back into a SCADA server.
- Spot-check values on both sides of each seam day.
Merging the June 2024 handover between two servers #
Server 1 stored the archive through June 2024; Server 2 has stored from June 2024 onward; the tag set is the same on both.
Inputs. Server 1's archive ends in June 2024 and Server 2's begins in June 2024, as the scenario states. Blocks are organized by day, one or more files per day. The inventory for this case shows Server 1's newest closed block covering 2024-06-30 and Server 2's oldest covering 2024-06-01, read from the directory names — the month labels alone are not boundaries.
Rule. A day copies as a block only when the other server holds no block for that day; any day present on both goes to the CSV set. Overlap in days = last shared day − first shared day + 1 day.
Arithmetic. The shared days run 2024-06-01 through 2024-06-30. June has 30 days, so the overlap is 30 − 1 + 1 = 30 days. The block copy set is every Server 1 block dated before 2024-06-01; the CSV set is the 30 day-blocks from 2024-06-01 through 2024-06-30.
Result. Server 1's pre-June blocks copy straight into Server 2's archive; June 2024 exports to CSV from Server 1 and imports into Server 2 as rows, under the duplicate rule fixed in the CSV procedure.
Decision. One shared day is enough to route that day to CSV. Here 30 ≥ 1, so June 2024 goes through export and import rather than block copy. Had the directories shown Server 2 starting 2024-07-01, the overlap would be 0 days and the whole merge would be pure block copy plus, where needed, the taginfo.dat repair.
Accept the merge, then retire the source #
- Query representative tags that exist on both systems across three windows: well before June 2024, inside June 2024, and after it. Values, timestamps and quality must match the source side in each window.
- Separate archive problems from client problems. If a direct historical query on the destination returns the merged range but an operator display does not, fix the display's server connection, tag binding and requested time range — not the archive.
- Repoint every client that must move. Saved trend files keep their own server references, and that step is the one covered for redirecting saved trend files to a new historian server.
- Keep Server 1's archive intact and read-only until acceptance passes, then retire it. If both servers must keep collecting through the transition, the parallel-collection pattern is the one described for running two Plant SCADA Historian connectors during migration.
- Once the retired server is out of service, the consolidated archive can also move onto new host hardware, where a fanless mini PC is the compact host class that carries a plant historian in a cabinet.
Questions asked
Can I overwrite a destination block with the source block for the same day?
No. Overwriting removes the history the destination already holds for that interval. A matching directory name means both servers have a block covering that range: keep the destination block, compare what each side contains, and move only the samples you still need from the source through CSV export and import.
Why does history stay missing after the blocks are copied, when the tag names match?
History blocks key their records on internal TagIDs, not tag names. A rebuilt server can assign new IDs to the same names, so its queries cannot find records stored under the old IDs. Copying taginfo.dat from the source support directory into the destination's most recent history block, then restarting the historian, restores the mapping.
Which server should be the destination for the merged archive?
The server running the same release as the source, or the newer of the two. Identical releases are the clean case. In a split where one server already holds the current, growing archive, that server is the natural destination when it meets the release rule, because the older archive then travels to it once.
Should the current day's block be copied too?
No. The active block is the one for the current day, and on a collecting server it holds a partial day; the block-migration guidance says plainly not to copy it. Let the day close, and take any samples you need from it through CSV export and import.
Does the block-copy method work on historian releases older than 2017?
The guidance this procedure follows is stated for recent releases, 2017 or later. Treat anything older as untested for block copying: upgrade the destination first, or move the archive as exported rows through the vendor's import tooling instead of as block files.