06-21-2006 02:53 AM
I have a LMS 2.2 running on Solaris 8. Recently I found that the RME database file size is close 2GB. There are only 86 devices in my network. What makes the RME database grow so large? How do I bring down the size of the RME database? Thanks!
06-21-2006 07:24 AM
.
06-22-2006 01:15 PM
Here are several things that you might look at
How much backup config history do you keep? RME can keep as many as 50 historical copies of a single device config. Every time RME sees a device change it will go get the latest copy of the config. You can set how many copies to keep before RME will prune away the older copies.
Syslog messages are kept in 2 places. 1) a text file in CSCOpx/log/syslog.log. This file is not automatically rotated by CiscoWorks. It can grow very large. The logrote program can be used to rotate this log. 2) After the syslog messages are received into the file mentioned above, RME sucks them into a database. This database can get very large if it is not pruned. There is a log pruning job that you can run to delete syslog messages older than a set number of days. The deleted messages can be saved to a file also.
IOS versions in SWIM. RME can also go to each device and archive a copy of the IOS. If you have many different IOS versions on you devices there can be many IOSes stored in the SWIM repository.
Reports and various other information gathering tools in RME. You can schedule reports to run. There reports are saved until you delete them. If you run jobs that log into devices and do "show" commands this is also stored
I am sure there are many more.
Thanks
Alan
06-22-2006 07:54 PM
Isn't the Config files and SWIM images stored in file directory instead of rme.db:
I also got a syslog.db together with rme.db. I thought the syslog messages processed by RME is stored in syslog.db, but not rme.db.
I was trying to access RME database through dbreader. I cannot retrieve my db password as it was encrypted in the template file. Do you know how to retrieve the password from the encrypted text?
06-22-2006 09:13 PM
Not how to retrieve it but I can change it using dbpasswd.pl in \CSCOpx\bin. You don't need the old password.
Here are the usernames for the databases:
db uid
ani cwsiSA
cmf cmfDBA
rmeng DBA
dfmEpm itemEpmUser
dfmInv itemInvUser
dfmFh itemFhUser
Carefull when you start changing the db.
Cheers,
Michel
06-24-2006 10:20 AM
You are correct. I misunderstood and thought you were referring to a backup of all the RME data via backup.pl. These backups can get rather large and some of mine are 15Gig
06-24-2006 03:54 PM
The most common cause of a large rme.db file in LMS 2.2 was ChangeAudit records (which affects large and small networks alike). Most people configured configuration archive purging, but did not realize ChangeAudit records also need to be purged. If ChangeAudit purging is not done in conjunction with config archive purging, then the /var/adm/CSCOpx/files/rme/archive/config will grow considerably (in addition to rme.db) since configs with associated ChangeAudit records are never purged.
To enable ChangeAudit purging, go to RME > Administration > Change Audit > Delete Change History. If no purge policy is currently defined, you should first purge old records for all devices immediately. This can take A LONG TIME. Just be patient. Once it finishes, schedule appropriate purging.
Unfortunately, this will not actually shrink the size of the rme.db file, though. The database file size will not shrink unless the database is reinitialized or unloaded then reloaded. The former operation can be done using the /opt/CSCOpx/bin/dbRestoreOrig.pl command. The latter has no Cisco-supported procedure, unfortunately.
Note: in RME 4.0, configuring a ChangeAudit purge policy is much easier and more obvious to do.
06-26-2006 10:43 AM
Joe
This brings up a question??? Let's say the RME DB is 2 Gig. I purge the ChangeAudit records and that removes for example 500 Meg. The RME DB is still 2 Gig because it does not shrink. Is the 500 Meg of space I just created by purging 500 Meg of ChangeAudit records reused?
Thanks
Alan
06-26-2006 12:49 PM
No. You would need to either call REORGANIZE TABLE on individual tables, or unload/reload the entire database to reclaim the space. Unfortunately, neither of these things are supported by Cisco (and REOGANIZE TABLE is not supported in iAnywhere 7.x).
06-27-2006 08:42 AM
Joe
Thanks for quick reply.
So what would be the benefit of purging the records? The database does not get any smaller. It seems like the database will forever continue to expand in size until all available disk space is consumed.
06-27-2006 11:17 PM
The benefit comes when running reports, and keeping other file system disk consumption down. As I mentioned, config revisions with an associated change audit record to not get purged. Purging for Change Audit is highly recommended.
06-27-2006 11:13 PM
Is the database problem still existing in version 2.5.1?
06-28-2006 03:58 AM
You still have to purge if you don't want it to grow.
Cheers,
Michel
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: