Article

jason_ee's picture
article
Reads:

3235

Score:
0
0
 
Comments:

0

Handling Corrupted Logs in Audit

Author Info

6 June 2006 - 11:00pm
Submitted by: jason_ee

(View Disclaimer)

Problem

A Forum reader asked the following question:

"We are having problems with the Log DB becoming corrupted. I have tried shutting lengine.nlm so nothing is writing to mysql. This works sometimes, but not always. Is there a better way to shut down the auditing server before rebooting the system?"

And here's the response from Audit expert Jason Doering ...

Solution

Simply typing "unload lengine" is the only way to shut down the Novell Audit SLS. You can attempt to repair the table with this process:

Shut down the SLS:
unload lengine

Shut down MySQL:

1. mysqladmin -u root -p shutdown (Enter the root MySQL user's password)

2. Repair the table (enter your full path to the data tables):
myisamchk -rq vol1:\mysql\data\naudit\log

3. Restart MySQL:
mysqld_safe --autoclose

4. Restart Novell Audit:
auditsvr

If you have the caching configured correctly and leave the platform agent running, it minimizes the data you lose. The only events that could be lost are those that the SLS has not written to the database.


Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

© 2013 Novell