<?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: vgimport help? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010718#M605232</link>
    <description>As vgdisplay result:&lt;BR /&gt;==========================&lt;BR /&gt;PV Name /dev/dsk/c6t0d3 &lt;BR /&gt;PV Status available &lt;BR /&gt;Total PE 33596 &lt;BR /&gt;Free PE 33471 &lt;BR /&gt;Autoswitch On  &lt;BR /&gt;================&lt;BR /&gt;33596-33471=125PE is in used now.&lt;BR /&gt;You should use:&lt;BR /&gt;#lvdisplay -v /dev/vg02/lvname  (some last lv on vg02)&lt;BR /&gt;to determine which lv consumes PE&lt;BR /&gt;HTH</description>
    <pubDate>Thu, 31 May 2007 20:59:35 GMT</pubDate>
    <dc:creator>Nguyen Anh Tien</dc:creator>
    <dc:date>2007-05-31T20:59:35Z</dc:date>
    <item>
      <title>vgimport help?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010700#M605214</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a server with a LUN attached.  I need a copy of the data on that LUN on another system.  So I extended vg02 with another LUN and lvextend -m 1 with all the logical volumes.  I then lvreduced to break the mirrors and exported the new lUN from vg02.  I now want to vgimport the new LUN onto the new server and it isn't working.  Here is what I am getting:&lt;BR /&gt;&lt;BR /&gt;# vgscan -p -v&lt;BR /&gt;vgscan: Couldn't access the list of physical volumes for volume group "/dev/vg02".&lt;BR /&gt;vgscan: The physical volume "/dev/dsk/c1t2d0" is already recorded in the "/etc/lvmtab" file.&lt;BR /&gt;vgscan: The physical volume "/dev/dsk/c2t2d0" is already recorded in the "/etc/lvmtab" file.&lt;BR /&gt;Couldn't stat physical volume "/dev/dsk/c3t2d0":&lt;BR /&gt;Invalid argument&lt;BR /&gt;Physical Volume "/dev/dsk/c4t0d3" contains no LVM information&lt;BR /&gt;Physical Volume "/dev/dsk/c5t0d3" contains no LVM information&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/dev/vg00&lt;BR /&gt;/dev/dsk/c1t2d0&lt;BR /&gt;/dev/dsk/c2t2d0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;vgscan:  has no correspoding valid raw device file under /dev/rdsk.&lt;BR /&gt;Verification of unique LVM disk id on each disk in the volume group&lt;BR /&gt;/dev/vg02 failed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# vgimport -v -s -m /tmp/vg0216.map /dev/vg02&lt;BR /&gt;Beginning the import process on Volume Group "/dev/vg02".&lt;BR /&gt;Couldn't access the list of physical volumes for volume group "/dev/vg02".</description>
      <pubDate>Thu, 31 May 2007 08:30:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010700#M605214</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2007-05-31T08:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport help?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010701#M605215</link>
      <description>FYI - also should have included an ioscan:&lt;BR /&gt;&lt;BR /&gt;Class     I  H/W Path       Driver   S/W State   H/W Type     Description&lt;BR /&gt;==========================================================================&lt;BR /&gt;disk      0  0/0/1/1.2.0    sdisk    CLAIMED     DEVICE       HP 36.4GATLAS10K3_36_SCA&lt;BR /&gt;                           /dev/dsk/c1t2d0   /dev/rdsk/c1t2d0&lt;BR /&gt;disk      1  0/0/2/0.2.0    sdisk    CLAIMED     DEVICE       FUJITSU MAJ3364MC&lt;BR /&gt;                           /dev/dsk/c2t2d0   /dev/rdsk/c2t2d0&lt;BR /&gt;disk      2  0/0/2/1.2.0    sdisk    CLAIMED     DEVICE       HP      DVD-ROM 305&lt;BR /&gt;                           /dev/dsk/c3t2d0   /dev/rdsk/c3t2d0&lt;BR /&gt;disk      3  255/0/2.0.0.3  sdisk    CLAIMED     DEVICE       NETAPP  LUN&lt;BR /&gt;                           /dev/dsk/c4t0d3   /dev/rdsk/c4t0d3&lt;BR /&gt;disk      4  255/0/3.0.0.3  sdisk    CLAIMED     DEVICE       NETAPP  LUN&lt;BR /&gt;                           /dev/dsk/c5t0d3   /dev/rdsk/c5t0d3&lt;BR /&gt;disk      5  255/0/4.0.0.3  sdisk    CLAIMED     DEVICE       NETAPP  LUN&lt;BR /&gt;                           /dev/dsk/c6t0d3   /dev/rdsk/c6t0d3&lt;BR /&gt;disk      6  255/0/5.0.0.3  sdisk    CLAIMED     DEVICE       NETAPP  LUN&lt;BR /&gt;                           /dev/dsk/c7t0d3   /dev/rdsk/c7t0d3&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It is disk 4.0.0.3 (c6t0d3) that I want imported into vg02.  It is the disk with the LVM info on it.</description>
      <pubDate>Thu, 31 May 2007 08:57:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010701#M605215</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2007-05-31T08:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport help?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010702#M605216</link>
      <description>Instead of doing lvreduce(1M) you should have done lvsplit(1M) to break the mirror copy. The steps are given below...alternatively you can look at the lvsplit(1M) man page which has all the info.&lt;BR /&gt;&lt;BR /&gt;-  lvsplit mirror&lt;BR /&gt;-  create new VG&lt;BR /&gt;-  add split lvol to new VG&lt;BR /&gt;-  fsck split lvol&lt;BR /&gt;-  mount lvol for verification&lt;BR /&gt;-  vgexport new VG&lt;BR /&gt;-  copy mapfile onto new server&lt;BR /&gt;-  vgimport new VG into new server&lt;BR /&gt;&lt;BR /&gt;Note that the split off lvol name would end in "b" for ex. /dev/vgold/lvol1b if you stick to the defaults.</description>
      <pubDate>Thu, 31 May 2007 09:03:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010702#M605216</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-05-31T09:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport help?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010703#M605217</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;Coolmar&lt;BR /&gt;&lt;BR /&gt;When you do a lvreduce, you are actually removing the lv from from disk. It can be retrieved, but a vgimport will not work (to my knowledge)&lt;BR /&gt;&lt;BR /&gt;You could try lvsplit, and then vgreduce, but even that may not work because (according to the man page) vgreduce removes the LVM info&lt;BR /&gt;&lt;BR /&gt;You could remove the LUN from system A with the mirror active and add it to system B then do a vgimport - that probably will work - however the VG on system A will require maintenance because of the forced removal.&lt;BR /&gt;&lt;BR /&gt;You probably are better off adding the disk to system B, creating the mount pounts, NFS mounting to system A, and copying the data over that way</description>
      <pubDate>Thu, 31 May 2007 09:07:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010703#M605217</guid>
      <dc:creator>DCE</dc:creator>
      <dc:date>2007-05-31T09:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport help?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010704#M605218</link>
      <description>Because you lvreduced/vgreduced - it removed the lvol info.&lt;BR /&gt;&lt;BR /&gt;Try lvsplit instead and create a new vg&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 31 May 2007 09:07:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010704#M605218</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-05-31T09:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport help?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010705#M605219</link>
      <description>Hi Geoff....so I lvsplit and create a new vg on the new server?  So I can just lvsplit the mirror and then vgimport it on the new server into vg02?</description>
      <pubDate>Thu, 31 May 2007 09:21:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010705#M605219</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2007-05-31T09:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport help?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010706#M605220</link>
      <description>Also, after I am able (I hope) to mount the logical volume on the new server then can I do an lvreduce and vgreduce to get that disk off the original server without it screwing up the new one?</description>
      <pubDate>Thu, 31 May 2007 09:28:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010706#M605220</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2007-05-31T09:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport help?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010707#M605221</link>
      <description>&amp;gt;So I can just lvsplit the mirror and then vgimport it on the new server into vg02? &lt;BR /&gt;&lt;BR /&gt;Yes that would be the way to go.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Also, after I am able (I hope) to mount the logical volume on the new server &amp;gt;then can I do an lvreduce and vgreduce to get that disk off the original server &amp;gt;without it screwing up the new one? &lt;BR /&gt;&lt;BR /&gt;No need to lvreduce since the lvsplit makes the primary or original logical vol un-mirrored. All that needs to be done at the end of the export/import process is a vgreduce which will remove the bitmap for the sync operation in case the lvols are lvmerge'd back in. man lvsplit(1M) for details.</description>
      <pubDate>Thu, 31 May 2007 09:42:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010707#M605221</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-05-31T09:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport help?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010708#M605222</link>
      <description>Ok...almost there I think.  I am on the other server and was able to vgimport but when I try and activate the vg "vgchange -a y vg02" I get the following:&lt;BR /&gt;&lt;BR /&gt;vgchange: Couldn't activate volume group "/dev/vg02":&lt;BR /&gt;Quorum not present, or some physical volume(s) are missing</description>
      <pubDate>Thu, 31 May 2007 09:54:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010708#M605222</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2007-05-31T09:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport help?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010709#M605223</link>
      <description>Yes - just follow Sandman's steps.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 31 May 2007 09:54:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010709#M605223</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-05-31T09:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport help?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010710#M605224</link>
      <description>vgchange -a y -q n vg02&lt;BR /&gt;&lt;BR /&gt;will activate the VG without the quorum requirement.</description>
      <pubDate>Thu, 31 May 2007 09:58:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010710#M605224</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2007-05-31T09:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport help?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010711#M605225</link>
      <description>Are you trying to import this lvol into an existing VG or did you create a new VG on the new system?</description>
      <pubDate>Thu, 31 May 2007 10:01:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010711#M605225</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-05-31T10:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport help?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010712#M605226</link>
      <description>I created a new VG02 on the new system.  Only VG00 existed on teh new system.  I got rid of the quorum error, had something to do with the dual paths.  Now when I fsck the lvol that I split and brought over I get the following:&lt;BR /&gt;&lt;BR /&gt;# fsck /dev/vg02/lvol10&lt;BR /&gt;fsck: /etc/default/fs is used for determining the file system type&lt;BR /&gt;vxfs fsck: read of super-block on /dev/vg02/lvol10 failed: I/O error&lt;BR /&gt;file system check failure, aborting ...</description>
      <pubDate>Thu, 31 May 2007 10:05:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010712#M605226</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2007-05-31T10:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport help?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010713#M605227</link>
      <description>It is all working like a charm!  Thanks so much fellows, I really appreciate the help.  Just one more thing now...on the new server all the lvols are named lvol1bkp lvol2bkp etc.  Not a big deal, but is there a way to change the logical volume name?</description>
      <pubDate>Thu, 31 May 2007 10:21:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010713#M605227</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2007-05-31T10:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport help?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010714#M605228</link>
      <description>You need to fsck the split off lvol on the source (NOT destination) system.</description>
      <pubDate>Thu, 31 May 2007 10:22:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010714#M605228</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-05-31T10:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport help?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010715#M605229</link>
      <description>Yes - vgchange -a n the vg&lt;BR /&gt;&lt;BR /&gt;then cd /dev/vgXX&lt;BR /&gt;&lt;BR /&gt;mv lvol1b lvol1&lt;BR /&gt;&lt;BR /&gt;etc...&lt;BR /&gt;&lt;BR /&gt;update fstab file - and you are good to go.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 31 May 2007 10:23:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010715#M605229</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-05-31T10:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport help?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010716#M605230</link>
      <description>Hi again guys...I can't seem to reduce /dev/vg02 from the original server as sandman said I could do in an above post.  There are still extents being used.  How can I find out where they are being used as none of the lvs that I mirrored are still mirrored.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;# vgreduce /dev/vg02 /dev/dsk/c8t0d3 /dev/dsk/c6t0d3&lt;BR /&gt;vgreduce: Physical volume "/dev/dsk/c8t0d3" could not be removed since some of its&lt;BR /&gt;physical extents are still in use.&lt;BR /&gt;vgreduce: Physical volume "/dev/dsk/c6t0d3" could not be removed since some of its&lt;BR /&gt;physical extents are still in use.&lt;BR /&gt;&lt;BR /&gt;#vgdisplay (end)&lt;BR /&gt; --- Physical volumes ---&lt;BR /&gt;   PV Name                     /dev/dsk/c6t0d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t0d0  Alternate Link&lt;BR /&gt;   PV Status                   available&lt;BR /&gt;   Total PE                    44479&lt;BR /&gt;   Free PE                     0&lt;BR /&gt;   Autoswitch                  On&lt;BR /&gt;&lt;BR /&gt;   PV Name                     /dev/dsk/c6t0d1&lt;BR /&gt;   PV Name                     /dev/dsk/c7t0d1  Alternate Link&lt;BR /&gt;   PV Status                   available&lt;BR /&gt;   Total PE                    9598&lt;BR /&gt;   Free PE                     6823&lt;BR /&gt;   Autoswitch                  On&lt;BR /&gt;&lt;BR /&gt;   PV Name                     /dev/dsk/c8t0d3&lt;BR /&gt;   PV Status                   available&lt;BR /&gt;   Total PE                    9598&lt;BR /&gt;   Free PE                     9285&lt;BR /&gt;   Autoswitch                  On&lt;BR /&gt;&lt;BR /&gt;   PV Name                     /dev/dsk/c6t0d3&lt;BR /&gt;   PV Status                   available&lt;BR /&gt;   Total PE                    33596&lt;BR /&gt;   Free PE                     33471&lt;BR /&gt;   Autoswitch                  On</description>
      <pubDate>Thu, 31 May 2007 12:09:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010716#M605230</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2007-05-31T12:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport help?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010717#M605231</link>
      <description>Do those PVs show up under that VG in the /etclvmtab file. You might need to recreate it. Save the current lvmtab file and run "vgscan -v" on the source system.</description>
      <pubDate>Thu, 31 May 2007 14:37:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010717#M605231</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-05-31T14:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport help?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010718#M605232</link>
      <description>As vgdisplay result:&lt;BR /&gt;==========================&lt;BR /&gt;PV Name /dev/dsk/c6t0d3 &lt;BR /&gt;PV Status available &lt;BR /&gt;Total PE 33596 &lt;BR /&gt;Free PE 33471 &lt;BR /&gt;Autoswitch On  &lt;BR /&gt;================&lt;BR /&gt;33596-33471=125PE is in used now.&lt;BR /&gt;You should use:&lt;BR /&gt;#lvdisplay -v /dev/vg02/lvname  (some last lv on vg02)&lt;BR /&gt;to determine which lv consumes PE&lt;BR /&gt;HTH</description>
      <pubDate>Thu, 31 May 2007 20:59:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-help/m-p/4010718#M605232</guid>
      <dc:creator>Nguyen Anh Tien</dc:creator>
      <dc:date>2007-05-31T20:59:35Z</dc:date>
    </item>
  </channel>
</rss>

