cancel
Showing results for 
Search instead for 
Did you mean: 

dmesg alert

SOLVED
Go to solution
newunix
Frequent Advisor

dmesg alert

last two months back we had a disk replacement in storage since it was failed, at the time of failure we had alerts in syslog and dmesg , after replacing disk still we are getting alerts in dmesg which are refelcting in ovo.

is it fake alert or still we are having any pblm, but no logs written to syslog.
8 REPLIES
Laurent Menase
Honored Contributor

Re: dmesg alert

you probably need to give the message if you want an hint
newunix
Frequent Advisor

Re: dmesg alert

when i give dmesg

i am getting lvm related errors.

but when see dmesg - and syslog i dont find any logs.

i am sure that ovo is producing alerts from

dmesg.
Dennis Handly
Acclaimed Contributor
Solution

Re: dmesg alert

>I am sure that ovo is producing alerts from dmesg.

But how old are these messages?
Pete Randall
Outstanding Contributor

Re: dmesg alert

As Dennis hinted, these may be the original messages. Dmesg is just a circular buffer (see the man page) and won't get cleared until the system is rebooted. You're probably still looking at the same old message.


Pete

Pete
madhuchakkaravarthy
Trusted Contributor

Re: dmesg alert

hi

u need to reboot the system to get the logs off

regards

MC
newunix
Frequent Advisor

Re: dmesg alert

without rebooting is there any way to clear logs

Pete Randall
Outstanding Contributor

Re: dmesg alert

You could try running "dmesg -" which will print only the new messages since the last time dmesg was run, but to clear the buffer you have to reboot.


Pete

Pete
Bill Hassell
Honored Contributor

Re: dmesg alert

dmesg has no date information without the "-" option. It will be cleared when you reboot. You need to add an entry to cron:

# Monitor dmesg with timestamps
0,10,20,30,40,50 * * * * /sbin/dmesg - >> /var/adm/dmesg.log

Now you will look at the end of this file for current information. The "dmesg -" command will report only new information. The first time it is run, everything is new and will be recorded in dmesg.log. From then on, only new messages will be logged along with a time stamp.


Bill Hassell, sysadmin