<?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 lvextend progress in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-progress/m-p/4544835#M556641</link>
    <description>We're doing lvextend and it's extending. However how to know what extend progess it is., i.e. what percentage does current extending finish?</description>
    <pubDate>Sat, 05 Dec 2009 14:20:10 GMT</pubDate>
    <dc:creator>marty199</dc:creator>
    <dc:date>2009-12-05T14:20:10Z</dc:date>
    <item>
      <title>lvextend progress</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-progress/m-p/4544835#M556641</link>
      <description>We're doing lvextend and it's extending. However how to know what extend progess it is., i.e. what percentage does current extending finish?</description>
      <pubDate>Sat, 05 Dec 2009 14:20:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-progress/m-p/4544835#M556641</guid>
      <dc:creator>marty199</dc:creator>
      <dc:date>2009-12-05T14:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: lvextend progress</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-progress/m-p/4544836#M556642</link>
      <description>say that the lvname is /dev/vg12/lvol1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;lvdisplay -v /dev/vg12/lvol1 | grep -i stale | wc -l&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;for i in /dev/vg12/lvol*&lt;BR /&gt;do&lt;BR /&gt;lvdisplay -v $i | grep -i stale | wc -l&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;and run this after a while, you should be able to see that the count of stale PEs should decrease&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;sujit</description>
      <pubDate>Sat, 05 Dec 2009 14:24:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-progress/m-p/4544836#M556642</guid>
      <dc:creator>sujit kumar singh</dc:creator>
      <dc:date>2009-12-05T14:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: lvextend progress</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-progress/m-p/4544837#M556643</link>
      <description>hi &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;lvdisplay -v /dev/vg12/lvol1| wc -l &lt;BR /&gt;&lt;BR /&gt;gives the count of all the PEs of the LV &lt;BR /&gt;whereas &lt;BR /&gt;&lt;BR /&gt;lvdisplay -v /dev/vg12/lvol1 | grep -i stale| wc -l &lt;BR /&gt;&lt;BR /&gt;gives the number of PEs that have not been mirrored.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 05 Dec 2009 14:34:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-progress/m-p/4544837#M556643</guid>
      <dc:creator>sujit kumar singh</dc:creator>
      <dc:date>2009-12-05T14:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: lvextend progress</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-progress/m-p/4544838#M556644</link>
      <description>&lt;!--!*#--&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;I assume you want to monitor a 'lvextend' operation to mirror a logical volume.  Hence:&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>Sat, 05 Dec 2009 15:46:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-progress/m-p/4544838#M556644</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-12-05T15:46:54Z</dc:date>
    </item>
  </channel>
</rss>

