Saturday, February 23, 2013

syslogd: the kernel messages are already disabled + HP UX

Hi Friends,

We were getting error in starting syslogd. we tried to restart the syslog daemon. but that was not getting started. it was giving below or message in syslog.


# cat /var/adm/syslog/syslog.log

18:24:19 syslogd: restart

18:24:19 syslogd: the kernel messages are already disabled: No such device or address

20:40:58 syslogd: restart

we tried every possibility of restarting services, checking kernel value, even it was said to update with a patch.
At last we checked, the value of mail.log, which was more than 1.5 GB or more than the value which was configured. triming of the same brought us to the solution.


# pwd
/var/adm/syslog
# ls -ltr
total 4195152
-r--r--r--   1 root       root       2147483648 Feb  4 17:20 mail.log
-rw-------   1 root       sys         407792 Feb 19 20:08 core
-rw-r--r--   1 root       sys            154 Feb 19 23:33 OLDsyslog.log
-rw-r--r--   1 root       sys            201 Feb 20 20:40 syslog.log
# > mail.log
# ls -ltr
total 832
-rw-------   1 root       sys         407792 Feb 19 20:08 core
-rw-r--r--   1 root       sys            154 Feb 19 23:33 OLDsyslog.log
-rw-r--r--   1 root       sys            201 Feb 20 20:40 syslog.log
-r--r--r--   1 root       root             0 Feb 21 16:30 mail.log
# /sbin/init.d/syslogd stop
syslogd stopped
# /sbin/init.d/syslogd start
System message logger started
#
# /usr/sbin/syslogd -D
Syslogd: Already running.
#
# ps -ef |grep -i syslog
    root  1367     1  0 16:30:22 ?         0:00 /usr/sbin/syslogd -D
    root  1388 28259  0 16:30:40 pts/0     0:00 grep -i syslog
#


Love Sharing
Amit Chopra

No comments: