Errpt - Logopen: open: No such file or directory

root's picture

Today I got a strange error during the execution of errpt command: "logopen: open: No such file or directory". At first I was scratching my head a bit, but in fact it is not hard at all.

This is due to missing the needed errlog file which should be located in /var/adm/ras/. All you have to do is to recreate it.
Please read on if you do not know how.

The error:

root@aix~# errpt
logopen: open: No such file or directory

WRONG solution:

root@aix~# [color=red]touch /var/adm/ras/errlog[/color]
root@aix~# errpt
logread: unexpected end of file
Unable to process the error log file /var/adm/ras/errlog.
root@aix~# rm /var/adm/ras/errlog

GOOD solution (will recreate a new 1MB errorlog file in [u]/var/adm/ras[u]):

root@aix~# [color=green]/usr/lib/errdemon -s 1048576[/color]
root@aix~# ls -la /var/adm/ras/errlog                      
-rw-rw-r--    1 root     system         8192 Feb  8 15:50 /var/adm/ras/errlog
root@aix~# errpt
IDENTIFIER TIMESTAMP  T C RESOURCE_NAME  DESCRIPTION
9DBCFDEE   0208155012 T O errdemon       ERROR LOGGING TURNED ON

Thou shalt not steal!

If you want to use this information on your own website, please remember: by doing copy/paste entirely it is always stealing and you should be ashamed of yourself! Have at least the decency to create your own text and comments and run the commands on your own servers and provide your output, not what I did!

Or at least link back to this website.

Recent content