System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

where is the HPUX log file ?

 
SOLVED
Go to solution
ben10_1
Regular Advisor

where is the HPUX log file ?

hi forum,

I want to know which log file show me if my disk on my mirrored hpux server is down.

thank u.
11 REPLIES
H_16
Trusted Contributor

Re: where is the HPUX log file ?


have a look in /var/adm/syslog/syslog.log
Ganesan R
Honored Contributor

Re: where is the HPUX log file ?

Hi,

Just use #vgdisplay -v command to see mirrored disk is down.

To check only the root vg(VG00)
#lvdisplay -v /dev/vg00/lvol* |grep stale

To check all the Volume groups.
#vgdisplay -v |grep -i "LV Status"

The above should show all LV status as "available/syncd" . If the status is "available/stale" then there is a disk failure
Best wishes,

Ganesh.
Ganesan R
Honored Contributor

Re: where is the HPUX log file ?

Hi,

Not only for disk, all hardware failures will be logged in /var/opt/resmon/log/event.log.

You can have a look into that if you suspect any disk failure.
Best wishes,

Ganesh.
ben10_1
Regular Advisor

Re: where is the HPUX log file ?

thank for your answers.

But do u have an idea what would be the entry in this log file if any hard disk is down.

Actually we are looking to monitor our server via OVO and they are asking me to provide them the error logfile entry, and my server is fine so how can I predict what would be the entry in case of failure.
Ganesan R
Honored Contributor
Solution

Re: where is the HPUX log file ?

Hi,

You can see the entry like below in event.log in case of disk failure.
>---------- End Event Monitoring Service Event Notification ----------<

>------------ Event Monitoring Service Event Notification ------------<



Event Time..........: Thu Oct 30 19:09:35 2008
Severity............: CRITICAL
Monitor.............: disk_em
Event #.............: 100270
System..............:

Summary:
Disk at hardware path 0/4/0/0.10.0 : Hardware failure
Best wishes,

Ganesh.
Steven E. Protter
Exalted Contributor

Re: where is the HPUX log file ?

Shalom

Normally the fastest way to detect a down hard drive is there is an lbolt message in /var/syslog/syslog.log

grep -i lbolt /var/syslog/syslog.log

I put a variant on that in a script and then email Operations when lbolts are found.

Generally I check with cron nightly.

Good mailing script:
http://www.hpux.ws/?p=7

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Hakki Aydin Ucar
Honored Contributor

Re: where is the HPUX log file ?

ioscan -fnC disk:

xxx# vgdisplay -v /dev/vg00 | grep dsk
PV Name /dev/dsk/c1t2d0

echo 2400?20X | adb :

xxx# echo 2400?20X | adb /dev/dsk/c1t2d0
2400: 44454645 43543031 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0

this is a good disk counts,zero means good news; no any Bad Sector occurs in this disk.
Hakki Aydin Ucar
Honored Contributor

Re: where is the HPUX log file ?

check this out to see where are the system logs going :

vi /etc/syslog.conf
Victor Fridyev
Honored Contributor

Re: where is the HPUX log file ?

Also you can run
dmesg -| grep -i scsi

and look for non empty output.

Actually all this output there is in the /var/adm/syslog/syslog.log file, but dmesg - gives an output of changes, so it's a bit easier to look for HW error there.

HTH
Entities are not to be multiplied beyond necessity - RTFM
Johnson Punniyalingam
Honored Contributor

Re: where is the HPUX log file ?

Best place to check /var/adm/syslog/syslog.log, and dmesg

If you had disk problem EMS alert message has been report,

step1:- take look at the syslog.log file
step2:- please run the following command will show you output of the EMS alert
step3 :- Look for Recommended action/ Action Required

Example:-

cat /var/adm/syslog/syslog.log |grep /adapters/events/ql_adapter/0_0_12_1_0

/opt/resmon/bin/resdata -R 219938842 -r /adapters/events/ql_adapter/0_0_12_1_0 -n 219939223 -a


Thanks,
Johnson
Problems are common to all, but attitude makes the difference
ben10_1
Regular Advisor

Re: where is the HPUX log file ?

Thank you guys for ur reply.