<?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 PRoblem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-problem/m-p/3420327#M204045</link>
    <description>Hi Scott,&lt;BR /&gt;&lt;BR /&gt;Unless you remove the disk from the definitions of the logical volumes, you will not be able to reduce the PV from the VG. There are two options. Easiest is to get the disk back, run 'vgcfgrestore' to only restore the LVM structures and reduce the mirrors. If you don't have that choice, you will need to use the painful and time taking process of reducing it through 'pvkey'. Find out all the LVs in that VG. Run 'lvdisplay -v -k /dev/vgxx/lvolx' and get the corresponding PV Key for the failed disk. Then run 'lvreduce -k -m 0 /dev/vgxx/lvolx &lt;PVKEY&gt;' to reduce the mirrors on the failed disk. Once it is done, you can be able to use 'vgreduce -f' to get rid of the failed disk.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;/PVKEY&gt;</description>
    <pubDate>Thu, 11 Nov 2004 10:39:40 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2004-11-11T10:39:40Z</dc:date>
    <item>
      <title>VGREDUCE PRoblem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-problem/m-p/3420322#M204040</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;we had a disk crash in our RAID array.  the array needed rebuilding but I forgot to break some of the mirrors to another array and remove the physical disks from the VG.&lt;BR /&gt;&lt;BR /&gt;So I have now realised my mistake and tried to vgreduce the VG to get the physical volumes out.  In vgdisplay the volume in question is showing as unavailabe and has stale extents on it.  What I need to do is get the PV out of the VG, pvcreate it and then add it back to the VG.&lt;BR /&gt;&lt;BR /&gt;When I try an lvreduce -m 0 I get that the PV still has extents in use.  So tried to vgreduce the Vg and got a message saying there was an IO error.&lt;BR /&gt;&lt;BR /&gt;is there anyway to force remove the PV from the VG?</description>
      <pubDate>Thu, 11 Nov 2004 09:45:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-problem/m-p/3420322#M204040</guid>
      <dc:creator>Scott Dunkley</dc:creator>
      <dc:date>2004-11-11T09:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: VGREDUCE PRoblem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-problem/m-p/3420323#M204041</link>
      <description>Hi Scott,&lt;BR /&gt;&lt;BR /&gt;Force the vgreduce with -f&lt;BR /&gt;&lt;BR /&gt;vgreduce -f /dev/vg_name&lt;BR /&gt;&lt;BR /&gt;You do not need the PV as it will remove any/all missing PVs.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Thu, 11 Nov 2004 09:47:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-problem/m-p/3420323#M204041</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2004-11-11T09:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: VGREDUCE PRoblem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-problem/m-p/3420324#M204042</link>
      <description>Why remove it?  That's going about it the hardware.&lt;BR /&gt;&lt;BR /&gt;Just replace the bad disk with a new good one and do the following:&lt;BR /&gt;&lt;BR /&gt;# vgcfgrestore -n /dev/vg?? /dev/rdsk/c?t?d?&lt;BR /&gt;&lt;BR /&gt;# vgchange -a y vg??&lt;BR /&gt;&lt;BR /&gt;# vgsync vg??&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That's much easier than all the steps of manually rebuilding all of your mirrors on that disk.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Nov 2004 09:49:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-problem/m-p/3420324#M204042</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-11-11T09:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: VGREDUCE PRoblem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-problem/m-p/3420325#M204043</link>
      <description>ok a bit more history as to why I ended up in this position:&lt;BR /&gt;&lt;BR /&gt;We had a disk crash in our VA7110 and we dont use Hot spares, so we called in HP, the disk was pulled and then replaced.  this was the wrong thing to do, the new disk should have been put in along side the crashed disk to allow the array to rebuild.  It turns out we didnt have enough space in the array to do a rebuild.  So they only way out was to completley rebuild the array, according to HP.  We have now purchased hot spares for both arrays.&lt;BR /&gt;&lt;BR /&gt;Hope that explains why we are doing it this way.&lt;BR /&gt;&lt;BR /&gt;Tried a force on the vgreduce and got:&lt;BR /&gt;&lt;BR /&gt;not all extents are free, please free the extents first using lvremove/reduce here is a list of the free extents.....&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Nov 2004 09:57:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-problem/m-p/3420325#M204043</guid>
      <dc:creator>Scott Dunkley</dc:creator>
      <dc:date>2004-11-11T09:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: VGREDUCE PRoblem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-problem/m-p/3420326#M204044</link>
      <description>Hi Scott,&lt;BR /&gt;&lt;BR /&gt;Check this doc.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000063208748" target="_blank"&gt;http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000063208748&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Document description: LVM: splitting a stale mirror from a mirrored volume group&lt;BR /&gt;Document id: S3100003942&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Thu, 11 Nov 2004 10:11:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-problem/m-p/3420326#M204044</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-11-11T10:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: VGREDUCE PRoblem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-problem/m-p/3420327#M204045</link>
      <description>Hi Scott,&lt;BR /&gt;&lt;BR /&gt;Unless you remove the disk from the definitions of the logical volumes, you will not be able to reduce the PV from the VG. There are two options. Easiest is to get the disk back, run 'vgcfgrestore' to only restore the LVM structures and reduce the mirrors. If you don't have that choice, you will need to use the painful and time taking process of reducing it through 'pvkey'. Find out all the LVs in that VG. Run 'lvdisplay -v -k /dev/vgxx/lvolx' and get the corresponding PV Key for the failed disk. Then run 'lvreduce -k -m 0 /dev/vgxx/lvolx &lt;PVKEY&gt;' to reduce the mirrors on the failed disk. Once it is done, you can be able to use 'vgreduce -f' to get rid of the failed disk.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;/PVKEY&gt;</description>
      <pubDate>Thu, 11 Nov 2004 10:39:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-problem/m-p/3420327#M204045</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-11-11T10:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: VGREDUCE PRoblem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-problem/m-p/3420328#M204046</link>
      <description>sorted it out, thanks guys.  Not really sure what I done to correct it but eventually the disks came out of the VG ok.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 12 Nov 2004 02:28:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-problem/m-p/3420328#M204046</guid>
      <dc:creator>Scott Dunkley</dc:creator>
      <dc:date>2004-11-12T02:28:36Z</dc:date>
    </item>
  </channel>
</rss>

