<?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: vgreduce fails .. physical extents are still in use in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-fails-physical-extents-are-still-in-use/m-p/4141322#M599415</link>
    <description>Bonjour,&lt;BR /&gt;&lt;BR /&gt;I do agree with TTr (and with his personnal quote ;-) : there is a strong chance that the stale extent resides on the disk which has not been replaced.&lt;BR /&gt;&lt;BR /&gt;That could also mean that when the disk was failed you had a stale extent on the survival one. So there is a chance that some datas are damaged or, worst, the FS itself. IMHO you must rebuild the FS if you don't want any bad surprise in the future.&lt;BR /&gt;&lt;BR /&gt;Before any action you should first have a map of stale extents in all LV of appsvg00. No need to use -k option. You could do something like :&lt;BR /&gt;&lt;BR /&gt;find /dev/appsvg00 -type b | while read LV&lt;BR /&gt;do echo&lt;BR /&gt;   echo "-------- $LV"&lt;BR /&gt;   lvdisplay -v $LV | egrep -i stale&lt;BR /&gt;done &lt;BR /&gt;&lt;BR /&gt;Post the result&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Eric&lt;BR /&gt;</description>
    <pubDate>Thu, 07 Feb 2008 09:45:20 GMT</pubDate>
    <dc:creator>Eric SAUBIGNAC</dc:creator>
    <dc:date>2008-02-07T09:45:20Z</dc:date>
    <item>
      <title>vgreduce fails .. physical extents are still in use</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-fails-physical-extents-are-still-in-use/m-p/4141315#M599408</link>
      <description>Trying to reduce a disk out of a mirrored vg.&lt;BR /&gt;&lt;BR /&gt;vgreduce: Physical volume "/dev/dsk/c6t0d0" could not be removed since some of its&lt;BR /&gt;physical extents are still in use.&lt;BR /&gt;&lt;BR /&gt;I have tried to reduce using pk keys and no luck.&lt;BR /&gt;&lt;BR /&gt;# lvreduce -k -m 0 /dev/appsvg00/lvvartibco 1&lt;BR /&gt;lvreduce: Couldn't reduce the logical volume:&lt;BR /&gt;Device busy&lt;BR /&gt;lvreduce: The LVM device driver failed to reduce mirrors on&lt;BR /&gt;the logical volume "/dev/appsvg00/lvvartibco".&lt;BR /&gt;&lt;BR /&gt;I found a document with the error but the doc states that the reason for the error is that the lv device files are missing. In this case they are not missing.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;the vg does have one stale extent.&lt;BR /&gt;&lt;BR /&gt;Thanks !&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Feb 2008 15:59:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-fails-physical-extents-are-still-in-use/m-p/4141315#M599408</guid>
      <dc:creator>rleon</dc:creator>
      <dc:date>2008-02-06T15:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: vgreduce fails .. physical extents are still in use</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-fails-physical-extents-are-still-in-use/m-p/4141316#M599409</link>
      <description>vgreduce -f didn't work as well? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Feb 2008 16:04:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-fails-physical-extents-are-still-in-use/m-p/4141316#M599409</guid>
      <dc:creator>Zeev Schultz</dc:creator>
      <dc:date>2008-02-06T16:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: vgreduce fails .. physical extents are still in use</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-fails-physical-extents-are-still-in-use/m-p/4141317#M599410</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Stale extents indicate that something has gone wrong. A disk or mirror has failed.&lt;BR /&gt;&lt;BR /&gt;Ideas to get the vgreduce to work.&lt;BR /&gt;&lt;BR /&gt;1) Remove associated logical volumes (lvremove)&lt;BR /&gt;Obviously back up the data first and umount any filesystems.&lt;BR /&gt;2) vgreduce -f (follow the instructions afterward. This is a relatively dangerous thing to do, but sometimes you have to do it.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 06 Feb 2008 16:06:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-fails-physical-extents-are-still-in-use/m-p/4141317#M599410</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-02-06T16:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: vgreduce fails .. physical extents are still in use</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-fails-physical-extents-are-still-in-use/m-p/4141318#M599411</link>
      <description>Bonsoir,&lt;BR /&gt;&lt;BR /&gt;You said "Trying to reduce a disk out of a mirrored vg."&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; Why do you want to do that ? If the disk is out work, HP is supposed to change it ASAP. There is no need to unmirror the LVs. The procedure is rather simple and can be done online. Here is the general guideline : change the failed disk, ioscan, vgcfgrestore on the new disk, reactivate the vg, then vgsync if necessary.&lt;BR /&gt;&lt;BR /&gt;Anyway, you may still want to unmirror, just because your maintenance contract is expired or anything eles ...&lt;BR /&gt;&lt;BR /&gt;So why "lvreduce -k ... 1" and not "lvreduce -k ... 0" ? I mean have you localized on which disk there is "one stale extent" ? (if the disk is really HS, you may have now more than just one stale extent).&lt;BR /&gt;&lt;BR /&gt;Could you control output of "lvdisplay -k -v dev/appsvg00/lvvartibco | egrep -i stale". Is it really on pvkey 1 and always on the same pvkey ? You should also control all LV on this VG.&lt;BR /&gt;&lt;BR /&gt;Knowing that it will be easier to give valuable advice.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Eric&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Feb 2008 18:15:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-fails-physical-extents-are-still-in-use/m-p/4141318#M599411</guid>
      <dc:creator>Eric SAUBIGNAC</dc:creator>
      <dc:date>2008-02-06T18:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: vgreduce fails .. physical extents are still in use</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-fails-physical-extents-are-still-in-use/m-p/4141319#M599412</link>
      <description>the disk was replaced ..&lt;BR /&gt;&lt;BR /&gt;ran vgcfgrestore to restore ..&lt;BR /&gt;&lt;BR /&gt;After everything synced up I still had one bad stale extent.&lt;BR /&gt;&lt;BR /&gt;I was going to break the mirror and re-mirror.&lt;BR /&gt;&lt;BR /&gt;All of the lv's where fine until I got to the one that had one stale extent. When I tried to break it was when I got the error .. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# lvreduce -m 0 -A n /dev/appsvg00/lvvartibco /dev/dsk/c6t0d0 &lt;BR /&gt;lvreduce: Couldn't reduce the logical volume:&lt;BR /&gt;Device busy&lt;BR /&gt;lvreduce: The LVM device driver failed to reduce mirrors on&lt;BR /&gt;the logical volume "/dev/appsvg00/lvvartibco".</description>
      <pubDate>Wed, 06 Feb 2008 19:08:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-fails-physical-extents-are-still-in-use/m-p/4141319#M599412</guid>
      <dc:creator>rleon</dc:creator>
      <dc:date>2008-02-06T19:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: vgreduce fails .. physical extents are still in use</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-fails-physical-extents-are-still-in-use/m-p/4141320#M599413</link>
      <description>You probably have a single bad extend on the first disk and not on the one you replaced. Run pvdisplay and look at the PEs on the "lwartibco" (sorry to see that you are using tibco :) )&lt;BR /&gt;&lt;BR /&gt;Under this assumption (bad PE on the first disk) you can do the following&lt;BR /&gt;&lt;BR /&gt;Run a read test on the first disk using the dd command.&lt;BR /&gt;&lt;BR /&gt;You don't see any file read errors because by luck that extend has no data in it. &lt;BR /&gt;&lt;BR /&gt;You need to create anothr LV and move the tibco volume to this new LV and delete the old LV altogether.&lt;BR /&gt;&lt;BR /&gt;pvmove may be an option here if you have another disk to use temporarily.</description>
      <pubDate>Wed, 06 Feb 2008 20:41:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-fails-physical-extents-are-still-in-use/m-p/4141320#M599413</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2008-02-06T20:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: vgreduce fails .. physical extents are still in use</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-fails-physical-extents-are-still-in-use/m-p/4141321#M599414</link>
      <description>Hi,&lt;BR /&gt;Check the lvdisplay output, it will show you the conditions of Physical extents.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vivek</description>
      <pubDate>Wed, 06 Feb 2008 22:01:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-fails-physical-extents-are-still-in-use/m-p/4141321#M599414</guid>
      <dc:creator>Vivek_Pendse</dc:creator>
      <dc:date>2008-02-06T22:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: vgreduce fails .. physical extents are still in use</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-fails-physical-extents-are-still-in-use/m-p/4141322#M599415</link>
      <description>Bonjour,&lt;BR /&gt;&lt;BR /&gt;I do agree with TTr (and with his personnal quote ;-) : there is a strong chance that the stale extent resides on the disk which has not been replaced.&lt;BR /&gt;&lt;BR /&gt;That could also mean that when the disk was failed you had a stale extent on the survival one. So there is a chance that some datas are damaged or, worst, the FS itself. IMHO you must rebuild the FS if you don't want any bad surprise in the future.&lt;BR /&gt;&lt;BR /&gt;Before any action you should first have a map of stale extents in all LV of appsvg00. No need to use -k option. You could do something like :&lt;BR /&gt;&lt;BR /&gt;find /dev/appsvg00 -type b | while read LV&lt;BR /&gt;do echo&lt;BR /&gt;   echo "-------- $LV"&lt;BR /&gt;   lvdisplay -v $LV | egrep -i stale&lt;BR /&gt;done &lt;BR /&gt;&lt;BR /&gt;Post the result&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Eric&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Feb 2008 09:45:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-fails-physical-extents-are-still-in-use/m-p/4141322#M599415</guid>
      <dc:creator>Eric SAUBIGNAC</dc:creator>
      <dc:date>2008-02-07T09:45:20Z</dc:date>
    </item>
  </channel>
</rss>

