<?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: VG Export in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-export/m-p/4561792#M552553</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;   Yes, your procedure is good to go. Assigning LUNs to your new server may give you the same device files you were having in your old server. But you are using vgimport with -s option, it will take care of this thing as it will search for the VGID on those LUNs.&lt;BR /&gt;&lt;BR /&gt;If you want exactly the same configuration on both the servers, then yes go for same VG names.</description>
    <pubDate>Mon, 11 Jan 2010 08:33:38 GMT</pubDate>
    <dc:creator>Vishu</dc:creator>
    <dc:date>2010-01-11T08:33:38Z</dc:date>
    <item>
      <title>VG Export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-export/m-p/4561791#M552552</link>
      <description>Dears,&lt;BR /&gt;&lt;BR /&gt;We need to migrate from one server to another one to upgrade the hardware capacity. We need the same luns (same mount points) from the SAN to be migrated to the new server, the SAN team replicate the old luns to new ones using something called (Block Copying) to ensure that the configuration is totally the same). Both of server are HP-UX 11.23, latest patches set, IPF.&lt;BR /&gt;&lt;BR /&gt;I think the right procedure is:&lt;BR /&gt;- umountthe lv's&lt;BR /&gt;- vgchange –a n vg_name&lt;BR /&gt;- vgexport -p -s -v -m mapfile vgname (from the old server)  &lt;BR /&gt;- mkdir /dev/(same vg name)&lt;BR /&gt;- mknod&lt;BR /&gt;- vgimport –s –v –m /etc/lvmconf/(vgname).map vg01&lt;BR /&gt;- vgchange –a y vg_name&lt;BR /&gt;- mkdir lv_mounts&lt;BR /&gt;- mount&lt;BR /&gt;&lt;BR /&gt;Are those steps enough, should I vgextend the Volume Group with the new Luns?&lt;BR /&gt;&lt;BR /&gt;Should the name of the Volume Groups be the same on both configurations?&lt;BR /&gt;&lt;BR /&gt;BR</description>
      <pubDate>Mon, 11 Jan 2010 08:18:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vg-export/m-p/4561791#M552552</guid>
      <dc:creator>mhm</dc:creator>
      <dc:date>2010-01-11T08:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: VG Export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-export/m-p/4561792#M552553</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;   Yes, your procedure is good to go. Assigning LUNs to your new server may give you the same device files you were having in your old server. But you are using vgimport with -s option, it will take care of this thing as it will search for the VGID on those LUNs.&lt;BR /&gt;&lt;BR /&gt;If you want exactly the same configuration on both the servers, then yes go for same VG names.</description>
      <pubDate>Mon, 11 Jan 2010 08:33:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vg-export/m-p/4561792#M552553</guid>
      <dc:creator>Vishu</dc:creator>
      <dc:date>2010-01-11T08:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: VG Export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-export/m-p/4561793#M552554</link>
      <description>Hi Mhm,&lt;BR /&gt;&lt;BR /&gt;Yes, the steps are correct.&lt;BR /&gt;&lt;BR /&gt;vgextend is required only if you are using extra new luns.&lt;BR /&gt;&lt;BR /&gt;Assigning name of VGs depends totally on you requirement. You can rename it or let it be same as before.&lt;BR /&gt;&lt;BR /&gt;Also check below thread for same issue:&lt;BR /&gt;&lt;A href="http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1398827" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1398827&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jan 2010 08:43:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vg-export/m-p/4561793#M552554</guid>
      <dc:creator>R.K. #</dc:creator>
      <dc:date>2010-01-11T08:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: VG Export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-export/m-p/4561794#M552555</link>
      <description>Your vgexport will produce a map file named "mapfile", while your vgimport expects a map file named /etc/lvmconf/&lt;VGNAME&gt;.map. &lt;BR /&gt;&lt;BR /&gt;The name of the map file is not important: you're free to rename it as you wish. But you must copy the map file from the old server to the new one. I would not copy the map file directly to /etc/lvmconf: for me, that's the place of "known good" LVM configuration files only. But that's just my personal preference...&lt;BR /&gt;&lt;BR /&gt;The name of the VG on the new system can be different: the procedure to rename a VG is to simply export it, then re-import using a new name. An exported HP-UX VG is nameless: it can be identified only by the VGID listed in the map file, or by explicitly listing all the PVs that belong to it.&lt;BR /&gt;&lt;BR /&gt;Otherwise, your steps look OK.&lt;BR /&gt;&lt;BR /&gt;The vgimport -s will automatically catch all the LUNs with the VGID of the volume group you're importing, so there is no need to vgextend anything. If there are multiple paths to the same PV, they will automatically be registered as alternate paths.&lt;BR /&gt;&lt;BR /&gt;Note that you don't have to unmount the filesystems nor deactivate the VG for running vgexport with the -p option (preview = just create the map file, don't really export). This may be useful if you need to minimize the service interruption.&lt;BR /&gt;&lt;BR /&gt;But you definitely should unmount &amp;amp; deactivate the VG on the old server before mounting it on the new server. Mounting a regular non-cluster filesystem simultaneously on two servers is a recipe for disaster and data loss.&lt;BR /&gt;&lt;BR /&gt;For the same reason, I would export the VG for real from the old server once I've confirmed that it works on the new one.&lt;BR /&gt;&lt;BR /&gt;So, the list of steps, slightly modified:&lt;BR /&gt;&lt;BR /&gt;- vgexport -p -s -v -m vgname.map vgname (from the old server)&lt;BR /&gt;- copy vgname.map to /tmp of new server&lt;BR /&gt;- mkdir /dev/vgname&lt;BR /&gt;- mknod /dev/vgname/group c 64 0xNN0000&lt;BR /&gt;&lt;BR /&gt;(If the server isn't a Serviceguard cluster member, you can pick a new NN value at this point. Never use a value that is already in use by another VG: 00 is for vg00, and my preference is to set aside 01 for DRD.)&lt;BR /&gt;&lt;BR /&gt;- vgimport â  s â  v â  m /tmp/vgname.map vgname&lt;BR /&gt;- mkdir lv_mounts&lt;BR /&gt;- umount the LVs (on the old server)&lt;BR /&gt;- vgchange -a n vgname (on the old server) &lt;BR /&gt;- vgchange -a y vgname (on the new server)&lt;BR /&gt;- mount&lt;BR /&gt;- test that it works&lt;BR /&gt;- export the VG for real on the old server, to make sure it won't be accidentally activated there.&lt;BR /&gt;&lt;BR /&gt;MK&lt;/VGNAME&gt;</description>
      <pubDate>Mon, 11 Jan 2010 08:59:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vg-export/m-p/4561794#M552555</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-01-11T08:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: VG Export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-export/m-p/4561795#M552556</link>
      <description>Thanks for all you,&lt;BR /&gt;Great answers,&lt;BR /&gt;&lt;BR /&gt;Another concern please, the SAN team asked me to disable the Bad Block Relocation Policy, should I do it for the new LV's or it would be imported with configuration also?</description>
      <pubDate>Mon, 11 Jan 2010 09:39:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vg-export/m-p/4561795#M552556</guid>
      <dc:creator>mhm</dc:creator>
      <dc:date>2010-01-11T09:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: VG Export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-export/m-p/4561796#M552557</link>
      <description>hi &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;that shall get imported if already set in the LV properties&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;sujit</description>
      <pubDate>Mon, 11 Jan 2010 09:43:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vg-export/m-p/4561796#M552557</guid>
      <dc:creator>sujit kumar singh</dc:creator>
      <dc:date>2010-01-11T09:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: VG Export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-export/m-p/4561797#M552558</link>
      <description>Hi,&lt;BR /&gt;  &lt;BR /&gt;  you map file will create the LVs in the new server with all the properties they were having in the old server. If the LVs in the old server has the Bad block relocation disbaled. then it will be disabled in the new server also.&lt;BR /&gt;&lt;BR /&gt; Otherwise you can set it with lvchange command as&lt;BR /&gt;&lt;BR /&gt; # lvchange -r n &lt;LV_NAME&gt;&lt;/LV_NAME&gt;</description>
      <pubDate>Mon, 11 Jan 2010 10:04:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vg-export/m-p/4561797#M552558</guid>
      <dc:creator>Vishu</dc:creator>
      <dc:date>2010-01-11T10:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: VG Export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-export/m-p/4561798#M552559</link>
      <description>Dears,&lt;BR /&gt;&lt;BR /&gt;Regarding to the migration from one server to other and from an old san to new one, is there any need to use vgchgid command on the luns? &lt;BR /&gt;will I encounter a problem like this:&lt;BR /&gt;vgimport: Warning: Volume Group belongs to different CPU ID&lt;BR /&gt;or something similar to it?</description>
      <pubDate>Wed, 13 Jan 2010 11:00:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vg-export/m-p/4561798#M552559</guid>
      <dc:creator>mhm</dc:creator>
      <dc:date>2010-01-13T11:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: VG Export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-export/m-p/4561799#M552560</link>
      <description>&amp;gt; Regarding to the migration from one server to other and from an old san to new one, is there any need to use vgchgid command on the luns?&lt;BR /&gt; &lt;BR /&gt;That is optional. Importing the VG to a different machine is a standard procedure.&lt;BR /&gt; &lt;BR /&gt;&amp;gt; will I encounter a problem like this:&lt;BR /&gt;&amp;gt; vgimport: Warning: Volume Group belongs to different CPU ID&lt;BR /&gt;&amp;gt; or something similar to it?&lt;BR /&gt; &lt;BR /&gt;vgimport is the only time you'll see this message. Once imported, the CPUID string is just documentation. It does help if you have a complex SAN fabric as you can look at the VGID, PVID and CPUID of each LUN presented to your server, This would be used to sort out mistakes in SAN switch mapping. The attached script will display the local CPUID and then read and display the VGID, PVID and CPUID from selected LUNs. With that info, you can match LUNs that belong to the same VG (vgimport does this automatically if you don't specify any LUNs to import).</description>
      <pubDate>Wed, 13 Jan 2010 12:54:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vg-export/m-p/4561799#M552560</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-01-13T12:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: VG Export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-export/m-p/4561800#M552561</link>
      <description>No need to use vgchgid. It would be needed only in Business Copy backup operations, when you need to make a clone of VG A usable as VG B, on the same system that contains VG A.&lt;BR /&gt;&lt;BR /&gt;Using vgchgid in a migration would make the existing map files invalid. That would make the migration more difficult: you could not use "vgimport -s". &lt;BR /&gt;&lt;BR /&gt;Instead you would have to identify which LUN is used for which VG in the old SAN, find the equivalent new LUNs by looking at the SAN team's documentation, and then import the VG by listing the new LUNs one by one in the vgimport command. This would be doable, but very tedious and error-prone compared to using "vgimport -s" with a proper map file. &lt;BR /&gt;&lt;BR /&gt;&amp;gt; vgimport: Warning: Volume Group belongs to different CPU ID&lt;BR /&gt;&lt;BR /&gt;This is just a warning, not an error. It does not stop the import operation, just makes the sysadmin aware that the VG *might* be in use by another system, and the sysadmin should be extra careful.&lt;BR /&gt;&lt;BR /&gt;If you see this message, it means *you* should make very sure that the other system has the VG deactivated before activating it on your new system, because the system cannot do it for you.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 13 Jan 2010 12:56:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vg-export/m-p/4561800#M552561</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-01-13T12:56:08Z</dc:date>
    </item>
  </channel>
</rss>

