<?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: In vgdisplay Cur LV != Open LV in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/in-vgdisplay-cur-lv-open-lv/m-p/2773096#M636639</link>
    <description>Can you post what you are looking at so we can see it as well?  It would be a great help.</description>
    <pubDate>Fri, 26 Jul 2002 00:57:08 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2002-07-26T00:57:08Z</dc:date>
    <item>
      <title>In vgdisplay Cur LV != Open LV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/in-vgdisplay-cur-lv-open-lv/m-p/2773095#M636638</link>
      <description>On one of our systems I see that the current number of logical volumes in vg00 does not equal the number of logical volumes currently open.  The host does not seem to have any unusual problems because of this.&lt;BR /&gt;&lt;BR /&gt;There are 16 pairs of files in the /dev/vg00 directory, which matches the 16 "open" LVs.  However, there are 18 reported as "Cur LV".  &lt;BR /&gt;&lt;BR /&gt;Unfortunately, due to additions/deletions the minor numbers are all over the map ranging from 0x000001 to 0x00001c.&lt;BR /&gt;&lt;BR /&gt;How can I find out which ones are missing?  Are there other things which could cause the Cur LV to not match Open LV?</description>
      <pubDate>Fri, 26 Jul 2002 00:21:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/in-vgdisplay-cur-lv-open-lv/m-p/2773095#M636638</guid>
      <dc:creator>Steve Bonds</dc:creator>
      <dc:date>2002-07-26T00:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: In vgdisplay Cur LV != Open LV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/in-vgdisplay-cur-lv-open-lv/m-p/2773096#M636639</link>
      <description>Can you post what you are looking at so we can see it as well?  It would be a great help.</description>
      <pubDate>Fri, 26 Jul 2002 00:57:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/in-vgdisplay-cur-lv-open-lv/m-p/2773096#M636639</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-07-26T00:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: In vgdisplay Cur LV != Open LV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/in-vgdisplay-cur-lv-open-lv/m-p/2773097#M636640</link>
      <description>My guess is the device file for the 2 "mysterious" LVs are were deleted, that's why Cur LV does not match Open LV. The minor numbers are increment (eg: 0x000001 , 0x000002, 0x000003 and so on). So it goes from 0-&amp;gt;9,a-&amp;gt;f and 10-&amp;gt;11 (ie 18 all together for your case). Now all you have to do is look in /dev/vg00 and find out which minor number is missing.&lt;BR /&gt;So for instance 6 and 7 are missing. Before that for all the disks (PVs) in vg00, run this..&lt;BR /&gt;# pvdisplay -v /dev/rdsk/cXtYdZ | more&lt;BR /&gt;==&amp;gt; I think in the extents where the missing LV is you should see "???" in the output.&lt;BR /&gt;If you se it proceed ... we have to recreate the device file until the correct minor number is found for the pvdisplay to NOT show "???".&lt;BR /&gt;Now you manually create the "missing LV" (call it lvol99)&lt;BR /&gt;# mknod /dev/vg00/lvol99 b 64 0x000006&lt;BR /&gt;# mknod /dev/vg00/rlvol99 c 64 0x000006&lt;BR /&gt;Run the "pvdisplay" again and if you still see "???", remove the "lvol99" file and recreate it with the next minor number. Repeat till you get the correct one.&lt;BR /&gt;As you can see it can get quite messy. ANy additional input from you will help.&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Jul 2002 01:24:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/in-vgdisplay-cur-lv-open-lv/m-p/2773097#M636640</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-07-26T01:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: In vgdisplay Cur LV != Open LV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/in-vgdisplay-cur-lv-open-lv/m-p/2773098#M636641</link>
      <description>S.K.:&lt;BR /&gt;&lt;BR /&gt;I had hoped to avoid the brute-force approach-- but it worked!  Thanks for suggesting it.&lt;BR /&gt;&lt;BR /&gt;I used "ls -l /dev/vg00 | sort +5" to give me a nice list of all the LVs, sorted in minor number order.&lt;BR /&gt;&lt;BR /&gt;Then I used a manual list of missing minor numbers to build a script to create all the devices:&lt;BR /&gt;&lt;BR /&gt;foreach minor in 09 0c 10 11 12 14 15 16 17 18 19 1b; do echo mknod /dev/vg00/mia_${minor} c 64 0x0000${minor}; echo mknod /dev/vg00/rmia_${minor} b 64 0x0000${minor}; done &amp;gt; /tmp/make-minors.sh&lt;BR /&gt;&lt;BR /&gt;Then I just ran "sh /tmp/make-minors.sh" (after verifying that it looked good)&lt;BR /&gt;&lt;BR /&gt;Now "pvdisplay -v" shows me which LVs were missing but still allocated.  Now for a little judicious use of "lvremove"...&lt;BR /&gt;&lt;BR /&gt;Thanks for the help.&lt;BR /&gt;&lt;BR /&gt;PS: Here's what I saw that was odd: [Note the Cur LV vs. Open LV]&lt;BR /&gt;&lt;BR /&gt;# vgdisplay vg00&lt;BR /&gt;--- Volume groups ---&lt;BR /&gt;VG Name                     /dev/vg00&lt;BR /&gt;VG Write Access             read/write&lt;BR /&gt;VG Status                   available&lt;BR /&gt;Max LV                      255&lt;BR /&gt;Cur LV                      18&lt;BR /&gt;Open LV                     16&lt;BR /&gt;Max PV                      16&lt;BR /&gt;Cur PV                      2&lt;BR /&gt;Act PV                      2&lt;BR /&gt;Max PE per PV               2500&lt;BR /&gt;VGDA                        4&lt;BR /&gt;PE Size (Mbytes)            4&lt;BR /&gt;Total PE                    4338&lt;BR /&gt;Alloc PE                    3964&lt;BR /&gt;Free PE                     374&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;PPS: It was "19" and "1b" that had been removed without removing their allocated logical extents.&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Jul 2002 01:51:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/in-vgdisplay-cur-lv-open-lv/m-p/2773098#M636641</guid>
      <dc:creator>Steve Bonds</dc:creator>
      <dc:date>2002-07-26T01:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: In vgdisplay Cur LV != Open LV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/in-vgdisplay-cur-lv-open-lv/m-p/2773099#M636642</link>
      <description>Cool ! It's good to see you got more creative than me. I merely point the way, you completed the journey :)</description>
      <pubDate>Fri, 26 Jul 2002 01:58:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/in-vgdisplay-cur-lv-open-lv/m-p/2773099#M636642</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-07-26T01:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: In vgdisplay Cur LV != Open LV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/in-vgdisplay-cur-lv-open-lv/m-p/2773100#M636643</link>
      <description>A note for future searchers who might try this:&lt;BR /&gt;&lt;BR /&gt;I reversed the character and block devices in my mini-script.  It should be instead:&lt;BR /&gt;&lt;BR /&gt;foreach minor in 09 0c 10 11 12 14 15 16 17 18 19 1b; do echo mknod /dev/vg00/mia_${minor} b 64 0x0000${minor}; echo mknod /dev/vg00/rmia_${minor} c 64 0x0000${minor}; done &amp;gt; /tmp/make-minors.sh &lt;BR /&gt;&lt;BR /&gt;(The "b" and "c" were reversed.)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Jul 2002 03:01:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/in-vgdisplay-cur-lv-open-lv/m-p/2773100#M636643</guid>
      <dc:creator>Steve Bonds</dc:creator>
      <dc:date>2002-07-26T03:01:42Z</dc:date>
    </item>
  </channel>
</rss>

