<?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 same volume group in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-same-volume-group/m-p/3031567#M707933</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;I'm not so sure you will actually get what you want.  you cannot export the a volume group with 2 disks &amp;amp; import it into another with 4 disks.   However you CAN modify the existing volume group by addin mode disks.  Creating NEW logical volumes within it &amp;amp; striping these over the 4 disks.  Then migrate the data from the old LV to the new LV. e.g.&lt;BR /&gt;# pvcreate /dev/rdsk/cXt?d?&lt;BR /&gt;# pvcreate /dev/rdsk/cYt?d?&lt;BR /&gt;# vgextend vgdb5 /dev/dsk/cXt?d? /dev/dsk/CYt?d?&lt;BR /&gt;&lt;BR /&gt;For KB striping... stripe as follows&lt;BR /&gt;# lvcreate -n &lt;NEW_LV&gt; -i 4 -I &amp;lt;4|8|16|32|64&amp;gt; -L &lt;SIZE_MB&gt; vgdb5&lt;BR /&gt;&lt;BR /&gt;For extent striping.... stripe as fillows&lt;BR /&gt;edit the /etc/lvmpvg accordingly&lt;BR /&gt;# lvcreate -n&lt;NEW_LV&gt; -D y -s g -L &lt;SIZE_MB&gt; vgdb5&lt;BR /&gt;&lt;BR /&gt;Transfer data&lt;BR /&gt;# dd /dev/vgdb5/r&lt;OLD_LV&gt; bs=4096k # of=/dev/vgdb5/r&lt;NEW_LV&gt;&lt;BR /&gt;# lvremove /dev/vgdb5/&lt;OLD_LV&gt;&lt;BR /&gt;&lt;BR /&gt;1) &lt;BR /&gt;svra# la -s /dev/vgdb5/group&lt;BR /&gt;-- note minor number, say 0xNN0000&lt;BR /&gt;svra# vgexport -m &lt;MAPFIKE&gt; -s -p -v vgdb5&lt;BR /&gt;svra# rcp &lt;MAPFILE&gt; svrb&lt;BR /&gt;&lt;BR /&gt;svrb# vgexport vgdb5&lt;BR /&gt;svrb# mkdir /dev/vgdb5&lt;BR /&gt;svrb# mknod /dev/vgdb5/group c 64 0xNN0000&lt;BR /&gt;svrb# vgimport -m &lt;MAPFILE&gt; -s -v vgdb5&lt;BR /&gt;&lt;BR /&gt;IF you are alternating your disks then it may be best if you do not use vgexport with -s &amp;amp; list the disks expliitly on the vgimport&lt;BR /&gt;svra# vgexport -m &lt;MAPFILE&gt; -p -v vgdb5&lt;BR /&gt;&amp;amp;&lt;BR /&gt;svrb# vgimport -m &lt;MAPFILE&gt; -v vgdb5 /dev/dsk/cXt?d? /dev/dsk/cYt?d? /dev/dsk/cXt?d? ...etc...&lt;BR /&gt;&lt;BR /&gt;2) the vgimport reads the LVM disk headers &amp;amp; creates the relavent devices in /dev/vgdb5/ &amp;amp; names them according to the mapfile.  It also updates the /etc/lvmtab as to the disks &amp;amp; their order in the volume group.  I.e. the OS gets a abridged copy of what is already listed on the disk headers.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Tim&lt;/MAPFILE&gt;&lt;/MAPFILE&gt;&lt;/MAPFILE&gt;&lt;/MAPFILE&gt;&lt;/MAPFIKE&gt;&lt;/OLD_LV&gt;&lt;/NEW_LV&gt;&lt;/OLD_LV&gt;&lt;/SIZE_MB&gt;&lt;/NEW_LV&gt;&lt;/SIZE_MB&gt;&lt;/NEW_LV&gt;</description>
    <pubDate>Wed, 23 Jul 2003 18:27:58 GMT</pubDate>
    <dc:creator>Tim D Fulford</dc:creator>
    <dc:date>2003-07-23T18:27:58Z</dc:date>
    <item>
      <title>vgimport same volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-same-volume-group/m-p/3031564#M707930</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;In a cluster environment, we have couple of volume groups. We are planning to add a total of 2 striped logical volumes to the existing volume group vgdb5 by addting 4 more disks to it.&lt;BR /&gt;&lt;BR /&gt;In this scenario,&lt;BR /&gt;1) while exporting the volume group vgdb5 do I have to deactivate it before exporting?&lt;BR /&gt;&lt;BR /&gt;2) What actually happens when I import the existing volume group vgdb5, which had earlier 2 striped logical volumes with four disk and has been extended to 8 disks with 4 striped logical volume groups?&lt;BR /&gt;&lt;BR /&gt;I really appreciate your response.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Nikee</description>
      <pubDate>Wed, 23 Jul 2003 17:53:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-same-volume-group/m-p/3031564#M707930</guid>
      <dc:creator>Nikee Reddy</dc:creator>
      <dc:date>2003-07-23T17:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport same volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-same-volume-group/m-p/3031565#M707931</link>
      <description>If you are only trying to export the VG map (for the other node and importing it over there)- you do not have to deactivate it.&lt;BR /&gt;&lt;BR /&gt;1)&lt;BR /&gt;do vgexport -pvs -m &lt;MAP name=""&gt; &lt;VG name=""&gt;&lt;BR /&gt;(ignore the error that VG is active)&lt;BR /&gt;&lt;BR /&gt;In the other node.&lt;BR /&gt;make sure the new disks are seen in the other node. &lt;BR /&gt;ftp or rcp the map file&lt;BR /&gt;do vgimport -s -m &lt;MAP name=""&gt; &lt;VGNAME&gt;&lt;BR /&gt;&lt;BR /&gt;2) Nothing - &lt;BR /&gt;the second node is aware that there are new PVs/ LVs in the VG and when it actually imports the VG, it will bring in everything.&lt;BR /&gt;&lt;BR /&gt;If you are trying to do export / import for actual test you can rerun the vgexport without -p (preview) to export it actually&lt;BR /&gt;&lt;/VGNAME&gt;&lt;/MAP&gt;&lt;/VG&gt;&lt;/MAP&gt;</description>
      <pubDate>Wed, 23 Jul 2003 17:59:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-same-volume-group/m-p/3031565#M707931</guid>
      <dc:creator>Vasikaran Venkatesan</dc:creator>
      <dc:date>2003-07-23T17:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport same volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-same-volume-group/m-p/3031566#M707932</link>
      <description>Just answered this myself a few days ago in this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1591227a6ab4d711900a0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1591227a6ab4d711900a0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The answer to #1 - deactivate NOT required&lt;BR /&gt;&lt;BR /&gt;#2 - you will see the new devices when you do a strings /etc/lvmtab  (if you have granted access to the new disks and have ioscaned/insf -e).&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Wed, 23 Jul 2003 18:26:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-same-volume-group/m-p/3031566#M707932</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2003-07-23T18:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport same volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-same-volume-group/m-p/3031567#M707933</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I'm not so sure you will actually get what you want.  you cannot export the a volume group with 2 disks &amp;amp; import it into another with 4 disks.   However you CAN modify the existing volume group by addin mode disks.  Creating NEW logical volumes within it &amp;amp; striping these over the 4 disks.  Then migrate the data from the old LV to the new LV. e.g.&lt;BR /&gt;# pvcreate /dev/rdsk/cXt?d?&lt;BR /&gt;# pvcreate /dev/rdsk/cYt?d?&lt;BR /&gt;# vgextend vgdb5 /dev/dsk/cXt?d? /dev/dsk/CYt?d?&lt;BR /&gt;&lt;BR /&gt;For KB striping... stripe as follows&lt;BR /&gt;# lvcreate -n &lt;NEW_LV&gt; -i 4 -I &amp;lt;4|8|16|32|64&amp;gt; -L &lt;SIZE_MB&gt; vgdb5&lt;BR /&gt;&lt;BR /&gt;For extent striping.... stripe as fillows&lt;BR /&gt;edit the /etc/lvmpvg accordingly&lt;BR /&gt;# lvcreate -n&lt;NEW_LV&gt; -D y -s g -L &lt;SIZE_MB&gt; vgdb5&lt;BR /&gt;&lt;BR /&gt;Transfer data&lt;BR /&gt;# dd /dev/vgdb5/r&lt;OLD_LV&gt; bs=4096k # of=/dev/vgdb5/r&lt;NEW_LV&gt;&lt;BR /&gt;# lvremove /dev/vgdb5/&lt;OLD_LV&gt;&lt;BR /&gt;&lt;BR /&gt;1) &lt;BR /&gt;svra# la -s /dev/vgdb5/group&lt;BR /&gt;-- note minor number, say 0xNN0000&lt;BR /&gt;svra# vgexport -m &lt;MAPFIKE&gt; -s -p -v vgdb5&lt;BR /&gt;svra# rcp &lt;MAPFILE&gt; svrb&lt;BR /&gt;&lt;BR /&gt;svrb# vgexport vgdb5&lt;BR /&gt;svrb# mkdir /dev/vgdb5&lt;BR /&gt;svrb# mknod /dev/vgdb5/group c 64 0xNN0000&lt;BR /&gt;svrb# vgimport -m &lt;MAPFILE&gt; -s -v vgdb5&lt;BR /&gt;&lt;BR /&gt;IF you are alternating your disks then it may be best if you do not use vgexport with -s &amp;amp; list the disks expliitly on the vgimport&lt;BR /&gt;svra# vgexport -m &lt;MAPFILE&gt; -p -v vgdb5&lt;BR /&gt;&amp;amp;&lt;BR /&gt;svrb# vgimport -m &lt;MAPFILE&gt; -v vgdb5 /dev/dsk/cXt?d? /dev/dsk/cYt?d? /dev/dsk/cXt?d? ...etc...&lt;BR /&gt;&lt;BR /&gt;2) the vgimport reads the LVM disk headers &amp;amp; creates the relavent devices in /dev/vgdb5/ &amp;amp; names them according to the mapfile.  It also updates the /etc/lvmtab as to the disks &amp;amp; their order in the volume group.  I.e. the OS gets a abridged copy of what is already listed on the disk headers.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Tim&lt;/MAPFILE&gt;&lt;/MAPFILE&gt;&lt;/MAPFILE&gt;&lt;/MAPFILE&gt;&lt;/MAPFIKE&gt;&lt;/OLD_LV&gt;&lt;/NEW_LV&gt;&lt;/OLD_LV&gt;&lt;/SIZE_MB&gt;&lt;/NEW_LV&gt;&lt;/SIZE_MB&gt;&lt;/NEW_LV&gt;</description>
      <pubDate>Wed, 23 Jul 2003 18:27:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-same-volume-group/m-p/3031567#M707933</guid>
      <dc:creator>Tim D Fulford</dc:creator>
      <dc:date>2003-07-23T18:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport same volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-same-volume-group/m-p/3031568#M707934</link>
      <description>oops I just read you Q again. You are using Mirrored Extent stripes so ignore my kilobyte stripes &amp;amp; use&lt;BR /&gt;&lt;BR /&gt;# lvcreate -m 1 -D y -s g -L &lt;SIZE_MB&gt; -n &lt;NEW_LV&gt; vgdb5&lt;BR /&gt;&lt;BR /&gt;Tim&lt;/NEW_LV&gt;&lt;/SIZE_MB&gt;</description>
      <pubDate>Wed, 23 Jul 2003 18:30:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-same-volume-group/m-p/3031568#M707934</guid>
      <dc:creator>Tim D Fulford</dc:creator>
      <dc:date>2003-07-23T18:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport same volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-same-volume-group/m-p/3031569#M707935</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Thanks for your response.&lt;BR /&gt;&lt;BR /&gt;While I am importing the vgdb5 volume group on the other system, system is responding with the following error message:&lt;BR /&gt;&lt;BR /&gt;root@europa:/tmp# vgimport -m /tmp/vgdb5.map -v -f /tmp/vgdb5_disks.txt vgdb5&lt;BR /&gt;Beginning the import process on Volume Group "vgdb5".&lt;BR /&gt;vgimport: Volume group "/dev/vgdb5" already exists in the "/etc/lvmtab" file.&lt;BR /&gt;&lt;BR /&gt;Please let me know how to import the modified volume group vgdb5?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Nikee</description>
      <pubDate>Wed, 23 Jul 2003 18:34:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-same-volume-group/m-p/3031569#M707935</guid>
      <dc:creator>Nikee Reddy</dc:creator>
      <dc:date>2003-07-23T18:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport same volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-same-volume-group/m-p/3031570#M707936</link>
      <description>vgexport that VG from the second node&lt;BR /&gt;mkdir /dev/vgdb5&lt;BR /&gt;mknod /dev/vgdb5/group c 64 0x0*&lt;BR /&gt;Replace the star with the same minor # from the other node.&lt;BR /&gt;&lt;BR /&gt;Now do a vgimport - it shd not complain.</description>
      <pubDate>Wed, 23 Jul 2003 18:43:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-same-volume-group/m-p/3031570#M707936</guid>
      <dc:creator>Vasikaran Venkatesan</dc:creator>
      <dc:date>2003-07-23T18:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: vgimport same volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-same-volume-group/m-p/3031571#M707937</link>
      <description>assumed one thing - to be more clear -&lt;BR /&gt;&lt;BR /&gt;Before exporting- u have to deactivate it.&lt;BR /&gt;vgchange -c n /dev/vgdb5 (since it is cluster aware) then do the vgexport.</description>
      <pubDate>Wed, 23 Jul 2003 18:46:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgimport-same-volume-group/m-p/3031571#M707937</guid>
      <dc:creator>Vasikaran Venkatesan</dc:creator>
      <dc:date>2003-07-23T18:46:43Z</dc:date>
    </item>
  </channel>
</rss>

