<?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 query in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490853#M214878</link>
    <description>The easiest cleanest way to do it is:&lt;BR /&gt;&lt;BR /&gt;# vgexport -m /var/tmp/mapfilename -p -v -s vg??&lt;BR /&gt;&lt;BR /&gt;Copy mapfile to other machine.&lt;BR /&gt;&lt;BR /&gt;Then on the other machine:&lt;BR /&gt;&lt;BR /&gt;# mkdir /dev/vgname&lt;BR /&gt;# mknod /dev/vgname/group c 64 0x0?0000&lt;BR /&gt;# vgimport -m /var/tmp/mapfilename -v -s vgname&lt;BR /&gt;&lt;BR /&gt;The mapfile with the VGID will scan all drives and import those with the appropriate VGID.  This eliminates having to worry with device file names.&lt;BR /&gt;&lt;BR /&gt;It doesn't matter if the device files are different or the same.  It will still work.</description>
    <pubDate>Tue, 22 Feb 2005 11:04:22 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2005-02-22T11:04:22Z</dc:date>
    <item>
      <title>vgimport query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490844#M214869</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have a cluster, within that cluster I have a volume group which shares the same disk. Unfortunately the controller ids are different on each server. I am adding an additional logical volume and need to re-import the volume group to the second server. These are the steps I believe I need to take is this correct:-&lt;BR /&gt;&lt;BR /&gt;vgchange -a n /dev/vg01&lt;BR /&gt;vgexport -f /tmp/disk /dev/vg01 (I don't need mapfile do I?)&lt;BR /&gt;&lt;BR /&gt;Then scp /tmp/disk to system 2.&lt;BR /&gt;&lt;BR /&gt;On system 2:-&lt;BR /&gt;edit /tmp/disk to reflect correct controller ids&lt;BR /&gt;vgimport -f /tmp/disk /dev/vg01&lt;BR /&gt;vgchange -a y /dev/vg01&lt;BR /&gt;&lt;BR /&gt;Is this right?&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Feb 2005 10:47:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490844#M214869</guid>
      <dc:creator>Adam Noble</dc:creator>
      <dc:date>2005-02-22T10:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490845#M214870</link>
      <description>Adam, &lt;BR /&gt;&lt;BR /&gt;I think you would rather use -s than -f:&lt;BR /&gt;&lt;BR /&gt;vgexport -s /dev/vg01&lt;BR /&gt;&lt;BR /&gt;- and -&lt;BR /&gt;&lt;BR /&gt;mkdir /dev/vg01&lt;BR /&gt;mknod /dev/vg01/group c 64 0x010000&lt;BR /&gt;vgimport -s /dev/vg01&lt;BR /&gt;vgchange -a y /dev/vg01&lt;BR /&gt;&lt;BR /&gt;As far as maps are concerned, you don't need them unless your logical volume names are non-standard (anything other than lvol01, lvol02, etc)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 22 Feb 2005 10:52:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490845#M214870</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-02-22T10:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490846#M214871</link>
      <description>Pete but its my understanding that I need to use the -f option because the disk ids are different on the second server. i.e c7 instead of c6, therefore if I imported them with a mapfile it would fail</description>
      <pubDate>Tue, 22 Feb 2005 10:54:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490846#M214871</guid>
      <dc:creator>Adam Noble</dc:creator>
      <dc:date>2005-02-22T10:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490847#M214872</link>
      <description>You don't need to go through all that work:&lt;BR /&gt;&lt;BR /&gt;On first system:&lt;BR /&gt;&lt;BR /&gt;vgexport -m &lt;MAPFILE&gt; -p -s /dev/vg01&lt;BR /&gt;&lt;BR /&gt;ls -la /dev/vg01/group (make a note of the minor number)&lt;BR /&gt;&lt;BR /&gt;Copy the mapfile over to the second system.&lt;BR /&gt;&lt;BR /&gt;On second system&lt;BR /&gt;&lt;BR /&gt;vgchange -a n /dev/vg01 (shouldn't be needed)&lt;BR /&gt;vgexport /dev/vg01&lt;BR /&gt;&lt;BR /&gt;mkdir /dev/vg01&lt;BR /&gt;mknod /dev/vg01/group c 64 0xYY0000 (where YY is the minor number above)&lt;BR /&gt;&lt;BR /&gt;vgimport -m &lt;MAPFILE&gt; -s /dev/vg01&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This is the process I use when doing what you're asking about. &lt;BR /&gt;&lt;/MAPFILE&gt;&lt;/MAPFILE&gt;</description>
      <pubDate>Tue, 22 Feb 2005 10:55:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490847#M214872</guid>
      <dc:creator>Gary L. Paveza, Jr.</dc:creator>
      <dc:date>2005-02-22T10:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490848#M214873</link>
      <description>Because the controller paths are different, your -f file will be wrong on the 2nd host. Normally, you would want to use the -s option and a mapfile. -s writes the VGID into the mapfile along with the LVOL names.</description>
      <pubDate>Tue, 22 Feb 2005 10:57:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490848#M214873</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-02-22T10:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490849#M214874</link>
      <description>Don't you need the -p option on the vgexport, so that you don't actually export all of the volume group information from machine 1&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Hilary</description>
      <pubDate>Tue, 22 Feb 2005 10:57:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490849#M214874</guid>
      <dc:creator>Hilary Nicholson</dc:creator>
      <dc:date>2005-02-22T10:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490850#M214875</link>
      <description>Yes I agree I'm aware that the disk file would be different but I would then edit the file to reflect the appropriate disk ids. If I use a mapfile will it not look for the same disk id's as on the 1st server and fail?</description>
      <pubDate>Tue, 22 Feb 2005 10:58:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490850#M214875</guid>
      <dc:creator>Adam Noble</dc:creator>
      <dc:date>2005-02-22T10:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490851#M214876</link>
      <description>If you use the -s option, vgexport will write the VGID on the disks, and the vgimport (with -s) will scan all your disks looking for the correct VGID.  So it won't matter what device files they are.</description>
      <pubDate>Tue, 22 Feb 2005 11:00:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490851#M214876</guid>
      <dc:creator>Gary L. Paveza, Jr.</dc:creator>
      <dc:date>2005-02-22T11:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490852#M214877</link>
      <description>Gary thats exactly the confirmation I was looking for ok I will do as you say.&lt;BR /&gt;&lt;BR /&gt;Thanks all</description>
      <pubDate>Tue, 22 Feb 2005 11:01:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490852#M214877</guid>
      <dc:creator>Adam Noble</dc:creator>
      <dc:date>2005-02-22T11:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490853#M214878</link>
      <description>The easiest cleanest way to do it is:&lt;BR /&gt;&lt;BR /&gt;# vgexport -m /var/tmp/mapfilename -p -v -s vg??&lt;BR /&gt;&lt;BR /&gt;Copy mapfile to other machine.&lt;BR /&gt;&lt;BR /&gt;Then on the other machine:&lt;BR /&gt;&lt;BR /&gt;# mkdir /dev/vgname&lt;BR /&gt;# mknod /dev/vgname/group c 64 0x0?0000&lt;BR /&gt;# vgimport -m /var/tmp/mapfilename -v -s vgname&lt;BR /&gt;&lt;BR /&gt;The mapfile with the VGID will scan all drives and import those with the appropriate VGID.  This eliminates having to worry with device file names.&lt;BR /&gt;&lt;BR /&gt;It doesn't matter if the device files are different or the same.  It will still work.</description>
      <pubDate>Tue, 22 Feb 2005 11:04:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490853#M214878</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-02-22T11:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490854#M214879</link>
      <description>Hi,&lt;BR /&gt;What i do is:&lt;BR /&gt;On Server 1..&lt;BR /&gt;No need tp deactivate the VG01&lt;BR /&gt;#vgexport -m /var/tmp/mapfilename -p -v -s vg01&lt;BR /&gt;&lt;BR /&gt;Copy mapfile to other Server 2.&lt;BR /&gt;&lt;BR /&gt;Then on Server 2:&lt;BR /&gt;&lt;BR /&gt;# mkdir /dev/vg01&lt;BR /&gt;# mknod /dev/vg01/group c 64 0x0?0000&lt;BR /&gt;# vgimport -m /var/tmp/mapfilename -v -s vgname &lt;PV1&gt; &lt;PV2&gt; &amp;lt;..&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Make sure you are using the same PV's that belongs to vg01 on server1. You can make this looking at the H/w path in IOSCAN output on both the servers.&lt;BR /&gt;&lt;BR /&gt;Hope that helps.&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;ps. Gary's suggestion would be the best one but i have never tried in that way.&lt;BR /&gt;&lt;/PV2&gt;&lt;/PV1&gt;</description>
      <pubDate>Tue, 22 Feb 2005 12:42:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-query/m-p/3490854#M214879</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2005-02-22T12:42:47Z</dc:date>
    </item>
  </channel>
</rss>

