<?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: reading LVM headers in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/reading-lvm-headers/m-p/5006393#M425612</link>
    <description>pure madness I say, but you deserve 1 point for  the story :-)&lt;BR /&gt;&lt;BR /&gt;anyways, if someone could post the lvm11 script here I'd be very grateful, as I currently do not have my pets under contract from HP</description>
    <pubDate>Tue, 03 Oct 2006 03:12:09 GMT</pubDate>
    <dc:creator>Michal Toth</dc:creator>
    <dc:date>2006-10-03T03:12:09Z</dc:date>
    <item>
      <title>reading LVM headers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reading-lvm-headers/m-p/5006389#M425608</link>
      <description>hi all,&lt;BR /&gt;&lt;BR /&gt;i just wonder, if there is a way how to read LVM headers off existing physical volumes (VGRA, PVRA). Or if someone could direct me to a document that describes the format so I could write a tool myself... &lt;BR /&gt;&lt;BR /&gt;thanks and regards&lt;BR /&gt;&lt;BR /&gt;Michal</description>
      <pubDate>Mon, 02 Oct 2006 13:39:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reading-lvm-headers/m-p/5006389#M425608</guid>
      <dc:creator>Michal Toth</dc:creator>
      <dc:date>2006-10-02T13:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: reading LVM headers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reading-lvm-headers/m-p/5006390#M425609</link>
      <description>HP has a script names lvm11 and you can get it from HP. I can attach if I have that script.</description>
      <pubDate>Mon, 02 Oct 2006 13:41:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reading-lvm-headers/m-p/5006390#M425609</guid>
      <dc:creator>IT_2007</dc:creator>
      <dc:date>2006-10-02T13:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: reading LVM headers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reading-lvm-headers/m-p/5006391#M425610</link>
      <description>You can do something like this:&lt;BR /&gt; &lt;BR /&gt;dd if=/dev/rdsk/c0t5d0 | xd -xc | more&lt;BR /&gt; &lt;BR /&gt;Not pretty but it shows the raw data at the beginning of the disk. Use offsets in dd to move around. Naturally, you'll need a lot of details about the VGRA, BDRA, and other LVM structures to make sense of the data.</description>
      <pubDate>Mon, 02 Oct 2006 15:56:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reading-lvm-headers/m-p/5006391#M425610</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-10-02T15:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: reading LVM headers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reading-lvm-headers/m-p/5006392#M425611</link>
      <description>Ok, Bill's reply triggered me to write up this somewhate related recent war story...&lt;BR /&gt;&lt;BR /&gt;I actually was checking out LVM headers myself last week.&lt;BR /&gt;You see, I have a modest rx2620 which I boot for HPUX or OpenVMS based on my needs.&lt;BR /&gt;It has 3 x 73 GB drives which I want to use all for OpenVMS performance experiments.&lt;BR /&gt;So I want to reserve an HPUX LVM Logical Volume as play area for VMS.&lt;BR /&gt;Now as long as I knew where the LV starts on the drive, I could use the OpenVMS psuedo disk LD-driver to 'map' a disk in a range of blocks with neglectable performance impact.&lt;BR /&gt;&lt;BR /&gt;VGdisplay -v gives the PE number for the LV start, but this does NOT map directly to a block number on the disk due to those LVM headers (and the EFI partitioning 512MB).&lt;BR /&gt;So here is the brute force method I succesfully deployed:&lt;BR /&gt;- using " dd -count=1 -bs=1k " wrote a 1KB file with the words 'first first first...' in it to the raw volume for a selected LV.&lt;BR /&gt;- using " dd -oseek=(LV_SIZE*PE_SIZE -1) -bs=1k -count=1 " wrote a 1KB file with 'last last last ..." to the last KB in the LV raw device.&lt;BR /&gt;- Boot OpenVMS&lt;BR /&gt;- Write program to scan raw disk for text starting from a selected block (SMOP :-)&lt;BR /&gt;- Scanned for 'first first ' -- Found start!&lt;BR /&gt;- Scanned for 'last last ' -- Found end!&lt;BR /&gt;- Verified distance was size of LV&lt;BR /&gt;- mapped OpenVMS LDdrive onto block range.&lt;BR /&gt;- repeat for second drive... Presto!&lt;BR /&gt;&lt;BR /&gt;Now I can use my hpux data and os disk drives as data drives for my OpenVMS tests!&lt;BR /&gt;&lt;BR /&gt;Fun fun fun... for crazy folks like myself.&lt;BR /&gt;&lt;BR /&gt;Grins,&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt;HdvH Performance Consulting.&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Oct 2006 23:16:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reading-lvm-headers/m-p/5006392#M425611</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-10-02T23:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: reading LVM headers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reading-lvm-headers/m-p/5006393#M425612</link>
      <description>pure madness I say, but you deserve 1 point for  the story :-)&lt;BR /&gt;&lt;BR /&gt;anyways, if someone could post the lvm11 script here I'd be very grateful, as I currently do not have my pets under contract from HP</description>
      <pubDate>Tue, 03 Oct 2006 03:12:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reading-lvm-headers/m-p/5006393#M425612</guid>
      <dc:creator>Michal Toth</dc:creator>
      <dc:date>2006-10-03T03:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: reading LVM headers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reading-lvm-headers/m-p/5006394#M425613</link>
      <description>Hi Michal,&lt;BR /&gt;&lt;BR /&gt;Try this link.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=40687" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=40687&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Tue, 03 Oct 2006 03:20:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reading-lvm-headers/m-p/5006394#M425613</guid>
      <dc:creator>Robert-Jan Goossens_1</dc:creator>
      <dc:date>2006-10-03T03:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: reading LVM headers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reading-lvm-headers/m-p/5006395#M425614</link>
      <description>You could use the folowing:&lt;BR /&gt;&lt;BR /&gt;Read the LVM record identification:&lt;BR /&gt;#echo 0x2000?4s | adb /dev/dsk/c0t6d0&lt;BR /&gt;&lt;BR /&gt;Read the PVID:&lt;BR /&gt;#echo 0x2000?4X | adb /dev/dsk/c0t6d0&lt;BR /&gt;2000: 4C564d52 45433031 78261D3A 391C79BF&lt;BR /&gt;The 3rd and 4th fields make up the PVID&lt;BR /&gt;78261D3A391C79BF&lt;BR /&gt;&lt;BR /&gt;Read the VGID:&lt;BR /&gt;#echo 0x12000?8X | adb /dev/dsk/c0t6d0&lt;BR /&gt;12000:  4C564d52   45433031   78261D3A 91C79BF 78261D3A   391C79C0   1FC74B  0     &lt;BR /&gt;&lt;BR /&gt;The VGID is the 5th and 6th fields: &lt;BR /&gt;78261D3A391C79C0&lt;BR /&gt;&lt;BR /&gt;Read the cluster ID (if in use on a cluster):&lt;BR /&gt;#echo 0x12080?8X | adb /dev/dsk/c0t6d0&lt;BR /&gt;12080: 0  1  1FC740  392C0AE1  100  0  0  0&lt;BR /&gt;&lt;BR /&gt;The cluster ID is the 4th field:&lt;BR /&gt;392C0AE1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope that helps</description>
      <pubDate>Tue, 03 Oct 2006 03:35:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reading-lvm-headers/m-p/5006395#M425614</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2006-10-03T03:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: reading LVM headers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reading-lvm-headers/m-p/5006396#M425615</link>
      <description>thank you all</description>
      <pubDate>Tue, 03 Oct 2006 03:46:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reading-lvm-headers/m-p/5006396#M425615</guid>
      <dc:creator>Michal Toth</dc:creator>
      <dc:date>2006-10-03T03:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: reading LVM headers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reading-lvm-headers/m-p/5006397#M425616</link>
      <description>got nice answers</description>
      <pubDate>Tue, 03 Oct 2006 03:46:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reading-lvm-headers/m-p/5006397#M425616</guid>
      <dc:creator>Michal Toth</dc:creator>
      <dc:date>2006-10-03T03:46:58Z</dc:date>
    </item>
  </channel>
</rss>

