<?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 error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-error/m-p/2577065#M647409</link>
    <description>Hi William,&lt;BR /&gt;&lt;BR /&gt;Do the following &lt;BR /&gt;echo 2000?8c+8x|adb /dev/dsk/c6t1d0&lt;BR /&gt;and if it returns any info such as LVMRECxxxx then that disk belongs to a VG.&lt;BR /&gt;&lt;BR /&gt;Also what if you try to create a LV on that disk?&lt;BR /&gt;&lt;BR /&gt;Also which LVM patches are installed on your machine?&lt;BR /&gt;I know there was a patch in the past PHCO_20870 which fixed a similar problem. The latest LVM cumulative patch is PHCO_24437, Make sure you get the dependcy patches as well in case you decide to install this.&lt;BR /&gt;&lt;BR /&gt;-HTH&lt;BR /&gt;Ramesh</description>
    <pubDate>Fri, 07 Sep 2001 19:04:22 GMT</pubDate>
    <dc:creator>linuxfan</dc:creator>
    <dc:date>2001-09-07T19:04:22Z</dc:date>
    <item>
      <title>vgreduce error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-error/m-p/2577061#M647405</link>
      <description>I have an odd situation:&lt;BR /&gt;&lt;BR /&gt;I got into a situation (long story) whereby a pvdisplay of a drive shows 500 PE used in the header, yet all PE show as "free" in the detail list. There are no LV allocated to the drive (I'm sure!), yet vgdisplay still shows the drive as belonging to the VG.&lt;BR /&gt;&lt;BR /&gt;I have tried to vgreduce the drive out from  the VG, but the command fails, insisting that there are still PE assigned.&lt;BR /&gt;&lt;BR /&gt;How can I force this drive out of the VG?&lt;BR /&gt;&lt;BR /&gt;Can I physically remove the drive from the FC10 and replace with a new drive? I have a spare onhand.&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Sep 2001 18:14:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-error/m-p/2577061#M647405</guid>
      <dc:creator>William Baines</dc:creator>
      <dc:date>2001-09-07T18:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: vgreduce error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-error/m-p/2577062#M647406</link>
      <description>you can vgreduce the disk from the volume&lt;BR /&gt;with the -f option for Force.</description>
      <pubDate>Fri, 07 Sep 2001 18:31:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-error/m-p/2577062#M647406</guid>
      <dc:creator>Mark Mitchell</dc:creator>
      <dc:date>2001-09-07T18:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: vgreduce error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-error/m-p/2577063#M647407</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Are you very sure that pvdisplay -v /dev/dsk/cxtxdx doesn't show any lv's associated with it?..&lt;BR /&gt;&lt;BR /&gt;Check&lt;BR /&gt;&lt;BR /&gt;pvdisplay -v /dev/dsk/your_dev_file |grep current&lt;BR /&gt;&lt;BR /&gt;If it shows something there, means it's being used.&lt;BR /&gt;&lt;BR /&gt;You can replace this disk and do a vgcfgrestore but it's better to fix the problem first than forcing the drive out.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Sep 2001 18:31:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-error/m-p/2577063#M647407</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-09-07T18:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: vgreduce error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-error/m-p/2577064#M647408</link>
      <description>Thanks for your suggestions!&lt;BR /&gt;&lt;BR /&gt;I am sure that there are no LV on the affected drive. I ran pvdisplay -v /dev/dsk/c6d1t0 and all PE show as "free".&lt;BR /&gt;&lt;BR /&gt;When I run vgdisplay -v I still see the drive:&lt;BR /&gt;&lt;BR /&gt;   PV Name                     /dev/dsk/c6t1d0&lt;BR /&gt;   PV Status                   available&lt;BR /&gt;   Total PE                    4340&lt;BR /&gt;   Free PE                     3840&lt;BR /&gt;   Autoswitch                  On&lt;BR /&gt;===============================================&lt;BR /&gt;When I run pvdisplay I get the following:&lt;BR /&gt;--- Physical volumes ---&lt;BR /&gt;PV Name                     /dev/dsk/c6t1d0&lt;BR /&gt;VG Name                     /dev/vgora02&lt;BR /&gt;PV Status                   available&lt;BR /&gt;Allocatable                 yes&lt;BR /&gt;VGDA                        2&lt;BR /&gt;Cur LV                      0&lt;BR /&gt;PE Size (Mbytes)            4&lt;BR /&gt;Total PE                    4340&lt;BR /&gt;Free PE                     3840&lt;BR /&gt;Allocated PE                500&lt;BR /&gt;Stale PE                    0&lt;BR /&gt;IO Timeout (Seconds)        default&lt;BR /&gt;Autoswitch                  On&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   --- Physical extents ---&lt;BR /&gt;   PE   Status   LV                 LE&lt;BR /&gt;   0000 free                        0000&lt;BR /&gt;   0001 free                        0000&lt;BR /&gt;   0002 free                        0000&lt;BR /&gt;   0003 free                        0000&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;   4337 free                        0000&lt;BR /&gt;   4338 free                        0000&lt;BR /&gt;   4339 free                        0000&lt;BR /&gt;&lt;BR /&gt;==========================================&lt;BR /&gt;I tried using the vgreduce -f option, but it had no effect. My only other plan at the moment is to physically remove the affected drive and then try the vgreduce -f option again.&lt;BR /&gt;The drive is good, only the VG/LV/PV info is out of sync.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Sep 2001 18:50:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-error/m-p/2577064#M647408</guid>
      <dc:creator>William Baines</dc:creator>
      <dc:date>2001-09-07T18:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: vgreduce error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-error/m-p/2577065#M647409</link>
      <description>Hi William,&lt;BR /&gt;&lt;BR /&gt;Do the following &lt;BR /&gt;echo 2000?8c+8x|adb /dev/dsk/c6t1d0&lt;BR /&gt;and if it returns any info such as LVMRECxxxx then that disk belongs to a VG.&lt;BR /&gt;&lt;BR /&gt;Also what if you try to create a LV on that disk?&lt;BR /&gt;&lt;BR /&gt;Also which LVM patches are installed on your machine?&lt;BR /&gt;I know there was a patch in the past PHCO_20870 which fixed a similar problem. The latest LVM cumulative patch is PHCO_24437, Make sure you get the dependcy patches as well in case you decide to install this.&lt;BR /&gt;&lt;BR /&gt;-HTH&lt;BR /&gt;Ramesh</description>
      <pubDate>Fri, 07 Sep 2001 19:04:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-error/m-p/2577065#M647409</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-09-07T19:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: vgreduce error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-error/m-p/2577066#M647410</link>
      <description>When I run the adb command line I get:&lt;BR /&gt;2000:           LVMREC016057    3A75    3B82    9C23    6057    3A75    3B82&lt;BR /&gt;                9F16&lt;BR /&gt;&lt;BR /&gt;I'll check the patch levels as suggested. I know the server has the DEC2000 General Release Bundle loaded.&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Sep 2001 19:09:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-error/m-p/2577066#M647410</guid>
      <dc:creator>William Baines</dc:creator>
      <dc:date>2001-09-07T19:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: vgreduce error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-error/m-p/2577067#M647411</link>
      <description>I checked the patch level for LVM:&lt;BR /&gt;I have PHCO_21630 LVM commands cumulative patch loaded.&lt;BR /&gt;&lt;BR /&gt;A little history on what happened:&lt;BR /&gt;I was "borrowing" a mirror disk from one LV to another so that I could then break a mirror set and replace a 10K rpm drive with a faster 15k rpm drive. After the switch I would then return the mirror drive back to the original LV.&lt;BR /&gt;&lt;BR /&gt;I used lvreduce -m 0 ... to reduce the mirror set and then used lvextend -m 1 /dev/vgxxx/lvxxx /dev/dsk/c5t1d0 /dev/dsk/c6t1d0 to add the mirror (I have two paths to the FC10).&lt;BR /&gt;&lt;BR /&gt;I found out that there was also a smaller 2000MB (500 PE) residing on the disk that I missed. Instead of the system failing with a "too many extents" error, it proceeded to add the new mirror to the drive and over-allocated the PE somehow.&lt;BR /&gt;&lt;BR /&gt;I was able to lvreduce -m 0 the newly created mirror and the smaller 2000MB mirror but the 500 over-allocated PE remain.&lt;BR /&gt;&lt;BR /&gt;*sigh*&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Sep 2001 19:36:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-error/m-p/2577067#M647411</guid>
      <dc:creator>William Baines</dc:creator>
      <dc:date>2001-09-07T19:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: vgreduce error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-error/m-p/2577068#M647412</link>
      <description>vgreduce -f will delete the PV that doesn't belong to the volume group but still sits in /etc/lvmtab. &lt;BR /&gt;&lt;BR /&gt;As Ramesh suggested, try creating few logical volumes on the drive and then delete them. And then try reducing it.&lt;BR /&gt;&lt;BR /&gt;If this doesn't work, I think you are left with no option except to replace the disk.&lt;BR /&gt;&lt;BR /&gt;After replacing the disk, do a vgcfgrestore, then vgchange -a, reduce it from the volume group and re-add it to make it clean.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Sep 2001 20:35:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-error/m-p/2577068#M647412</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-09-07T20:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: vgreduce error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-error/m-p/2577069#M647413</link>
      <description>Hello all,&lt;BR /&gt;&lt;BR /&gt;This weekend I was able to take the system down for maintenance. I unmounted the filesystems on the affected volume group and de-activated it (vgchange -a n ). Then I was able to restore the proper config to the disk (vgcfgrestore -n vgxxx /dev/rdsk/cx/tx/d0).&lt;BR /&gt;&lt;BR /&gt;Thanks to all for the advice and points have been assigned.&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Sep 2001 12:25:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgreduce-error/m-p/2577069#M647413</guid>
      <dc:creator>William Baines</dc:creator>
      <dc:date>2001-09-24T12:25:18Z</dc:date>
    </item>
  </channel>
</rss>

