1834942 Members
2234 Online
110071 Solutions
New Discussion

disk monotoring script

 
SOLVED
Go to solution
Donald C Nelson
Frequent Advisor

disk monotoring script

Does any one have a process that will alert me if a disk fails or filesystems become stale. We have clients who do not want to spend any money on monotoring packages so I have to come up with a cheap way to perform this process.
6 REPLIES 6
Mridul Shrivastava
Honored Contributor

Re: disk monotoring script

If there is any I/O error on any disk it will be logged in syslog.log/OLDsyslog.log.
If you have EMS configured there will be an entry in event.log also.
Time has a wonderful way of weeding out the trivial
Donald C Nelson
Frequent Advisor

Re: disk monotoring script

A disk may failed during the night and if no one checks on the server which is located in a data center a mile apart, no one would know if it is mirrored.
Geoff Wild
Honored Contributor
Solution

Re: disk monotoring script

Here's a script for stales:

# cat chkstaledsks
#!/bin/sh
# Identifies and displays stale extends on all system volume groups.
# Useful to determine defect harddisks in mirrored enviroments
# Geoff Wild

vgdisplay -v | awk '/LV Name/ { print $3 }' | xargs lvdisplay -v | grep -i -e "lv name" -e "lv status" -e stale -e '?'


Just run from cron...



Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Torsten.
Acclaimed Contributor

Re: disk monotoring script

In case of failed hardware or errors on hardware the diagnostic will take notice and will put a message in the syslog file and send a mail to root.
If you have a support contract, it is a good enhancement to install HPs ISEE software on top. This will inform you and even HP about the problem. more information:
http://h20219.www2.hp.com/services/cache/10709-0-0-225-121.html?jumpid=reg_R1002_USEN

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
James R. Ferguson
Acclaimed Contributor

Re: disk monotoring script

Hi Donald:

Your cheapest, free monitoring comes with your standard operating system in the form of EMS, a part of the Support Tools Bundle (STM):

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B6191AAE

You can read more about this here:

http://docs.hp.com/en/diag.html

Regards!

...JRF...
Donald C Nelson
Frequent Advisor

Re: disk monotoring script

Thanks everyone for your assistance