<?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: script for vgexport map files and vgimport map files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-vgexport-map-files-and-vgimport-map-files/m-p/5254937#M658788</link>
    <description>Hi Jose:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Thanks James for your help, much appreciated.&lt;BR /&gt;&lt;BR /&gt;You're welcome.  If you are satisfied, please assign points:&lt;BR /&gt;&lt;A href="http://forums13.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Sat, 11 Sep 2010 11:22:31 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2010-09-11T11:22:31Z</dc:date>
    <item>
      <title>script for vgexport map files and vgimport map files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-vgexport-map-files-and-vgimport-map-files/m-p/5254933#M658784</link>
      <description>Hi&lt;BR /&gt;I need assistance to do the vgimport from the results output of vgexport script. Taking in mind that some of the vgs have unique names " testvg, etc" and others the default way " vg01, etc".  I managed to create a vgexport script file which writes the output to /tmp/dev " hope it is correct" but I am having problems in creating a vgimport script to to use the previous output results from the vgexport.&lt;BR /&gt;&lt;BR /&gt;here is my vgexport:-&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;mkdir /tmp/dev/&lt;BR /&gt;VGS=`vgdisplay|awk '/VG Name/ {print $3}'`&lt;BR /&gt;for VG in ${VGS}&lt;BR /&gt;do&lt;BR /&gt;vgexport -v -p -s -m /tmp${VG}.map ${VG}&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Sep 2010 19:37:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-vgexport-map-files-and-vgimport-map-files/m-p/5254933#M658784</guid>
      <dc:creator>jose da silva</dc:creator>
      <dc:date>2010-09-09T19:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: script for vgexport map files and vgimport map files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-vgexport-map-files-and-vgimport-map-files/m-p/5254934#M658785</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;First, change you 'vgexport' to create files thusly so we can easily glob for them:&lt;BR /&gt;&lt;BR /&gt;# vgexport -v -p -s -m /tmp/${VG}.map ${VG}&lt;BR /&gt;&lt;BR /&gt;Now you can do:&lt;BR /&gt;&lt;BR /&gt;# for VG in $(ls /tmp/vg*.map)&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; BASE=$(basename ${VG} .map)&lt;BR /&gt;&amp;gt; vgimport -v -s -m ${VG} /dev/${BASE}&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;&lt;BR /&gt;...I suggest you copy-and-paste the above for preserving the whitespace that is hard to see :-)&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 09 Sep 2010 19:53:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-vgexport-map-files-and-vgimport-map-files/m-p/5254934#M658785</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-09-09T19:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: script for vgexport map files and vgimport map files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-vgexport-map-files-and-vgimport-map-files/m-p/5254935#M658786</link>
      <description>Hello James&lt;BR /&gt;&lt;BR /&gt;Thanks for your assistance on this one much appreciated. I will try it tomorrow on my dev server.&lt;BR /&gt;&lt;BR /&gt;Warm regards&lt;BR /&gt;Jose da Silva&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Sep 2010 20:17:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-vgexport-map-files-and-vgimport-map-files/m-p/5254935#M658786</guid>
      <dc:creator>jose da silva</dc:creator>
      <dc:date>2010-09-09T20:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: script for vgexport map files and vgimport map files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-vgexport-map-files-and-vgimport-map-files/m-p/5254936#M658787</link>
      <description>Thanks James for your help, much appreciated.</description>
      <pubDate>Sat, 11 Sep 2010 05:49:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-vgexport-map-files-and-vgimport-map-files/m-p/5254936#M658787</guid>
      <dc:creator>jose da silva</dc:creator>
      <dc:date>2010-09-11T05:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: script for vgexport map files and vgimport map files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-vgexport-map-files-and-vgimport-map-files/m-p/5254937#M658788</link>
      <description>Hi Jose:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Thanks James for your help, much appreciated.&lt;BR /&gt;&lt;BR /&gt;You're welcome.  If you are satisfied, please assign points:&lt;BR /&gt;&lt;A href="http://forums13.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sat, 11 Sep 2010 11:22:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-vgexport-map-files-and-vgimport-map-files/m-p/5254937#M658788</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-09-11T11:22:31Z</dc:date>
    </item>
  </channel>
</rss>

