Cleaning up corrupted buffer and storage sub systems of an OSI PI Historian Server

by Klaus Graefensteiner 23. June 2011 03:30

Introduction

A distributed OSI PI Historian is a like a sensitive musical instrument. A little knock here, exposure to the sun there and some excessive humidity can render it out of tune. In the OSI PI case working with VMWare snapshots, not properly shutting down the storage sub system or remote data collection interface and having the computer clocks not synchronized can corrupt the buffer, cache and archive files. Luckily there is an easy fix for it that is also documented in the user guides:

Historian Server System Management Guide.pdf (Page 48)

Historian Buffer Subsystem User's Guide.pdf (Page 15)

Disclaimer

This blog post summarizes the necessary steps that you can try to hopefully get your historian working again. Data loss in this particular situation is un-avoidable. Make sure to make backups of everything. E.g. create a VMWare snapshot of your server and interface system. Practice and test these procedures first on a development system. Consult technical support before using this procedure on a production system, because they might be able to get your system going again without loss of data.

Cleaning up the server

On the server first stop the PI Snapshot Subsystem and PI Archive Subsystem services.

ArchiveAndSnapshotServices

Figure 1: Stop Archive and Snapshot subsystems

Then in your Server\PI\dat folder rename the event queue file called pimapevq.dat to e.g. pimapevq.save.

Rename Event Files

Figure 2: Rename your event queue file pimapevq.dat

Next start the Archive and Snapshot Subsystem services again.

Cleaning up the Interface and Buffer machine

On the Interface and Buffer machine stop all services that start with PI*. (See screenshot below)

Stop Buffer and network services

Figure 3: Stop all PI* services

Then stop all services that start with FTLD*. (See screenshot below). If you have other interface types configured, then of course stop the appropriate services as well.

Stop Interface Services

Figure 4: Stop all FTLD* services

Then navigate to the Server\PIPC\DAT folder and delete the following files:

  • pibufmem.dat
  • pidigst.dat
  • pidignam.dat
  • pibufq_servername.dat
  • pibufq_servername.####.dat

See the screenshot below for the purpose of each file.

BufferSubsystemFiles

Figure 4: Buffer subsystem files

Next reboot the Interface and Buffer subsystem computer. Your historian should be storing values again.

Ausblick

I hope these steps are going to  work for you.

Tags: , , , , , ,

Rockwell | Tips & Tricks | Automation

Comments are closed

About Klaus Graefensteiner

I like the programming of machines.

Add to Google Reader or Homepage

LinkedIn FacebookTwitter View Klaus Graefensteiner's profile on Technorati
Klaus Graefensteiner

Klaus Graefensteiner
works as Developer In Test and is founder of the PowerShell Unit Testing Framework PSUnit. More...

Open Source Projects

PSUnit is a Unit Testing framwork for PowerShell. It is designed for simplicity and hosted by Codeplex.
BlogShell is The tool for lazy developers who like to automate the composition of blog content during the writing of a blog post. It is hosted by CodePlex.

Administration

About

Powered by:
BlogEngine.Net
Version: 1.6.1.0

License:
Creative Commons License

Copyright:
© Copyright 2012, Klaus Graefensteiner.

Disclaimer:
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Theme design:
This blog theme was designed and is copyrighted 2012 by Klaus Graefensteiner

Rendertime:
Page rendered at 5/17/2012 3:13:14 PM (PST Pacific Standard Time UTC DST -7)