- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mirroring status
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
Discussions
Discussions
Forums
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
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
тАО04-17-2007 09:56 PM
тАО04-17-2007 09:56 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2007 10:05 PM
тАО04-17-2007 10:05 PM
Re: Mirroring status
Easiest way to check is to go into SAM -> discs -> logical volumes. The column headed "Mirror Copies" tells you exactly what you want to know.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2007 10:09 PM
тАО04-17-2007 10:09 PM
Re: Mirroring status
for i in `ls -1 /dev/vg00/lv*`
do
echo $i
lvdisplay -v $i|grep -i mirror
done|more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2007 10:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2007 10:28 PM
тАО04-17-2007 10:28 PM
Re: Mirroring status
Since only logical volume can be mirrored u have to check
the respective lv,
eg.
1]
#lvdisplay -v /dev/vg00/lvol1|grep Mirror
Mirror copies 1
Here 1 is returned, this means this lv has 1 mirror.
2]
#lvdisplay -v /dev/vg00/lvol1|grep Mirror
Mirror copies 0
Here 0 is returned, this means this lv has no mirror copies.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2007 10:51 PM
тАО04-17-2007 10:51 PM
Re: Mirroring status
can you breif what status you wan't to check in the mirror
to confirm the disk is mirrored check the lvdisplay you can find the
mirror copies 0 --- Not mirrored
mirror copies 1 --- 1 copy mirrored
mirror copies 2 --- 2 times mirrored in 2 different disk's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2007 10:54 PM
тАО04-17-2007 10:54 PM
Re: Mirroring status
then it is, as gigiz wrote, probably the staleness of physical extents (PEs) that you are after.
A very crude check would be to run
# vgdisplay -v | grep -c stale
or
# vgdisplay -v vg00|grep -E 'LV (Name|Status)'
If you get output other than available/syncd
your mirrors' state is, well stale (or in other OSes terminology "degraded").
You could then pick those stale LVs and count the number of already stale logical extents (LEs) that map to actual PEs.
# lvdisplay -v /dev/vgXX/lvolX | grep -c stale
If look at the output of lvdisplay -v in a pager such as more you can identify the affected (probably demaged) PV or disk.
The longer you wait with replacing the failed disk the more stale extents are likely to accumulate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2007 03:22 PM
тАО04-19-2007 03:22 PM