<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Check Mirror resync process in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/check-mirror-resync-process/m-p/5210534#M464862</link>
    <description>Hi Balaji,&lt;BR /&gt;&lt;BR /&gt;All above post ,&amp;lt;&lt;EXCELLENT&gt;&amp;gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can also try this,&lt;BR /&gt;=======================&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;pvdisplay -v /dev/dsk/c2t6d0|grep stale|wc -l&lt;BR /&gt;sleep 5&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Johnson&lt;/EXCELLENT&gt;</description>
    <pubDate>Fri, 20 Nov 2009 02:14:38 GMT</pubDate>
    <dc:creator>Johnson Punniyalingam</dc:creator>
    <dc:date>2009-11-20T02:14:38Z</dc:date>
    <item>
      <title>Check Mirror resync process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-mirror-resync-process/m-p/5210530#M464858</link>
      <description>How to check percent completed when i'm remirroring after disk replacement due to a disk failure? In other words i need eqvalent command like veritas vxtask?&lt;BR /&gt;Currently i can only see through &lt;BR /&gt;"lvdisplay -v /dev/vgxx/lvolxx/ and to see stale/current?</description>
      <pubDate>Thu, 19 Nov 2009 21:48:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-mirror-resync-process/m-p/5210530#M464858</guid>
      <dc:creator>balaji_vvv</dc:creator>
      <dc:date>2009-11-19T21:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Check Mirror resync process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-mirror-resync-process/m-p/5210531#M464859</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;There isn't a percentage complete.  You can pipe the 'lvdisplay' to 'grep' and count the number of stale extents, though.&lt;BR /&gt;&lt;BR /&gt;# lvdisplay -v /dev/vgXX/lvolNN|grep -c stale&lt;BR /&gt;&lt;BR /&gt;...which will return the number of "stale" extents remaining.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 19 Nov 2009 22:14:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-mirror-resync-process/m-p/5210531#M464859</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-11-19T22:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Check Mirror resync process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-mirror-resync-process/m-p/5210532#M464860</link>
      <description>The process JRF mentions is exactly what I do to keep track of the remirroring process.  There's nothing else to do that I know of.</description>
      <pubDate>Thu, 19 Nov 2009 22:22:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-mirror-resync-process/m-p/5210532#M464860</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2009-11-19T22:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Check Mirror resync process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-mirror-resync-process/m-p/5210533#M464861</link>
      <description>More or less the same, if all of the lvols are named lvolx:&lt;BR /&gt;&lt;BR /&gt;# lvdisplay -v /dev/vg_x/lvol* | grep stale | wc -l&lt;BR /&gt;&lt;BR /&gt;the number is decreasing to zero.</description>
      <pubDate>Thu, 19 Nov 2009 22:35:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-mirror-resync-process/m-p/5210533#M464861</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2009-11-19T22:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Check Mirror resync process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-mirror-resync-process/m-p/5210534#M464862</link>
      <description>Hi Balaji,&lt;BR /&gt;&lt;BR /&gt;All above post ,&amp;lt;&lt;EXCELLENT&gt;&amp;gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can also try this,&lt;BR /&gt;=======================&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;pvdisplay -v /dev/dsk/c2t6d0|grep stale|wc -l&lt;BR /&gt;sleep 5&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Johnson&lt;/EXCELLENT&gt;</description>
      <pubDate>Fri, 20 Nov 2009 02:14:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-mirror-resync-process/m-p/5210534#M464862</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2009-11-20T02:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Check Mirror resync process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-mirror-resync-process/m-p/5210535#M464863</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 20 Nov 2009 02:27:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-mirror-resync-process/m-p/5210535#M464863</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-11-20T02:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Check Mirror resync process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-mirror-resync-process/m-p/5210536#M464864</link>
      <description>That really helps!.  Thank you all.</description>
      <pubDate>Fri, 20 Nov 2009 14:20:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-mirror-resync-process/m-p/5210536#M464864</guid>
      <dc:creator>balaji_vvv</dc:creator>
      <dc:date>2009-11-20T14:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Check Mirror resync process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-mirror-resync-process/m-p/5210537#M464865</link>
      <description># lvdisplay -v /dev/vgXX/lvolNN|grep -c stale&lt;BR /&gt;&lt;BR /&gt;# lvdisplay -v /dev/vg_x/lvol* | grep stale | wc -l</description>
      <pubDate>Fri, 20 Nov 2009 14:23:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-mirror-resync-process/m-p/5210537#M464865</guid>
      <dc:creator>balaji_vvv</dc:creator>
      <dc:date>2009-11-20T14:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Check Mirror resync process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-mirror-resync-process/m-p/5210538#M464866</link>
      <description>&lt;!--!*#--&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;If you really wanted to report a percentage complete, you could monitor it like this:&lt;BR /&gt;&lt;BR /&gt;# cat ./mirrorpct&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;LV=$1&lt;BR /&gt;[ -b "${LV}" ] || { echo "'${LV}' isn't a LV path"; exit 1; }&lt;BR /&gt;typeset -i PC=0&lt;BR /&gt;while (( ${PC} &amp;lt; 100 ))&lt;BR /&gt;do&lt;BR /&gt;    PC=$(lvdisplay -v ${LV}|awk '/current/{C++};/stale/{S++};END{printf "%.1f\n",C/(C+S)*100}')&lt;BR /&gt;    echo "${PC}% complete"&lt;BR /&gt;    [ ${PC} -ge 100 ] || sleep 15&lt;BR /&gt;done&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;...run as:&lt;BR /&gt;&lt;BR /&gt;# ./mirrorpct /dev/vgNN/lvolX&lt;BR /&gt;&lt;BR /&gt;The script will continually report the percent mirrored until (or if) it reaches 100%.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 20 Nov 2009 14:37:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-mirror-resync-process/m-p/5210538#M464866</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-11-20T14:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Check Mirror resync process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-mirror-resync-process/m-p/5210539#M464867</link>
      <description>&lt;!--!*#--&gt;A Perl one-liner:&lt;BR /&gt;&lt;BR /&gt;lvdisplay -v /dev/vg00/lvol7 | \&lt;BR /&gt;   perl -n -e \&lt;BR /&gt;  '/current/ &amp;amp;&amp;amp; $c++; \&lt;BR /&gt;      /stale/ &amp;amp;&amp;amp; $s++; \&lt;BR /&gt;   END {printf "%3.1f%% complete\n", \&lt;BR /&gt;   $c / ($c + $s) * 100}'</description>
      <pubDate>Fri, 20 Nov 2009 15:16:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-mirror-resync-process/m-p/5210539#M464867</guid>
      <dc:creator>mvpel</dc:creator>
      <dc:date>2009-11-20T15:16:49Z</dc:date>
    </item>
  </channel>
</rss>

