Search Type:
Search for:

Language:

Product:
Category:
No categories for selected product

How to delete old events, resource and operation logs from PIM database

Article ID: 6622 
Last Review: Nov,5 2009
Author: Kichigin Aleksey
Last updated by: Kichigin Aleksey APPLIES TO:
  • Virtuozzo Containers for Windows 4.0
  • Virtuozzo Containers for Linux 4.0

Symptoms

Parallels Infrastructure Manager (PIM) stores events, resource and operation logs in database inside the service container. If Master node in PIM is Windows server Microsoft SQL Server Desktop Engine (MSDE) is used  as database store inside the service container. MySQL is used if Master node in PIM is Linux server.

MSDE has a limitation which does not allow to use database more than 2 GB. PIM data may grow beyond the limit. If this occurs, it is recommended to clear databse from old events, resource and operation logs.

Resolution

This article provides scripts which clear database from old records on Master node of PIM infrastructure.

If Master node is Windows 2003 server use attached win_w2k3_remove_old_logs.cmd script.
If Master node is Windows 2008 server use attached win_w2k8_remove_old_logs.cmd script.
Note the script has hardcoded DAYS_TO_LEAVE variable (amount of days for which db entries are left). The value is changed directly in the script file.

If Master node is Linux server use attached lin_remove_old_logs.sh script. Linux script accepts DAYS_TO_LEAVE value as command line parameter.

Attachments:



Subscription for changes to this article Subscription for changes to this article

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields
 
 
 
 
 
 
For Home
For Business
For Hosters
For SaaS
For Developers
 
Desktop Virtualization
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac
- Parallels Desktop 4 for Windows & Linux
- Parallels Workstation Extreme
- Parallels Solution for Windows 7
Server Virtualization
- Parallels Server for Mac
- Parallels Server 4 Bare Metal
- Parallels Virtuozzo Containers
Automation
- Parallels Operations Automation
- Parallels Business Automation
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
More Products