<?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: vgcfgrestore in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137767#M628895</link>
    <description>Mark,&lt;BR /&gt;&lt;BR /&gt;   what seems to be happening in this case is that you don't have anything defined in your /dev/ directory at all.  So even though vgcfgrestore does work, all it is doing is putting the VGRA on the disk, your VG not being know to your system may well be your problem.  Since this is for DR, I would recommend another approach which would be for you to build a little script to "capture" all your LVM info on your source server and re-create that LVM structure on your DR server. But this is only an opinion.</description>
    <pubDate>Sat, 06 Dec 2003 12:08:20 GMT</pubDate>
    <dc:creator>Marco Santerre</dc:creator>
    <dc:date>2003-12-06T12:08:20Z</dc:date>
    <item>
      <title>vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137763#M628891</link>
      <description>I am geting an error when trying to do a vgcfgrestore that says 'too many argumnets'. The syntax of my command is vgcfgrestore -n /dev/vgXX /dev/rdsk/c2t1d0 /dev/rdsk/c2t2d0 /dev/rdsk/c2t3d0...../dev/rdsk/c3t2d0. This is occurring on a system that we are using to test DR. System configured with a VA7100 disk array, that has three volume groups all containing raw logical volumes. Ignited the system, and replaced the VA array with a spare VA so that we would not corrupt any data from the original array. Created all the LUNS via VFP prior to booting from ignite tape. ioscan see all the luns. Had issues with serial numbers being different, but was able to solve that. /etc/lvmtab does not know about the volume groups on the array, but /etc/lvmconf has entries for all of them. vgscan does not add them into /etc/lvmtab because they are not LVM drives yet. So, is it possible to do a vgcfgrestore to a volume group on a VA7100 disk array?</description>
      <pubDate>Fri, 05 Dec 2003 23:54:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137763#M628891</guid>
      <dc:creator>placitasmd</dc:creator>
      <dc:date>2003-12-05T23:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137764#M628892</link>
      <description>That should work, but need to specify only 1 device at a time on your command line.&lt;BR /&gt;&lt;BR /&gt;You could write a small script to do this:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;for i in c2t2d0 c2t3d0   #specify all your device files here.&lt;BR /&gt;do&lt;BR /&gt;vgcfgrestore -n /dev/vgXX /dev/rdsk/${i}&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 06 Dec 2003 00:07:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137764#M628892</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-12-06T00:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137765#M628893</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The vxcfgrestore command with -n option does not allow listing the device files. Try this:&lt;BR /&gt;&lt;BR /&gt;# vgcfgrestore -n /dev/vgXX -l &lt;BR /&gt;which should list the physical volumes in the volume group.&lt;BR /&gt;&lt;BR /&gt;# man vgcfgrestore &lt;BR /&gt;for more information.&lt;BR /&gt;&lt;BR /&gt;Yes, it is possible to perform vgcfgrestore on the mentioned disk array.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Sat, 06 Dec 2003 00:07:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137765#M628893</guid>
      <dc:creator>Joseph Loo</dc:creator>
      <dc:date>2003-12-06T00:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137766#M628894</link>
      <description>I have tried both methods with no success. When trying to do a vgcfgrestore with only one device, the command responded fine, but in reality it did nothing. It indicated that the volume group was not in /etc/lvmtab, and that it created it, but it never would. As for listing the devices from the lvmconf file, the lsit out just fine.</description>
      <pubDate>Sat, 06 Dec 2003 09:48:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137766#M628894</guid>
      <dc:creator>placitasmd</dc:creator>
      <dc:date>2003-12-06T09:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137767#M628895</link>
      <description>Mark,&lt;BR /&gt;&lt;BR /&gt;   what seems to be happening in this case is that you don't have anything defined in your /dev/ directory at all.  So even though vgcfgrestore does work, all it is doing is putting the VGRA on the disk, your VG not being know to your system may well be your problem.  Since this is for DR, I would recommend another approach which would be for you to build a little script to "capture" all your LVM info on your source server and re-create that LVM structure on your DR server. But this is only an opinion.</description>
      <pubDate>Sat, 06 Dec 2003 12:08:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137767#M628895</guid>
      <dc:creator>Marco Santerre</dc:creator>
      <dc:date>2003-12-06T12:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137768#M628896</link>
      <description>My dev directory is fully in tact. The make recovery restored all of that, but for some reason it did not restore lvmtab.</description>
      <pubDate>Sun, 07 Dec 2003 22:48:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137768#M628896</guid>
      <dc:creator>placitasmd</dc:creator>
      <dc:date>2003-12-07T22:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137769#M628897</link>
      <description>Mark,&lt;BR /&gt;&lt;BR /&gt;I'm not sure to understand why you want to vgcfgrestore the disks. If they are copies of another volume, then the lmv structures are already present. You just have to import the volume. If the new system is in the same cluster as the other one, also use vgchgid command to change the vgid. But the right command for you is vgimport I think, not vgcfgrestore.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Mon, 08 Dec 2003 03:17:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137769#M628897</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2003-12-08T03:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137770#M628898</link>
      <description>I need to restore because my data does not exist. We replaced the original VA7100 with a new one that has no data or LVM info on it. All I have done to the new VA7100 is create LUNs that are identical to the VA7100 we removed.</description>
      <pubDate>Mon, 08 Dec 2003 10:13:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137770#M628898</guid>
      <dc:creator>placitasmd</dc:creator>
      <dc:date>2003-12-08T10:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137771#M628899</link>
      <description>OK ...&lt;BR /&gt;&lt;BR /&gt;In this case, you could create a new dummy vg (pvcreate the disks, vgcreate) then cfgrestore one disk at a time to get back the old lv structure.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Mon, 08 Dec 2003 10:21:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137771#M628899</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2003-12-08T10:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137772#M628900</link>
      <description>Unless I have totally misread your post... this is what you need to do.&lt;BR /&gt;&lt;BR /&gt;First of all, You can't vgcfgrestore disks with info from a VG to disks which are not in any VG to begin with...you must vgimport the VGs... &lt;BR /&gt;&lt;BR /&gt;Second, I dont believe you will need to vgcfgrestore b/c after you do the vgimport it will all be there...on your system.&lt;BR /&gt;&lt;BR /&gt;I hope you created them with the vgexport -s option to attach a header to the disks for easy importing... however, you dont have to have that option defined as long as the /dev/dsk names can be made the same on the new host... otherwise I would re-export them with the -s option... it will save you a LOT of headaches... believe me the -s option is an awesome way to vgexport from one box and then reimport to another host.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now, Okay so you say you have:&lt;BR /&gt;&lt;BR /&gt;"pvcreated the disks...and that vgscan doesnt recognize them"... and "lvmtab doesnt know about the VGs on the array...&lt;BR /&gt;&lt;BR /&gt;When you say "created the LUNS" what does that mean??" pvcreate? if so you just wiped out your data...&lt;BR /&gt;&lt;BR /&gt;To the vgscan question. How could it rebuild them, you haven't imported them yet... The reason vgscan doesn't see them is b/c you haven't created any VGs as yet on the new disks... &lt;BR /&gt;&lt;BR /&gt;__________&lt;BR /&gt;__________&lt;BR /&gt;&lt;BR /&gt;Bottom line is this::&lt;BR /&gt;&lt;BR /&gt;I agree with Jean-louis...&lt;BR /&gt;&lt;BR /&gt;You need to peform a vgimport of the VGs so that lvmtab will see them.&lt;BR /&gt;&lt;BR /&gt;mkdir&lt;BR /&gt;mknod&lt;BR /&gt;vgcreate -v -m /etc/lvmconf/*.mapfiles /dev/vgXX&lt;BR /&gt;&lt;BR /&gt;mount &lt;BR /&gt;&lt;BR /&gt;then make sure you set the proper mount options.&lt;BR /&gt;&lt;BR /&gt;You just had a few steps out of order is all.&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Dec 2003 11:09:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137772#M628900</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-12-08T11:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137773#M628901</link>
      <description>OK... I will also try to add my suggestion. :) You have a new VA with the same LUN configuration as your old VA. You have /etc/lvmconf/*.conf files. So essentially all you need to do is:&lt;BR /&gt;&lt;BR /&gt;1) Restore the LVM structures on the LUNs: &lt;BR /&gt; &lt;BR /&gt;for i in /dev/rdsk/c2t1d0 ... ; do&lt;BR /&gt;vgcfgrestore -f /etc/lvmconf/vgXX.conf $i&lt;BR /&gt;done&lt;BR /&gt; &lt;BR /&gt;2) Import the VG:&lt;BR /&gt; &lt;BR /&gt;mkdir /dev/vgXX&lt;BR /&gt;mknod /dev/vgXX/group c 64 0xXX0000&lt;BR /&gt;vgimport vgXX /dev/dsk/c2t1d0 ...&lt;BR /&gt; &lt;BR /&gt;Just my 2 cents...&lt;BR /&gt;Dietmar.</description>
      <pubDate>Mon, 08 Dec 2003 11:38:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137773#M628901</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-12-08T11:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137774#M628902</link>
      <description>Hi Deitmar, I think you are heading me in the right direction. I do have another question though. The customer did not use sequential naming convention on there logical volumes, but I do have the names of all logical volumes, and the order they appear from within vgdisplay. So can I create a map file, and then use that as part of my vgimport command to restore the logical volume structure for the volume group. I do not expect to restore any data, just all the LVM info.</description>
      <pubDate>Mon, 08 Dec 2003 12:39:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137774#M628902</guid>
      <dc:creator>placitasmd</dc:creator>
      <dc:date>2003-12-08T12:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137775#M628903</link>
      <description>Yes, you can either create a mapfile manually for vgimport or simply rename the lvol's device special files after importing the VG. Be care to respect the naming convention, of course.&lt;BR /&gt;  &lt;BR /&gt;Best regards...&lt;BR /&gt;Dietmar.</description>
      <pubDate>Mon, 08 Dec 2003 12:50:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137775#M628903</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-12-08T12:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137776#M628904</link>
      <description>To extend what Dietmar said..&lt;BR /&gt;&lt;BR /&gt;# mkdir /dev/vgXX&lt;BR /&gt;# mknod /dev/vgXX/group c 64 0x??0000&lt;BR /&gt;# vgimport /dev/vgXX /dev/dsk/cXtYdZ /dev/dsk/...&lt;BR /&gt;&lt;BR /&gt;If you have the map file (actually a backup of /dev/vgXX before the system went band would do... but that is another story)&lt;BR /&gt;vgimport -m &lt;MAPFILE&gt; /dev/vgXX /dev/dsk/cXtYdZ /dev/dsk/...&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Tim&lt;/MAPFILE&gt;</description>
      <pubDate>Mon, 08 Dec 2003 16:05:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137776#M628904</guid>
      <dc:creator>Tim D Fulford</dc:creator>
      <dc:date>2003-12-08T16:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137777#M628905</link>
      <description>I appreciate all the responses. I am going to try this on Thursday or Friday of this week. Since I still have all the info in /dev/vgXX, I suspect that I will not need to recreate that, just do the vgcfgrestore followed by a vgimport. I guess that the vgimport command could or could not have the map file included in it.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Dec 2003 16:40:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137777#M628905</guid>
      <dc:creator>placitasmd</dc:creator>
      <dc:date>2003-12-08T16:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137778#M628906</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I full agree that a vgimport would be nice. But you *need* to have the lvm structures on the disks. I think that you forgot the initial problem : you cannot vgcfgrestore if the vg is not yet in the lvmtab with its disks. That's why I proposed to first create a dummy one with required disks THEN vgcfgrestore, vgexport and vgimport.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Tue, 09 Dec 2003 02:20:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137778#M628906</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2003-12-09T02:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137779#M628907</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Sometimes too tired ... sometime still half asleep ... Of course Dietmar is right and you can restore the lvm structure without having the disk in the lvmtab. Sorry !&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Tue, 09 Dec 2003 03:12:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137779#M628907</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2003-12-09T03:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137780#M628908</link>
      <description>I would like to thank everyone for there assistance with this issue. After doing the vgcfgrestore, and the vgimport with a configuration file from /etc/lvmconf, I was successful in recovering the system. THANKS!!!</description>
      <pubDate>Sun, 14 Dec 2003 22:32:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgcfgrestore/m-p/3137780#M628908</guid>
      <dc:creator>placitasmd</dc:creator>
      <dc:date>2003-12-14T22:32:11Z</dc:date>
    </item>
  </channel>
</rss>

