<?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: vgexport / vgimport in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vgexport-vgimport/m-p/3687281#M617253</link>
    <description>Assuming you want to move the original vg and all associated lv under it to a new server you are good except for one point.  Do NOT do the pvcreate on the second server. The pvcreated on the second server will overwrite the vg information created on the original system.  As was mentioned above doing a "vgexport -v -s -m..." and then "vgimport -v -s -m..." is very good and keeps you from having to track exactly which disk from the original system is which disk on the second system.&lt;BR /&gt;&lt;BR /&gt;Good luck...</description>
    <pubDate>Fri, 09 Dec 2005 09:12:34 GMT</pubDate>
    <dc:creator>George Neill</dc:creator>
    <dc:date>2005-12-09T09:12:34Z</dc:date>
    <item>
      <title>vgexport / vgimport</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgexport-vgimport/m-p/3687277#M617249</link>
      <description>Am I suppose to be able to do this?&lt;BR /&gt;&lt;BR /&gt;System A:&lt;BR /&gt;vgexport -p -v -m vg02.map /dev/vg02&lt;BR /&gt;&lt;BR /&gt;System B:&lt;BR /&gt;Create new lun&lt;BR /&gt;pvcreate /dev/dsk/c26t0d0&lt;BR /&gt;mkdir /dev/vg02&lt;BR /&gt;mknod /dev/vg02/group c 64 0x020000&lt;BR /&gt;vgimport -v -m vg02.map /dev/vg02 /dev/dsk/c26t0d0&lt;BR /&gt;&lt;BR /&gt;It fails w/the following:&lt;BR /&gt;Physical Volume "/dev/dsk/c26t0d0" is not part of a Volume Group&lt;BR /&gt;&lt;BR /&gt;I am simply trying to recreate the lvs on a different server.</description>
      <pubDate>Thu, 08 Dec 2005 04:34:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgexport-vgimport/m-p/3687277#M617249</guid>
      <dc:creator>Stafford Hyacinth</dc:creator>
      <dc:date>2005-12-08T04:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: vgexport / vgimport</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgexport-vgimport/m-p/3687278#M617250</link>
      <description>&lt;BR /&gt;Dear Stafford,&lt;BR /&gt;&lt;BR /&gt;vgimport actually reads the LVM info from the PV and imports the lvols to the particular VG ( in our case vg02 )&lt;BR /&gt;&lt;BR /&gt;If the /dev/dsk/c26t0d0 dosent have the LVM info then vgimport will fail !&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;&lt;BR /&gt;Siva.</description>
      <pubDate>Thu, 08 Dec 2005 04:43:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgexport-vgimport/m-p/3687278#M617250</guid>
      <dc:creator>Sivakumar TS</dc:creator>
      <dc:date>2005-12-08T04:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: vgexport / vgimport</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgexport-vgimport/m-p/3687279#M617251</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;1. When sharing use &lt;BR /&gt;vgexport -p -s -v -m, which created a changeid for in the map file.&lt;BR /&gt;&lt;BR /&gt;2. No need to create a PVcreate on the second system. As u have created for the LUN alreeady. &lt;BR /&gt;&lt;BR /&gt;Hope this helps...007</description>
      <pubDate>Thu, 08 Dec 2005 04:44:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgexport-vgimport/m-p/3687279#M617251</guid>
      <dc:creator>Chan 007</dc:creator>
      <dc:date>2005-12-08T04:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: vgexport / vgimport</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgexport-vgimport/m-p/3687280#M617252</link>
      <description>Ok, that confirms my suspicion.  I can't use vgexport/vgimport to recreate lvs on a different server w/new pvs.  Thanks all.</description>
      <pubDate>Thu, 08 Dec 2005 05:20:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgexport-vgimport/m-p/3687280#M617252</guid>
      <dc:creator>Stafford Hyacinth</dc:creator>
      <dc:date>2005-12-08T05:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: vgexport / vgimport</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgexport-vgimport/m-p/3687281#M617253</link>
      <description>Assuming you want to move the original vg and all associated lv under it to a new server you are good except for one point.  Do NOT do the pvcreate on the second server. The pvcreated on the second server will overwrite the vg information created on the original system.  As was mentioned above doing a "vgexport -v -s -m..." and then "vgimport -v -s -m..." is very good and keeps you from having to track exactly which disk from the original system is which disk on the second system.&lt;BR /&gt;&lt;BR /&gt;Good luck...</description>
      <pubDate>Fri, 09 Dec 2005 09:12:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgexport-vgimport/m-p/3687281#M617253</guid>
      <dc:creator>George Neill</dc:creator>
      <dc:date>2005-12-09T09:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: vgexport / vgimport</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgexport-vgimport/m-p/3687282#M617254</link>
      <description>A. 1. Umount all filesystems&lt;BR /&gt;   2. vgchange -a n /dev/vg02&lt;BR /&gt;   3. vgexport -v -m vg02.map /dev/vg02&lt;BR /&gt;   remove disk. insert in new system.&lt;BR /&gt;   &lt;BR /&gt;B. do a ioscan -fnC disk to make sure you&lt;BR /&gt;   see the disk and the device address&lt;BR /&gt;   mkdir /dev/vg02&lt;BR /&gt;   mknod /dev/vg02/group c 64 0x020000&lt;BR /&gt;   vgimport -v -m vg02.map /dev/dsk/c26t0d0&lt;BR /&gt;   vgchange -a y /dev/vg02&lt;BR /&gt;&lt;BR /&gt;If this is a SAN.  You need to make sure the "LUN" is seen by the new system. Your error message suggests to me that you did not have the correct device address. Or the PVCREATE might have wipe out your lv data.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rory&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Dec 2005 11:48:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgexport-vgimport/m-p/3687282#M617254</guid>
      <dc:creator>Rory R Hammond</dc:creator>
      <dc:date>2005-12-09T11:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: vgexport / vgimport</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgexport-vgimport/m-p/3687283#M617255</link>
      <description>This is on a SAN but I am not removing or moving the luns.&lt;BR /&gt;&lt;BR /&gt;A:&lt;BR /&gt;Server A will maitain all luns&lt;BR /&gt;&lt;BR /&gt;B:&lt;BR /&gt;On server B I am creating new luns so I have to pvcreate.&lt;BR /&gt;&lt;BR /&gt;Basically on server A I have many vgs I want to recreate on server B.  I didn't want to go through the laborious task of vgcreate and lvcreate 100s of logical volumes but it appears I don't have a choice.</description>
      <pubDate>Fri, 09 Dec 2005 12:06:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgexport-vgimport/m-p/3687283#M617255</guid>
      <dc:creator>Stafford Hyacinth</dc:creator>
      <dc:date>2005-12-09T12:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: vgexport / vgimport</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgexport-vgimport/m-p/3687284#M617256</link>
      <description>Stafford - that is correct - you can NOT create a new lun and vgimport...&lt;BR /&gt;&lt;BR /&gt;If you want both systems to have the same "look and feel" - then you will have to recreate the vg's/lv's/file systems from scratch...&lt;BR /&gt;&lt;BR /&gt;vgexport/vgimport is for when you share disks between servers - like in a ServiceGuard environment - or say you want your backup server to mount the file systems locally...&lt;BR /&gt;&lt;BR /&gt;That means both system need to "see" the exact same disks -not new ones.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Fri, 09 Dec 2005 12:09:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgexport-vgimport/m-p/3687284#M617256</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-12-09T12:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: vgexport / vgimport</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgexport-vgimport/m-p/3687285#M617257</link>
      <description>Hey;&lt;BR /&gt;&lt;BR /&gt;You're right; you don't have a choice.  However, this task is something that's easily scriptable.  &lt;BR /&gt;&lt;BR /&gt;1.  On your source system, create a lvs table:&lt;BR /&gt;&lt;BR /&gt;for vg in ${list -o vgs} &lt;BR /&gt;do&lt;BR /&gt;  for lv in $(vgdisplay -v ${vg} | grep -i 'lv name' | awk '{print $NF}')&lt;BR /&gt;  do&lt;BR /&gt;     size=$(lvdisplay ${lv} | grep -i '^lv size' | awk '{print $NF}')&lt;BR /&gt;     printf "%-30s %5s\n" ${lv} ${size}&lt;BR /&gt;   done&lt;BR /&gt;done &amp;gt; lvs&lt;BR /&gt;&lt;BR /&gt;2.  scp that lvs table over to the target  system.&lt;BR /&gt;&lt;BR /&gt;3.  Create your volume groups as normal and sized to match the soruce&lt;BR /&gt;&lt;BR /&gt;4.  Create the LVs&lt;BR /&gt;&lt;BR /&gt;cat lvs | while read lv size&lt;BR /&gt;do&lt;BR /&gt;  vg=${lv%/*}; vg=${vg##*/}&lt;BR /&gt;  lvcreate -L ${size} -n ${lv##*/} ${vg}&lt;BR /&gt;  [[ ${size} -gt 2048 ]] &amp;amp;&amp;amp; args="-o largefiles" || args=""&lt;BR /&gt;  newfs -F vxfs ${args} ${lv%/*}/r${lv##*/}&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;With a little bit of work, left as an exercise for the reader, you can have it create the vgs for you, automatically mount the filesystems appropriately, and update the /etc/fstab as appropriatee...&lt;BR /&gt;&lt;BR /&gt;As you can tell, I've done this a time or two...&lt;BR /&gt;&lt;BR /&gt;HTH;&lt;BR /&gt;&lt;BR /&gt;Doug</description>
      <pubDate>Fri, 09 Dec 2005 12:21:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgexport-vgimport/m-p/3687285#M617257</guid>
      <dc:creator>Doug O'Leary</dc:creator>
      <dc:date>2005-12-09T12:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: vgexport / vgimport</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgexport-vgimport/m-p/3687286#M617258</link>
      <description>Thanks Doug, that really came in handy.</description>
      <pubDate>Fri, 09 Dec 2005 13:14:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgexport-vgimport/m-p/3687286#M617258</guid>
      <dc:creator>Stafford Hyacinth</dc:creator>
      <dc:date>2005-12-09T13:14:27Z</dc:date>
    </item>
  </channel>
</rss>

