- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Monitoring LVM mirror
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
02-14-2002 06:35 AM
02-14-2002 06:35 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2002 06:38 AM
02-14-2002 06:38 AM
Re: Monitoring LVM mirror
GL,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2002 06:39 AM
02-14-2002 06:39 AM
Re: Monitoring LVM mirror
Check for stale extents in lvdisplay or pvdisplay.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2002 06:40 AM
02-14-2002 06:40 AM
Re: Monitoring LVM mirror
These days, I imagine dmesg + syslog.log are adequate enough.
Cheers, Ian Dennison
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2002 06:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2002 06:43 AM
02-14-2002 06:43 AM
Re: Monitoring LVM mirror
Check this complete guide. Read "Mirroring Data using LVM" for more information:
http://www.docs.hp.com/hpux/onlinedocs/B2355-90672/B2355-90672.html
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2002 09:34 AM
02-14-2002 09:34 AM
Re: Monitoring LVM mirror
lvdisplay -v /dev/vg##/lvol | grep stale > /dev/null
if [ $? = 0 ]
then
echo "Stale extent for lvol."
fi
You could easily write a script that would loop to check each logical volume in every volume group on our you systems and report to what every you needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2002 11:48 AM
02-14-2002 11:48 AM
Re: Monitoring LVM mirror
Go look at the EMS manuals at:
http://docs.hp.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2002 01:48 PM
02-14-2002 01:48 PM
Re: Monitoring LVM mirror
Use the commands:
vgdisplay -v /dev/vg*
-Check the status of each lvol and look to see if it says available/syncd or available/stale.
lvdisplay -v /dev/vg##/lvol##
Check for stale extents
Gl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2002 02:31 PM
02-14-2002 02:31 PM
Re: Monitoring LVM mirror
I've attached a quickie script that may help. If a lv is not synced a message will be returned else "no news is good news".
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2002 03:29 PM
02-14-2002 03:29 PM
Re: Monitoring LVM mirror
If you want to build something yourself, then here's the guts of a script to collect all the logical volume names that represent mirrored logical volumes but do not show all *current* extents. If the returned list is not empty you could email a message to yourself. This kind of script can be cron'ed and executed every n-minutes.
You can capture its output, if any, with:
LV=`$HOME/mirrors.sh`
Regards!
...JRF...