<?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: lvreduce doesn't work in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-doesn-t-work/m-p/3090444#M144690</link>
    <description>You may have to refer to the PV Number to 'lvreduce' and the seldom used '-k' option:&lt;BR /&gt; &lt;BR /&gt;A)  lvdisplay -v -k /dev/vg00/lvol* &lt;BR /&gt; &lt;BR /&gt;LE   PV1   PE1   Status 1&lt;BR /&gt;0000 1     0198  Stale&lt;BR /&gt;0001 1     0199  Stale&lt;BR /&gt;0002 1     0200  Stale&lt;BR /&gt;0003 1     0201  Stale &lt;BR /&gt; &lt;BR /&gt;B)  You'll need the value of PV1.  In this example PV1, which is stale, = 1.&lt;BR /&gt; &lt;BR /&gt;C)  lvreduce -m 0 -k /dev/vg00/lvol* 1&lt;BR /&gt; &lt;BR /&gt;Note:  Put the '1' at the end of the command.</description>
    <pubDate>Fri, 10 Oct 2003 07:45:34 GMT</pubDate>
    <dc:creator>Michael Steele_2</dc:creator>
    <dc:date>2003-10-10T07:45:34Z</dc:date>
    <item>
      <title>lvreduce doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-doesn-t-work/m-p/3090441#M144687</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;We had a mirrored system (and it works fine). Than we did a shutdown, changed one HDD and restartet the computer again. The start was fine, but (of corse) the mirror was wrong know (stales). We tried to remove the mirroring (lvreduce -m 0 ...). Unfortunately it didn't work and now we have a bad situation:&lt;BR /&gt;&lt;BR /&gt;lvdisplay -v /dev/vg00/lvol* &lt;BR /&gt;shows us the following lines:&lt;BR /&gt;&lt;BR /&gt;00016 /dev/dsk/c2t6d0  00016 current ???   00016 stale&lt;BR /&gt;&lt;BR /&gt;In the /etc/lvmtab you can find the entry from both HDDs:&lt;BR /&gt;/dev/vg00&lt;BR /&gt;/dev/dsk/c2t6d0&lt;BR /&gt;/dev/dsk/c2t5d0&lt;BR /&gt;(c2t6d0 is the working HDD and c2t5d0 is the replaced disk)&lt;BR /&gt;&lt;BR /&gt;Have anybody some ideas, for to remove the replaced disk.&lt;BR /&gt;&lt;BR /&gt;Best Regards   Konrad</description>
      <pubDate>Fri, 10 Oct 2003 06:09:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-doesn-t-work/m-p/3090441#M144687</guid>
      <dc:creator>Konrad Hegner</dc:creator>
      <dc:date>2003-10-10T06:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: lvreduce doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-doesn-t-work/m-p/3090442#M144688</link>
      <description>Hi Konrad,&lt;BR /&gt; &lt;BR /&gt;I think LVM is confused, (think) you replaced a disk before removing it from the configuration. &lt;BR /&gt; &lt;BR /&gt;You could try to resotre the vg group configuration to the disk, but i think you will have to do it in maintenance mode .&lt;BR /&gt; &lt;BR /&gt;vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t5d0&lt;BR /&gt; &lt;BR /&gt;vgchange -a y /dev/vg00&lt;BR /&gt; &lt;BR /&gt;and know you can remove the mirror from the configuration.&lt;BR /&gt; &lt;BR /&gt;lvremove -m 0 .....&lt;BR /&gt; &lt;BR /&gt;shutdown -r -y 0&lt;BR /&gt; &lt;BR /&gt;Hope it helps,&lt;BR /&gt;Robert-Jan.</description>
      <pubDate>Fri, 10 Oct 2003 06:36:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-doesn-t-work/m-p/3090442#M144688</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-10-10T06:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: lvreduce doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-doesn-t-work/m-p/3090443#M144689</link>
      <description>Konrad --&lt;BR /&gt;&lt;BR /&gt;I agree that -lm boot and vgcfgrestore should do the trick.&lt;BR /&gt;&lt;BR /&gt;From IPL:&lt;BR /&gt;&lt;BR /&gt;hpux -lm&lt;BR /&gt;&lt;BR /&gt;This will bring you into maintanence mode.&lt;BR /&gt;&lt;BR /&gt;Then :&lt;BR /&gt;/sbin/vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t5d0&lt;BR /&gt;&lt;BR /&gt;then vgchange -a y /dev/vg00&lt;BR /&gt;&lt;BR /&gt;This will HANG for several minutes while the root disk resyncs to the mirror.  Dont be alarmed.&lt;BR /&gt;&lt;BR /&gt;If it comes right back then it may be doing some work in the background so dont reboot right away.&lt;BR /&gt;&lt;BR /&gt;mount /usr&lt;BR /&gt;then do ps -ef | grep lvsync  and dont reboot until the lvsyncs complete.&lt;BR /&gt;&lt;BR /&gt;NOTE: you will also see "syncer" running but this is a totally different process.&lt;BR /&gt;&lt;BR /&gt;When the "lvsync"s are done, reboot the box.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Kent M. Ostby&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Oct 2003 06:49:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-doesn-t-work/m-p/3090443#M144689</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2003-10-10T06:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: lvreduce doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-doesn-t-work/m-p/3090444#M144690</link>
      <description>You may have to refer to the PV Number to 'lvreduce' and the seldom used '-k' option:&lt;BR /&gt; &lt;BR /&gt;A)  lvdisplay -v -k /dev/vg00/lvol* &lt;BR /&gt; &lt;BR /&gt;LE   PV1   PE1   Status 1&lt;BR /&gt;0000 1     0198  Stale&lt;BR /&gt;0001 1     0199  Stale&lt;BR /&gt;0002 1     0200  Stale&lt;BR /&gt;0003 1     0201  Stale &lt;BR /&gt; &lt;BR /&gt;B)  You'll need the value of PV1.  In this example PV1, which is stale, = 1.&lt;BR /&gt; &lt;BR /&gt;C)  lvreduce -m 0 -k /dev/vg00/lvol* 1&lt;BR /&gt; &lt;BR /&gt;Note:  Put the '1' at the end of the command.</description>
      <pubDate>Fri, 10 Oct 2003 07:45:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-doesn-t-work/m-p/3090444#M144690</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-10-10T07:45:34Z</dc:date>
    </item>
  </channel>
</rss>

