<?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: recover the VGID in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995824#M423341</link>
    <description>Hi Rick:&lt;BR /&gt;&lt;BR /&gt;A mapfile is only for associated non-standard logical volume names with logical volume numbers, so its absence is not a "big deal".  It is truly optional.&lt;BR /&gt;&lt;BR /&gt;You can create a mapfile from scratch like:&lt;BR /&gt;&lt;BR /&gt;1 lvol1&lt;BR /&gt;2 mylvol2&lt;BR /&gt;3 mylvol3&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;At at later time you can change the logical volume (name) associations if you wish by renaming the '/dev/vgNN/*' files associated with each logical volume and editing '/etc/fstab' appropriately.&lt;BR /&gt;&lt;BR /&gt;As for the missing VGID for your 'vgimport' you can always use: &lt;BR /&gt;&lt;BR /&gt;# vgscan -pv&lt;BR /&gt;&lt;BR /&gt;...to *preview* what would be the creation of your '/etc/lvmtab' but *not* really update it.  Doing this will examine the VGID of every disk on the system, and collect in the output the physical volumes comprising each volume group.  From that output, you can build a *file* that specifies the physical members of your volume group.  Then do:&lt;BR /&gt;&lt;BR /&gt;# vgimport -m mapfile -f infile vg_name &lt;BR /&gt;&lt;BR /&gt;...where the mapfile has been created (or omitted) as noted above; and the 'infile' is the list of physical devices deduced from the 'vgscan'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Mon, 07 Aug 2006 13:44:30 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2006-08-07T13:44:30Z</dc:date>
    <item>
      <title>recover the VGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995814#M423331</link>
      <description>Working with HPUX 11.11 and SG 11.15&lt;BR /&gt;Multiple steps here so let me list them&lt;BR /&gt;&lt;BR /&gt;We are swapping from XP to EMC disks. On system A I was able to activate a VG, vgexport it out with the -s option to retain the VGID, copy the map file over to system B nad vgimport. All was good for this initial VG.&lt;BR /&gt;&lt;BR /&gt;On the next VG, I exported the VG out but forgot the -s option to get the VGID. Now I cannot vgimport the VG back into the original system. I am getting the foillowing error:&lt;BR /&gt;&lt;BR /&gt;How to fix?&lt;BR /&gt;&lt;BR /&gt;vgimport -m vgpkg1_new -p -v vgpkg1_new&lt;BR /&gt;Beginning the import process on Volume Group "vgpkg1_new".&lt;BR /&gt;vgimport: Unable to read the physical volume.root</description>
      <pubDate>Mon, 07 Aug 2006 12:11:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995814#M423331</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2006-08-07T12:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: recover the VGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995815#M423332</link>
      <description>Maybe this link should be of help:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=999129" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=999129&lt;/A&gt;</description>
      <pubDate>Mon, 07 Aug 2006 12:19:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995815#M423332</guid>
      <dc:creator>Deoncia Grayson_1</dc:creator>
      <dc:date>2006-08-07T12:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: recover the VGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995816#M423333</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Suggestion:&lt;BR /&gt;Export it with the -m -p on the second node and then transfer the map file to the troublesome node and vgimport it.&lt;BR /&gt;&lt;BR /&gt;Or have you already tried this?&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 07 Aug 2006 12:19:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995816#M423333</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-08-07T12:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: recover the VGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995817#M423334</link>
      <description>Rick,&lt;BR /&gt;&lt;BR /&gt;Without the -s option, don't you have to give the physical path of the volumes?  i.e.:&lt;BR /&gt;&lt;BR /&gt;vgimport -v /dev/vg01 /dev/dsk/c0t1d0 &lt;BR /&gt;/dev/dsk/c0t3d0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 07 Aug 2006 12:20:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995817#M423334</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-08-07T12:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: recover the VGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995818#M423335</link>
      <description>As long as you know one fo the device files that was used originally, you should be able to use this command (found on some other thread with a Google search - &lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=110348&amp;amp;admit=-682735245+1154971046514+28353475)" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=110348&amp;amp;admit=-682735245+1154971046514+28353475)&lt;/A&gt; to see what the VGID was:&lt;BR /&gt;&lt;BR /&gt;echo 0x2010?2X|adb /dev/dsk/cXtYdZ|expand|tr -d " "|sed "s/2010:/VGID /"&lt;BR /&gt;&lt;BR /&gt;Once you have that, you should be able to add the:&lt;BR /&gt;&lt;BR /&gt;VGID whatever&lt;BR /&gt;&lt;BR /&gt;to the beginning of your map file just as if you'd used the -s option.</description>
      <pubDate>Mon, 07 Aug 2006 12:21:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995818#M423335</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2006-08-07T12:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: recover the VGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995819#M423336</link>
      <description>One cavaet, I no longer have the XP hooked up to the system.&lt;BR /&gt;&lt;BR /&gt;I cannot vgexport from the other machine to get a map file from there. That VG is not in the lvmtab&lt;BR /&gt;&lt;BR /&gt;I am vgscanning now to see if that will help by putting in the VG. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Aug 2006 12:31:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995819#M423336</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2006-08-07T12:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: recover the VGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995820#M423337</link>
      <description>using the command above on one of the disks you know should be in the vg. &lt;BR /&gt;&lt;BR /&gt;Or just loop through all of you disks. grab the unique VGIDS add them to the appropriate mapfiles with your favorite editor and vgimport with the map file. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Aug 2006 12:42:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995820#M423337</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2006-08-07T12:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: recover the VGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995821#M423338</link>
      <description>If you have a conf file in the /etc/lvmconf dir "vgpkg1_new.conf" then you can insert the VGID on the top of the map file using any one of the PVs that are listed:&lt;BR /&gt;&lt;BR /&gt;1. Obtain list of PVs in this VG&lt;BR /&gt;vgcfgrestore -l -n vgpkg1_new&lt;BR /&gt;&lt;BR /&gt;2. Use one of the PVs (say /dev/dsk/c3t6d0) listed above, obtain its VGID&lt;BR /&gt;echo '0x2010?2X'|adb /dev/dsk/c3t6d0|tr -d ' '|awk -F: '{print "VGID "tolower($2)}'&lt;BR /&gt;&lt;BR /&gt;3. Insert the output of line 2 to the top of the mapfile and re-import vgpkg1_new.&lt;BR /&gt;&lt;BR /&gt;~hope it helps&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Aug 2006 13:07:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995821#M423338</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-08-07T13:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: recover the VGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995822#M423339</link>
      <description>Hi Rick,&lt;BR /&gt;&lt;BR /&gt;have you checked doc id: 3100632244&lt;BR /&gt; in the Tech base?&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Mon, 07 Aug 2006 13:11:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995822#M423339</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2006-08-07T13:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: recover the VGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995823#M423340</link>
      <description>Hi Rick,&lt;BR /&gt;&lt;BR /&gt;   It is very painful to identify and recover them.&lt;BR /&gt;&lt;BR /&gt;Try out this way:&lt;BR /&gt;&lt;BR /&gt;1. If you remember LUN serial number or identifier then find out what are new device names on EMC array.&lt;BR /&gt;2. Once you identify them then put them all in one file (one device name per line)&lt;BR /&gt;3. Run following script.&lt;BR /&gt;&lt;BR /&gt;for i in `cat devices.txt`&lt;BR /&gt;do&lt;BR /&gt;vgimport -m vgname.map -s -v $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;   This script will check them and may complain that it doesn't have a valid CPU identifier but which is ok.&lt;BR /&gt;&lt;BR /&gt;Hope this one help.</description>
      <pubDate>Mon, 07 Aug 2006 13:30:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995823#M423340</guid>
      <dc:creator>IT_2007</dc:creator>
      <dc:date>2006-08-07T13:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: recover the VGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995824#M423341</link>
      <description>Hi Rick:&lt;BR /&gt;&lt;BR /&gt;A mapfile is only for associated non-standard logical volume names with logical volume numbers, so its absence is not a "big deal".  It is truly optional.&lt;BR /&gt;&lt;BR /&gt;You can create a mapfile from scratch like:&lt;BR /&gt;&lt;BR /&gt;1 lvol1&lt;BR /&gt;2 mylvol2&lt;BR /&gt;3 mylvol3&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;At at later time you can change the logical volume (name) associations if you wish by renaming the '/dev/vgNN/*' files associated with each logical volume and editing '/etc/fstab' appropriately.&lt;BR /&gt;&lt;BR /&gt;As for the missing VGID for your 'vgimport' you can always use: &lt;BR /&gt;&lt;BR /&gt;# vgscan -pv&lt;BR /&gt;&lt;BR /&gt;...to *preview* what would be the creation of your '/etc/lvmtab' but *not* really update it.  Doing this will examine the VGID of every disk on the system, and collect in the output the physical volumes comprising each volume group.  From that output, you can build a *file* that specifies the physical members of your volume group.  Then do:&lt;BR /&gt;&lt;BR /&gt;# vgimport -m mapfile -f infile vg_name &lt;BR /&gt;&lt;BR /&gt;...where the mapfile has been created (or omitted) as noted above; and the 'infile' is the list of physical devices deduced from the 'vgscan'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 07 Aug 2006 13:44:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995824#M423341</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-08-07T13:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: recover the VGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995825#M423342</link>
      <description>It appears I am on my way. Lots of stuff (devices, names, VGIDs, etc) to elimate and a hook up of the XP. I also did a restore of the information I need.I have isolated a VGID that is not paired with any other VG. I have imported the VG using that VGID and works fine.&lt;BR /&gt;&lt;BR /&gt;I thank all who responded! Each post was a valuble suggestion is assisting me to get back.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Aug 2006 08:28:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995825#M423342</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2006-08-08T08:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: recover the VGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995826#M423343</link>
      <description>Again, many thanks to all.</description>
      <pubDate>Tue, 08 Aug 2006 08:28:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recover-the-vgid/m-p/4995826#M423343</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2006-08-08T08:28:35Z</dc:date>
    </item>
  </channel>
</rss>

