Operating System - HP-UX
1827245 Members
2171 Online
109716 Solutions
New Discussion

Syslog not working even after restarting

 
kumar.s
Advisor

Syslog not working even after restarting

Hi All ,

I am Facing a issue with syslog , which is not getting updated , even after rebooting the server .

I have tried restarting the daemon , Sending HUP signal to the PID & also tried restarting the server. Only while restarting the daemon the date & time on the syslog.log is changed . No information is logging in the syslog .

Is there any patchig to be dont on the server Help me to resolve the issue ,

# model
9000/800/A180c
#
#ll syslog.log
-rw-r--r-- 1 root root 0 Sep 15 08:38 syslog.log
# more syslog.log

#ps -ef |grep syslog
root 20359 1 0 08:38:03 ? 0:00 /usr/sbin/syslogd -D -v
#
#
# kill -s HUP 20359
#
# ll syslog.log
-rw-r--r-- 1 root root 0 Sep 15 08:38 syslog.log
# logger -t TEST "Test Message to syslog"
#
# ll syslog.log
-rw-r--r-- 1 root root 0 Sep 15 08:38 syslog.log
# more syslog.log

#
#
#
# /sbin/init.d/syslogd stop
syslogd stopped
#
#ps -ef |grep syslog
root 20635 17467 1 08:43:33 ttyp2 0:00 grep syslog
#
# /sbin/init.d/syslogd start
System message logger started
#
#ll syslog.log
-rw-r--r-- 1 root root 0 Sep 15 08:48 syslog.log

#
#uname -a
HP-UX inddns02 B.11.00 U 9000/800 2007484315 unlimited-user license

And my Syslog config file looks like this

more syslog.conf
# @(#) $Revision: 74.1 $
#
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug /var/adm/syslog/mail.log
*.info;mail.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *

Looking for your valuable suggestions

Thanks in advance
Sathish
4 REPLIES 4
kumar.s
Advisor

Re: Syslog not working even after restarting

Hi All ,

In the mean while i done some investigation
One disk on the vg00 is not visible
# strings /etc/lvmtab
/dev/vg00
=fTS
/dev/dsk/c1t6d0
/dev/dsk/c1t5d0
/dev/vg01
/dev/dsk/c0t6d0

---
vgdisplay -v vg00 |egrep 'LV Name|LV Status'
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c1t6d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg00/lvol1
LV Status available/stale
LV Name /dev/vg00/lvol2
LV Status available/stale
LV Name /dev/vg00/lvol3
LV Status available/stale
LV Name /dev/vg00/lvol4
LV Status available/stale
LV Name /dev/vg00/lvol5
LV Status available/stale
LV Name /dev/vg00/lvol6
LV Status available/stale
LV Name /dev/vg00/lvol7
LV Status available/stale
LV Name /dev/vg00/lvol8
LV Status available/stale
LV Name /dev/vg00/lvol9
LV Status available/stale
LV Name /dev/vg00/lvol10
LV Status available/stale
LV Name /dev/vg00/lvol11
LV Status available/stale
-------------------------------------
Since the server is rebooted the disk is not showing in the ioscan .

Is the disk issue causing the syslog not to work , ( Even with Mirror disk syslog should work )

Thanks
Sathish
Prasanth B
Trusted Contributor

Re: Syslog not working even after restarting

Hi,

Looks like your syslog.conf file is corrupt. From the message above you have space as field separator, but you will need tab as filed separator. Instead of editing the file please follow the step below.

Save your /etc/syslog.conf to a different name:

mv /etc/syslog.conf /etc/syslog.conf.old

Copy the file /usr/newconfig/etc/syslog.conf to /etc/syslog.conf:
cp /usr/newconfig/etc/syslog.conf /etc/syslog.conf

Restart syslogd:
# kill -HUP $(cat /var/run/syslog.pid)
Take life as it comes
kumar.s
Advisor

Re: Syslog not working even after restarting

Thanks Prasanth ,

Your suggesstion has worked up for me

Thanks a lot

Regards
Sathish
kumar.s
Advisor

Re: Syslog not working even after restarting

Suggestion from Prasanth has helped me to resolve the issue

the syslog.conf file was corrupt

copied the new syslog file from
/usr/newconfig/etc/syslog.conf
to
/etc/syslog.conf
& restarted the daemon