<?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: regarding vgimport/vgcfgrestore in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-vgimport-vgcfgrestore/m-p/2498841#M655007</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You should first vgexport on primary in preview mode using -p option:&lt;BR /&gt; $ vgexport -p -m mapfile vg_name&lt;BR /&gt;&lt;BR /&gt;Then bring mapfile to secondary(using ftp or rcp,etc.) and vgimport using this map file:&lt;BR /&gt; $  vgimport -v -m mapfile vg_name pv_path1 pv_path2 ......&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Still It doesn't work you need to run vgcfgrestore... It will fix the problem.&lt;BR /&gt;&lt;BR /&gt;Cheers.....&lt;BR /&gt;Satish.&lt;BR /&gt;</description>
    <pubDate>Tue, 27 Feb 2001 22:32:35 GMT</pubDate>
    <dc:creator>Satish Y</dc:creator>
    <dc:date>2001-02-27T22:32:35Z</dc:date>
    <item>
      <title>regarding vgimport/vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-vgimport-vgcfgrestore/m-p/2498840#M655006</link>
      <description>I have 2 systems and one disk array, and the disk array is split into primary storage and a mirrored copy (business copy).  The primary storage is mounted to one of the servers.  I need to split off the mirror copy and mount it to the second server, for backup purposes. Using vgexport on the primary server and vgimport on the backup server seemed like the logical answer, but to no avail.  Doing an lvdisplay on the backup server shows me something like the following:&lt;BR /&gt;--- Logical extents ---&lt;BR /&gt;LE       PV1     PE1    Status1&lt;BR /&gt;00000    ???     00000  current&lt;BR /&gt;&lt;BR /&gt;Why do I get the question marks?  How do I get the system to identify the physical volume when the mirrored copies are mounted on the backup server?  Would vgcfgbackup/restore work on this?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Feb 2001 16:47:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-vgimport-vgcfgrestore/m-p/2498840#M655006</guid>
      <dc:creator>Jason Moorhead_2</dc:creator>
      <dc:date>2001-02-27T16:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: regarding vgimport/vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-vgimport-vgcfgrestore/m-p/2498841#M655007</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You should first vgexport on primary in preview mode using -p option:&lt;BR /&gt; $ vgexport -p -m mapfile vg_name&lt;BR /&gt;&lt;BR /&gt;Then bring mapfile to secondary(using ftp or rcp,etc.) and vgimport using this map file:&lt;BR /&gt; $  vgimport -v -m mapfile vg_name pv_path1 pv_path2 ......&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Still It doesn't work you need to run vgcfgrestore... It will fix the problem.&lt;BR /&gt;&lt;BR /&gt;Cheers.....&lt;BR /&gt;Satish.&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Feb 2001 22:32:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-vgimport-vgcfgrestore/m-p/2498841#M655007</guid>
      <dc:creator>Satish Y</dc:creator>
      <dc:date>2001-02-27T22:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: regarding vgimport/vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-vgimport-vgcfgrestore/m-p/2498842#M655008</link>
      <description>Hi&lt;BR /&gt;The questions marks mean that lvdisplay cannot determine the physical disk associated with the lvol.  If you are on 10.20 or later there is an option -k that will give you the PV Key of the disk...not that will help you in your situation.  For clarification - on one server you want to split your mirror.  On the other server that has access to the disks you want to mount this data.  You cannot export a portion of the volume group. Are you exporting the whole volume group?If not, then the previous poster mentions how to vgexport in preview mode of the entire volume group (but not really export it) and import on the other server only the disks that are offline. But both systems will have the lvm configuration. This is not good.  Also to import, you have to create a directory and do a mknod for the group file before doing a vgimport. I'm not really giving specifics because I'm afraid this is not the best approach.  Maybe you should use nfs and remote mount.&lt;BR /&gt;&lt;BR /&gt;Got any spare disks? You could create another VG and lvols and copy the data to that.  Then you could vgexport/vgimport as much as you'd like.  It would be a safe offline copy.</description>
      <pubDate>Wed, 28 Feb 2001 00:59:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-vgimport-vgcfgrestore/m-p/2498842#M655008</guid>
      <dc:creator>Peggy Fong</dc:creator>
      <dc:date>2001-02-28T00:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: regarding vgimport/vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-vgimport-vgcfgrestore/m-p/2498843#M655009</link>
      <description>Hi Jason,&lt;BR /&gt;&lt;BR /&gt;You are missing a step.  We use business copy here.&lt;BR /&gt;&lt;BR /&gt;So far, then you have used created the business copy and split it away from its parent.&lt;BR /&gt;&lt;BR /&gt;What will happen is the system suddenly "sees" a number of new disks which were part of that business copy.&lt;BR /&gt;&lt;BR /&gt;For each of the "new" disks you need to run &lt;BR /&gt;vgchgid against these disks _but_in_the_same_VG!&lt;BR /&gt;&lt;BR /&gt;For example, if your Business Copy contains the volume group vg_fred, consisting of three luns and you split the copy then you will have three new luns appear, lets call them c1t2d1 c1t2d2 and c3t4d5.  To prepare them for a new volume group run:&lt;BR /&gt;&lt;BR /&gt;vgchgid /dev/rdsk/c1t2d1 /dev/rdsk/c1t2d2 /dev/rdsk/c3t4d5&lt;BR /&gt;&lt;BR /&gt;I believe vgchgid makes a random vg header id on the disk, so you must have each disk in the same group on the same line so they receive the same random number.&lt;BR /&gt;&lt;BR /&gt;You can then import the volume group:&lt;BR /&gt;&lt;BR /&gt;mkdir /dev/vg_banana&lt;BR /&gt;mknod /dev/vg_banana/group c 64 0x010000&lt;BR /&gt;vgimport vg_banana /dev/dsk/c1t2d1 /dev/dsk/c1t2d2 /dev/dsk/c3t4d5&lt;BR /&gt;&lt;BR /&gt;Now you have the volume group you export it, ready for the second server:&lt;BR /&gt;vgexport vg_banana&lt;BR /&gt;&lt;BR /&gt;And then on the new server, import the VG.&lt;BR /&gt;&lt;BR /&gt;If you have any problems I am willing to show you the code I use to do this job.&lt;BR /&gt;&lt;BR /&gt;Best wishes&lt;BR /&gt;&lt;BR /&gt;Adam</description>
      <pubDate>Wed, 28 Feb 2001 08:28:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-vgimport-vgcfgrestore/m-p/2498843#M655009</guid>
      <dc:creator>Unix Systems Admin</dc:creator>
      <dc:date>2001-02-28T08:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: regarding vgimport/vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-vgimport-vgcfgrestore/m-p/2498844#M655010</link>
      <description>Adam,&lt;BR /&gt;&lt;BR /&gt;You're definitely of help here!  Not sure if our systems are the same, but I have 4 servers total.. 3 of which are app servers and 1 is a dedicated backup server (connected to a tape library), and all 4 are connected to an XP disk array.  &lt;BR /&gt;&lt;BR /&gt;Sounds like the vgchgid is what I need.  Could you run down exactly what the process is when you split your business copies off every night and mount them to the backup server?  This split and mount is what does not seem to be working for me.  If it wouldn't be too much trouble, could you start from the beginning, assuming that I have not setup any of the volume groups on the backup server, and have done no vgexports or vgimports?  Basically, start from when I have 4 servers connected to the array, and 3 of them have one volume group located on the array (so there are 3 vg's total on the array).  How would I split the mirror and mount the 3 business copies to the backup server?&lt;BR /&gt;&lt;BR /&gt;After the backups are done, are there any special procedures you need to run against the BC disks before you resync them?&lt;BR /&gt;&lt;BR /&gt;Sorry to go back to basics here!  I just want to be sure that I'm not forgetting something.  Thanks Adam!&lt;BR /&gt;&lt;BR /&gt;Jason</description>
      <pubDate>Wed, 28 Feb 2001 14:45:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-vgimport-vgcfgrestore/m-p/2498844#M655010</guid>
      <dc:creator>Jason Moorhead_2</dc:creator>
      <dc:date>2001-02-28T14:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: regarding vgimport/vgcfgrestore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-vgimport-vgcfgrestore/m-p/2498845#M655011</link>
      <description>Well, here goes...!&lt;BR /&gt;&lt;BR /&gt;We have four volume groups here which have a business copy on them.  The machine is called 'tyne'.  The volumes are vg1, vg2, vg3, vg4.&lt;BR /&gt;&lt;BR /&gt;Structure of vgs when in BC pair:&lt;BR /&gt;&lt;BR /&gt;vg1: c4t6d0&lt;BR /&gt;vg2: c11t6d0&lt;BR /&gt;vg3: c4t7d2, c11t7d2&lt;BR /&gt;vg4: c11t6d2&lt;BR /&gt;&lt;BR /&gt;business copy groups: vg1, vg2, vg3, vg4&lt;BR /&gt;&lt;BR /&gt;What happens is this:&lt;BR /&gt;&lt;BR /&gt;1.  At midnight our databases are shut down and the business copy is split:&lt;BR /&gt;&lt;BR /&gt;pairsplit -g vg1&lt;BR /&gt;pairevtwait -g vg1 -t 600 -s psus&lt;BR /&gt;&lt;BR /&gt;what this does is split the BC pair, the wait for 600 seconds for the system to be in suspended state - 'psus'.  This can be verified by doing &lt;BR /&gt;&lt;BR /&gt;pairdisplay -g vg1&lt;BR /&gt;&lt;BR /&gt;This is done for each business copy group.&lt;BR /&gt;&lt;BR /&gt;2.  When the BC pair splits a new lun will appear (the first time) and you may have to do an insf to create the device files.&lt;BR /&gt;&lt;BR /&gt;What happens here is:&lt;BR /&gt;&lt;BR /&gt;vg1 goes to c4t6d0 *plus* c4t12d0 (BC)&lt;BR /&gt;vg2 goes to c11t6d0 *plus* c11t12d0 (BC)&lt;BR /&gt;vg3 goes to c4t7d2,c11t7d2 *plus* c4t13d2,c11t13d2 (BC)&lt;BR /&gt;vg4 goes to c11t6d2 *plus* c11t12d2 (BC)&lt;BR /&gt;&lt;BR /&gt;So the status is that we have a number of disks 'floating' which the OS does not think are part of a VG, but if you force it to read the VGRA then it will say 'hold on, its disk 1 of vg1!' and get thoroughly confused.&lt;BR /&gt;&lt;BR /&gt;After this step our DBs are restarted.&lt;BR /&gt;&lt;BR /&gt;3.  We now create new volume groups based on the new disks.  Lets call them vg1_bc, vg2_bc, vg3_bc and vg4_bc.&lt;BR /&gt;&lt;BR /&gt;First of all we need to prepare the volume groups.&lt;BR /&gt;&lt;BR /&gt;cd /dev&lt;BR /&gt;mkdir vg1_bc vg2_bc vg3_bc vg4_bc&lt;BR /&gt;mknod vg1_bc/group c 64 0x050000&lt;BR /&gt;mknod vg2_bc/group c 64 0x060000&lt;BR /&gt;mknod vg3_bc/group c 64 0x070000&lt;BR /&gt;mknod vg4_bc/group c 64 0x080000&lt;BR /&gt;&lt;BR /&gt;Obviously change the minor number to the correct values for your system.&lt;BR /&gt;&lt;BR /&gt;4.  Now change the volume group IDs on the new disks:&lt;BR /&gt;&lt;BR /&gt;vgchgid /dev/rdsk/c4t12d0&lt;BR /&gt;vgchgid /dev/rdsk/c11t12d0&lt;BR /&gt;vgchgid /dev/rdsk/c4t13d2 /dev/rdsk/c11t13d2&lt;BR /&gt;vgchgid /dev/rdsk/c11t12d2&lt;BR /&gt;&lt;BR /&gt;Note that we have two disks on one line.  If you don't they end up with a different VGID on each which means that you can't import them (take it from me, after much pain!).&lt;BR /&gt;&lt;BR /&gt;5.  Create a map file of each of your volume groups...&lt;BR /&gt;&lt;BR /&gt;vgexport -m vg1.mapfile -p vg1&lt;BR /&gt;vgexport -m vg2.mapfile -p vg2&lt;BR /&gt;vgexport -m vg3.mapfile -p vg3&lt;BR /&gt;vgexport -m vg4.mapfile -p vg4&lt;BR /&gt;&lt;BR /&gt;REMEMBER THE -p OPTION!  This will cause the mapfile to be created (only needs doing once, or each time you add a LV), and the existing VG to be left alone.&lt;BR /&gt;&lt;BR /&gt;6.  Import the volume groups into the new volumes.&lt;BR /&gt;&lt;BR /&gt;vgimport -m vg1.mapfile vg1_bc /dev/dsk/c4t12d0&lt;BR /&gt;vgimport -m vg2.mapfile vg2_bc /dev/dsk/c11t12d0&lt;BR /&gt;vgimport -m vg3.mapfile vg3_bc /dev/dsk/c4t13d2 /dev/dsk/c11t13d2&lt;BR /&gt;vgimport -m vg4.mapfile /dev/dsk/c11t12d2&lt;BR /&gt;&lt;BR /&gt;7.  Activate the volume groups.&lt;BR /&gt;&lt;BR /&gt;vgchange -a y vg1_bc&lt;BR /&gt;vgchange -a y vg2_bc&lt;BR /&gt;vgchange -a y vg3_bc&lt;BR /&gt;vgchange -a y vg4_bc&lt;BR /&gt;&lt;BR /&gt;You can now mount the logical volumes and do what you want.&lt;BR /&gt;&lt;BR /&gt;8.  When you want to finish using the business copies and re-sync them you need to &lt;BR /&gt;a) umount all filesystems.&lt;BR /&gt;b) deactivate the volume group (vgchange -a n VG)&lt;BR /&gt;c) export the volume group (vgexport vgX)&lt;BR /&gt;d) resync the BC:&lt;BR /&gt;pairresync -g vgX&lt;BR /&gt;pairevtwait -g vgX -t 600 -s pair&lt;BR /&gt;&lt;BR /&gt;Each time you split off a copy you need to do a vgchgid then a vgimport.&lt;BR /&gt;&lt;BR /&gt;If you wish to use another server to import the VGs then I still suggest you use a vgchgid before an import, assuming you know the target names (cXtYdZ) - using Brocade switches gets confusing with all the disks!  You may already have a VG with the same ID.&lt;BR /&gt;&lt;BR /&gt;I hope this has been of help.  If you would like any further help please feel free to email me at Adam.Wainwright@pgen.com&lt;BR /&gt;&lt;BR /&gt;Best wishes&lt;BR /&gt;&lt;BR /&gt;Adam&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Feb 2001 18:31:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-vgimport-vgcfgrestore/m-p/2498845#M655011</guid>
      <dc:creator>Unix Systems Admin</dc:creator>
      <dc:date>2001-02-28T18:31:19Z</dc:date>
    </item>
  </channel>
</rss>

