Summary
This article describes how to initialise various Forcefield queues.
NOTE: In all cases, the Forcefield node should be shut down from the Admin > Forcefield Shutdown menu item before running these commands.
HistoryMirror and DbMirror databases:
Fixing corruption of the HistoryMirror or DbMirror database, or "Mirror Buffer Limit Exceeded"
- Shut down Forcefield on the Mirror node first, from the Admin > Forcefield Shutdown menu item
- Then shut down Forcefield on the Primary node, from the Admin > Forcefield Shutdown menu item
- On the Primary node, now log in as Root: root
- - The default password is: 4346 (unless this has been changed by the site)
- Elevate to super user by typing: su (if you are asked for a password, enter 4346 again, or whatever the site has set)
Change to the mirror data folder by typing:cd /usr/ares/mirror/data
Now to reset the history mirror, type:initdb -y HistoryMirror
And then to reset the database mirror, type:initdb -y DbMirror
Once these are completed, you can then start Forcefield up again by typing:shutdown
Start the Mirror up again at the same time.
NOTE that these commands only needs to be run on the Primary node, as the HistoryMirror and DbMirror databases are on the Primary node and used to sync to the Mirror node.
Alarms
Instructions on how to clear stuck alarms:
- Shut down Forcefield from the Admin > Forcefield Shutdown menu option
- At the prompt, log in as Root: root
- - The default password is: 4346 (unless this has been changed by the site)
- Elevate to super user by typing: su (if you are asked for a password, enter 4346 again, or whatever the site has set)
Then at the # prompt, enter the following commands, followed by <ENTER> after each line:
rm /usr/ares/alarms/* rm /usr/ares/status/* sync shutdown
That will clear the alarms and status tables, and Forcefield will then automatically re-start and rebuild those tables.
Queues
If the event queues are corrupt Forcefield will not start, these instructions show how to clear the queues:
- Shut down Forcefield from the Admin > Forcefield Shutdown menu option
- At the prompt, log in as Root: root
- - The default password is: 4346 (unless this has been changed by the site)
- Elevate to super user by typing: su (if you are asked for a password, enter 4346 again, or whatever the site has set)
Then at the # prompt, enter the following commands, followed by <ENTER> after each line:
cd /usr/ares/tools/
InitQueues
Status
If statuses are out of sync, you can remove them and Forcefield will re-write them on boot up using these instructions:
- Shut down Forcefield from the Admin > Forcefield Shutdown menu option
- At the prompt, log in as Root: root
- - The default password is: 4346 (unless this has been changed by the site)
- Elevate to super user by typing: su (if you are asked for a password, enter 4346 again, or whatever the site has set)
Then at the # prompt, enter the following commands, followed by <ENTER> after each line:
rm /usr/ares/status/*
sync
shutdown