How to enlarge the error log in AIX

book

Article ID: 100039296

calendar_today

Updated On:

Description

Description

By default, AIX sets its error log size at 1MB. However, since it is a circular log, useful diagnostic information is often overwritten. The size of the log can be increased dynamically by use of the "errdemon" command in AIX. For instance, to raise the log size to 40MB:

# /usr/lib/errdemon -l
Error Log Attributes
--------------------------------------------
Log File                /var/adm/ras/errlog
Log Size                1048576 bytes <<<<<
Memory Buffer Size      32768 bytes
Duplicate Removal       true
Duplicate Interval      10000 milliseconds
Duplicate Error Maximum 1000

so, the current size of the log is restricted to 1MB.

Resetting the maximum log size to 40MB:

# /usr/lib/errdemon -s 41943040     

and confirm the maximum size:
 

# /usr/lib/errdemon -l
Error Log Attributes
--------------------------------------------
Log File                /var/adm/ras/errlog
Log Size                41943040 bytes <<<<<
Memory Buffer Size      32768 bytes
Duplicate Removal       true
Duplicate Interval      10000 milliseconds
Duplicate Error Maximum 1000

 

You may also choose to clear the log completely after re-sizing it:

1. To delete all entries from the error log, enter:
# /usr/lib/errclear 0

2. To stop the error daemon:
# /usr/lib/errstop

3. To start the error daemon:
# /usr/lib/errdemon

Issue/Introduction

How to enlarge the error log in AIX