- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Check Mirror resync process
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
тАО11-19-2009 01:48 PM
тАО11-19-2009 01:48 PM
Currently i can only see through
"lvdisplay -v /dev/vgxx/lvolxx/ and to see stale/current?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2009 02:14 PM
тАО11-19-2009 02:14 PM
SolutionThere isn't a percentage complete. You can pipe the 'lvdisplay' to 'grep' and count the number of stale extents, though.
# lvdisplay -v /dev/vgXX/lvolNN|grep -c stale
...which will return the number of "stale" extents remaining.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2009 02:22 PM
тАО11-19-2009 02:22 PM
Re: Check Mirror resync process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2009 02:35 PM
тАО11-19-2009 02:35 PM
Re: Check Mirror resync process
# lvdisplay -v /dev/vg_x/lvol* | grep stale | wc -l
the number is decreasing to zero.
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2009 06:14 PM
тАО11-19-2009 06:14 PM
Re: Check Mirror resync process
All above post ,<
You can also try this,
=======================
while true
do
pvdisplay -v /dev/dsk/c2t6d0|grep stale|wc -l
sleep 5
done
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2009 06:27 PM
тАО11-19-2009 06:27 PM
Re: Check Mirror resync process
Since 'grep -c stale' matches _and_ counts the lines containing the character sequence "stale", there is no need to spawn a 'wc' process. After all, the process you save, may be your own.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2009 06:20 AM
тАО11-20-2009 06:20 AM
Re: Check Mirror resync process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2009 06:23 AM
тАО11-20-2009 06:23 AM
Re: Check Mirror resync process
# lvdisplay -v /dev/vg_x/lvol* | grep stale | wc -l
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2009 06:37 AM
тАО11-20-2009 06:37 AM
Re: Check Mirror resync process
If you really wanted to report a percentage complete, you could monitor it like this:
# cat ./mirrorpct
#!/usr/bin/sh
LV=$1
[ -b "${LV}" ] || { echo "'${LV}' isn't a LV path"; exit 1; }
typeset -i PC=0
while (( ${PC} < 100 ))
do
PC=$(lvdisplay -v ${LV}|awk '/current/{C++};/stale/{S++};END{printf "%.1f\n",C/(C+S)*100}')
echo "${PC}% complete"
[ ${PC} -ge 100 ] || sleep 15
done
exit 0
...run as:
# ./mirrorpct /dev/vgNN/lvolX
The script will continually report the percent mirrored until (or if) it reaches 100%.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2009 07:16 AM
тАО11-20-2009 07:16 AM
Re: Check Mirror resync process
lvdisplay -v /dev/vg00/lvol7 | \
perl -n -e \
'/current/ && $c++; \
/stale/ && $s++; \
END {printf "%3.1f%% complete\n", \
$c / ($c + $s) * 100}'