<?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: pv issue in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074625#M631003</link>
    <description>..."ioscan -funC disk only lists 2 disks"...&lt;BR /&gt;&lt;BR /&gt;Remove the "u" option.  This option 'hides' any unclaimed devices.</description>
    <pubDate>Fri, 19 Sep 2003 20:28:22 GMT</pubDate>
    <dc:creator>Scot Bean</dc:creator>
    <dc:date>2003-09-19T20:28:22Z</dc:date>
    <item>
      <title>pv issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074616#M630994</link>
      <description>We have an auditing tool that catches lvm errors, this is the error I receive: Cur PVs (3) != Act PVs (2) in VG /dev/vg_oracle_dt006&lt;BR /&gt;&lt;BR /&gt;I receive the following  when I do a vgdisplay:&lt;BR /&gt;--- Volume groups ---&lt;BR /&gt;VG Name                     /dev/vg_oracle_dt006&lt;BR /&gt;VG Write Access             read/write&lt;BR /&gt;VG Status                   available, exclusive&lt;BR /&gt;Max LV                      255&lt;BR /&gt;Cur LV                      23&lt;BR /&gt;Open LV                     23&lt;BR /&gt;Max PV                      16&lt;BR /&gt;Cur PV                      3&lt;BR /&gt;Act PV                      2&lt;BR /&gt;Max PE per PV               6399&lt;BR /&gt;VGDA                        4&lt;BR /&gt;PE Size (Mbytes)            4&lt;BR /&gt;Total PE                    6772&lt;BR /&gt;Alloc PE                    6525&lt;BR /&gt;Free PE                     247&lt;BR /&gt;Total PVG                   0&lt;BR /&gt;Total Spare PVs             0&lt;BR /&gt;Total Spare PVs in use      0&lt;BR /&gt;&lt;BR /&gt;I am trying to figure out why it is not seeing the third disk, and learn the steps to correct it.  This is on a two node cluster.  Thanks for any help.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Sep 2003 18:15:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074616#M630994</guid>
      <dc:creator>Jeff Disney</dc:creator>
      <dc:date>2003-09-18T18:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: pv issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074617#M630995</link>
      <description>Jeff,&lt;BR /&gt;&lt;BR /&gt;Maybe a bad disk?  Can you see the physical volumes with ioscan?  If yes, can you see them with diskinfo?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Sep 2003 18:19:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074617#M630995</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-09-18T18:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: pv issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074618#M630996</link>
      <description>You may have a bad disk, or corrupted lvmtab file.&lt;BR /&gt;&lt;BR /&gt;Here is a procedure that might help if the disk isn't bad.&lt;BR /&gt;&lt;BR /&gt;cd /etc&lt;BR /&gt;mv lvmtab lvmtab.save&lt;BR /&gt;# use mv, you REALLY might want that file back.&lt;BR /&gt;&lt;BR /&gt;vgchange -a /dev/vg_oracle_dt006 &lt;BR /&gt;&lt;BR /&gt;See what the pvdisplay shows afterwards.&lt;BR /&gt;&lt;BR /&gt;If this does not help, restore the original lvmtab file.&lt;BR /&gt;&lt;BR /&gt;mv /etc/lvmtab.save /etc/lvmtab&lt;BR /&gt;&lt;BR /&gt;Then run the script I'm attaching.  Change the email address, and if a disk is missing, it will give you the device driver of the bad disk.&lt;BR /&gt;&lt;BR /&gt;Then its a hardware call.&lt;BR /&gt;&lt;BR /&gt;If you don't have external sendmail set, you can route the mail to the root account.&lt;BR /&gt;&lt;BR /&gt;See attachment.  disk.status&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 18 Sep 2003 18:20:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074618#M630996</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-09-18T18:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: pv issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074619#M630997</link>
      <description>Oh, I forgot.&lt;BR /&gt;&lt;BR /&gt;Look at dmesg&lt;BR /&gt;&lt;BR /&gt;look at ioscan -fnC disk&lt;BR /&gt;&lt;BR /&gt;See unclaimed or NO_HW disks.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 18 Sep 2003 18:21:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074619#M630997</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-09-18T18:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: pv issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074620#M630998</link>
      <description>&lt;BR /&gt;  Once again try to activate the VG&lt;BR /&gt;&lt;BR /&gt;  # vgchange -a y /dev/vg_oracle_dt006&lt;BR /&gt;&lt;BR /&gt;  Dont have to deactivate before trying !&lt;BR /&gt;&lt;BR /&gt;  If one of ur PV was offline for some reason while VG was getting activated at bootime and later on even if the PV comes back online , the VG wont automatically include the PV ( I believe so ! )&lt;BR /&gt;&lt;BR /&gt;  Nothing to loose, try it out :-)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Sep 2003 18:23:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074620#M630998</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2003-09-18T18:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: pv issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074621#M630999</link>
      <description>Hi Jeff,&lt;BR /&gt;&lt;BR /&gt;If you're not receiving any error msgs on this, it could be that a 3rd drive was used to extend the VG, but no new LVs have been created to occupy the space.&lt;BR /&gt;Do an &lt;BR /&gt;vgdisplay -v /dev/vg_oracle_dt006&lt;BR /&gt;To see the PVs defined - then do a&lt;BR /&gt;lvdisplay -v /dev/vg_oracle_dt006/lv_name | more&lt;BR /&gt;to see the layout then do &lt;BR /&gt;pvdisplay -v /dev/dsk/cXtYdZ&lt;BR /&gt;to see how the PEs are layed out &amp;amp; what LVs occupy space on what PV.&lt;BR /&gt;&lt;BR /&gt;Also what devices does /etc/lvmtab show for /dev/vg_oracle_dt006?&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Thu, 18 Sep 2003 18:28:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074621#M630999</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-09-18T18:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: pv issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074622#M631000</link>
      <description>Do "vgdisplay -v /dev/vg_oracle_dt006" and note the three PVs in this VG.&lt;BR /&gt;Then do "ioscan -funC disk" and see if all the three disks has state as claimed.&lt;BR /&gt;You might have bad disk.</description>
      <pubDate>Thu, 18 Sep 2003 19:53:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074622#M631000</guid>
      <dc:creator>GK_5</dc:creator>
      <dc:date>2003-09-18T19:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: pv issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074623#M631001</link>
      <description>When I do ioscan -funC it only lists two disks, is there another way to find the missing disk that is attached to the vg?</description>
      <pubDate>Fri, 19 Sep 2003 17:08:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074623#M631001</guid>
      <dc:creator>Jeff Disney</dc:creator>
      <dc:date>2003-09-19T17:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: pv issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074624#M631002</link>
      <description>Jeff,&lt;BR /&gt;&lt;BR /&gt;Try running "vgscan -a -p -v" and see if you can match up a missing disk in that listing.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Sep 2003 17:12:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074624#M631002</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-09-19T17:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: pv issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074625#M631003</link>
      <description>..."ioscan -funC disk only lists 2 disks"...&lt;BR /&gt;&lt;BR /&gt;Remove the "u" option.  This option 'hides' any unclaimed devices.</description>
      <pubDate>Fri, 19 Sep 2003 20:28:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074625#M631003</guid>
      <dc:creator>Scot Bean</dc:creator>
      <dc:date>2003-09-19T20:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: pv issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074626#M631004</link>
      <description>Firstly: do a "vgdisplay -v" on that VG. Make a note of the PV names recorded at the end of the vgdisplay output.&lt;BR /&gt;Secondly: do "strings /etc/lvmtab &amp;gt; /var/lvmtab_garbage". Cat or more the file /var/lvmtab_garbage, and see what is recorded under the entry for your VG.&lt;BR /&gt;&lt;BR /&gt;There should be a clear discrepancy: one disk should show up on the VGDISPLAY but not in the LVMTAB output. &lt;BR /&gt;Now, check the VGDISPLAY again: are any LVOLS marked as unavailable? If not, then the disk simply has something in the VGDA that implies that it is owned by that VG. If you do an IOSCAN, does that disk come up as a seperate disk, or as an additional Special File or path to an existing disk? Sometimes, injudicious use of INSF can create an extra special file that confuses LVM. If there is actually a disk with that name, you will have to do:&lt;BR /&gt;"dd if=/dev/null of=/dev/rdsk/funnydisk count=100". BEWARE: You MUST be sure of what you are doing in this case. &lt;BR /&gt;Then do a "vgchange -a y " for that VG, and the problem should be fixed.&lt;BR /&gt;&lt;BR /&gt;If any LVOLS are actually marked as unavailable, you have a problem.&lt;BR /&gt;That implies that the disk went unavailable prior to the last VGSCAN. I hope you have backups....&lt;BR /&gt;Fix the disk, then: &lt;BR /&gt;pvcreate /dev/rdsk/funnydisk&lt;BR /&gt;vgcfgrestore -n VGNAME /dev/rdsk/funnydisk &lt;BR /&gt;mv /etc/lvmtab /etc/lvmtab.old (IMPORTANT BIT!)&lt;BR /&gt;vgscan -av &lt;BR /&gt;This will re-create your LVMTAB by re-scanning all the disks. &lt;BR /&gt;Do the "strings /etc/lvmtab" thing again to see what LVM thinks</description>
      <pubDate>Mon, 22 Sep 2003 05:19:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pv-issue/m-p/3074626#M631004</guid>
      <dc:creator>Jakes Louw</dc:creator>
      <dc:date>2003-09-22T05:19:30Z</dc:date>
    </item>
  </channel>
</rss>

