<?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 lvcreate script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4882527#M400810</link>
    <description>Does anyone have a script that can recreate logical volumes from a bdf output or vgdisplay output. I will be particpating in a DR excercise and trying to expedite the lvcreate process</description>
    <pubDate>Thu, 27 Jan 2005 11:35:03 GMT</pubDate>
    <dc:creator>Donald C Nelson</dc:creator>
    <dc:date>2005-01-27T11:35:03Z</dc:date>
    <item>
      <title>lvcreate script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4882527#M400810</link>
      <description>Does anyone have a script that can recreate logical volumes from a bdf output or vgdisplay output. I will be particpating in a DR excercise and trying to expedite the lvcreate process</description>
      <pubDate>Thu, 27 Jan 2005 11:35:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4882527#M400810</guid>
      <dc:creator>Donald C Nelson</dc:creator>
      <dc:date>2005-01-27T11:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: lvcreate script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4882528#M400811</link>
      <description>Hi Donald,&lt;BR /&gt;&lt;BR /&gt;Have not tried this, but try the script attched by Nick,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=11150" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=11150&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also get many more scripts for other purposes over here,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=178514" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=178514&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Jan 2005 11:49:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4882528#M400811</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2005-01-27T11:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: lvcreate script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4882529#M400812</link>
      <description>I love the idea of running lvcreate from bdf output to recreate logical volumes.&lt;BR /&gt;&lt;BR /&gt;Overall concept though. &lt;BR /&gt;&lt;BR /&gt;When I'm doing a DR excercise it involves getting a make_tape_recovery tape from secure off site storage, sticking it in a server tape drive and booting the system off the tape.&lt;BR /&gt;&lt;BR /&gt;That lets be get the entire server setup running correctly in a few hours. Oracle apps, legacy apps, the whole nine yards.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 27 Jan 2005 12:07:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4882529#M400812</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-01-27T12:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: lvcreate script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4882530#M400813</link>
      <description>Bdf alone will not do the job. It knows nothing about swap and raw volumes.&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Jan 2005 12:10:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4882530#M400813</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-01-27T12:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: lvcreate script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4882531#M400814</link>
      <description>I can suggest a quick and dirty script - take it from there :-)&lt;BR /&gt;&lt;BR /&gt;# vgdisplay 2&amp;gt;/dev/null | grep "VG Name" | awk '{print $3}' | xargs -n1 | while read VG &lt;BR /&gt;do&lt;BR /&gt;VGNAME=$(echo "$VG" | sed 's/\/dev\///')&lt;BR /&gt;vgdisplay -v $VG | egrep "LV Name|Current LE" &amp;gt; /root/$VGNAME-LV.list&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Now once you are done restoring the ignite in the DR server&lt;BR /&gt;&lt;BR /&gt;# for VGS in $(ls /root/*LV.list)&lt;BR /&gt;do&lt;BR /&gt;cat VGS | xargs -n2 | while read LV SIZE&lt;BR /&gt;do&lt;BR /&gt;VGNAME=$(echo "$VGS" | sed 's/\-LV\.list//')&lt;BR /&gt;LVNAME=$(echo "$LV" | sed 's/\/dev\/vg.*\///')&lt;BR /&gt;lvcreate -l $SIZE -n $LVNAME /dev/$VGNAME&lt;BR /&gt;done&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Remember, the above excerpt will not take care of striping or extend allocation policies or mirroring. But one would assume that is not critical for the DR tests.&lt;BR /&gt;&lt;BR /&gt;I am not sure the above script is not going to work either :-).</description>
      <pubDate>Thu, 27 Jan 2005 13:19:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4882531#M400814</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2005-01-27T13:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: lvcreate script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4882532#M400815</link>
      <description>Sunar's scripts with a some modifications gave me exactly what I was looking for.</description>
      <pubDate>Thu, 27 Jan 2005 16:28:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4882532#M400815</guid>
      <dc:creator>Donald C Nelson</dc:creator>
      <dc:date>2005-01-27T16:28:52Z</dc:date>
    </item>
  </channel>
</rss>

