Database repair
- Last UpdatedOct 02, 2024
- 1 minute read
If PI Base Subsystem does not start due to a corrupted database, the log shows a message indicating this. If there is no such message, start PI Base Subsystem in interactive mode and observe the errors in the window. Database corruption is a relatively rare event. It is usually due to hardware failure or improper shutdown.
To repair all databases:
pibasess -copydb path
For example:
pibasess -copydb \pi\recovereddb
Following this command, the target path contains recovered copies of all the configuration databases. Corrupted records are eliminated and related messages displayed.
Before you copy the recovered database files back into this directory, make a backup copy of the \pi\dat\ directory.
After that, PI Base Subsystem should load all databases and work normally. The resulting files are slightly smaller than the originals as they are compacted in the process.