- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mirrordisk check
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2008 06:37 AM
05-28-2008 06:37 AM
Mirrordisk check
Is there a script that checks the proper installation and configuration of mirrordisk and if a disk is failing for 11.2 and 11.3 ?
I'd like to add it to my monitoring.
Or is there a script repository/website that holds HP-UX specific stuff ? That could help me with ideas to automate stuff.
Cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2008 09:17 AM
05-28-2008 09:17 AM
Re: Mirrordisk check
>Proper installation of mirrordisk
It can be checked in lvdisplay output and grepping number of mirrors.
Under mirror more you will concern about is disk failure i guess. So, to chk for stale PE's you can use:
#lvdisplay -v /dev/vg00/lvol* | grep -i stale
>is there a script repository/website that holds HP-UX specific stuff ?
Check this sites:
http://hpux.cs.utah.edu/
http://www.hpux.ws/
And also check this thread.... Full of many scripts .. very useful.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=51050
-=ShRi=-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2008 09:16 PM
05-28-2008 09:16 PM
Re: Mirrordisk check
I have a good script for checking for the stale in mirror or disk too.
for i in `vgdisplay -v vg00 | grep available | awk '{print $3}' | cut -c 1-9`
do
if [ $i = stale ]
then
echo " disk fail "
else
echo " disk ok "
fi
done
copy in a file and change the file permission and run.
Thanks,
Avinash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2008 10:09 PM
05-29-2008 10:09 PM
Re: Mirrordisk check
Others already gave you some good advice.
LVM is quite easy through vgdisplay and
lvdisplay.
During this week I worked on adding
similar support for VxVM on HP-UX too:
http://www.circlingcycle.com.au/Unix-sources/HP-UX-check-OAT.pl.txt
I also added some support for
checking Network Node Manager 8.x.
Cheers,
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2008 05:27 AM
05-30-2008 05:27 AM
Re: Mirrordisk check
Rgds...Geoff
#!/bin/ksh
# script to check mirror(s) on vg00
# Geoff Wild 3/19/2003
#set -x
admin1=you@yourdomain.com
host_name=`hostname`
do_mirrordisk() {
echo "------------------------------------------------"
echo " checking the root disk vg00 on $host_name "
echo "------------------------------------------------"
for lvol in `/usr/sbin/vgdisplay -v vg00 |grep "LV Name" |awk '{print $3}'`
do
mirror=`/usr/sbin/lvdisplay -v ${lvol} |grep Mirror |awk '{print $3}'`
if [ $mirror -lt 1 ]
then
echo "Root Mirror disk for ${lvol} has no mirror..."
/usr/sbin/lvdisplay -v ${lvol} |grep Mirror > /tmp/MIRRPT
mailx -s "ALERT: $host_name Root Mirror for ${lvol} has no mirror..." $admin1 fi
stale=`/usr/sbin/lvdisplay -v ${lvol} | grep stale | wc -l`
if [ $stale -ge 1 ]
then
echo "Root Mirror disk for lvol${lvol} is down, please check ..."
/usr/sbin/lvdisplay -v ${lvol} | grep stale | head > /tmp/MIRRPT
mailx -s "ALERT: $host_name Root Mirror Disk for ${lvol} is down !" $admin1 < /tmp/MIRRPT
else
echo "Root Mirror Disk for ${lvol} is Okay !"
fi
done
}
do_mirrordisk