<?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: lvcreate script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4913974#M623604</link>
    <description>I know you closed the thread but...&lt;BR /&gt;Here is a set of scripts that can be used for DR.  I got these from the net and tweaked them a little.  It is set to work with EMC disks but should run with others.  Only problem I have had is when there are multiple CD-ROMs on the system.&lt;BR /&gt;The way to impliment is have a cron job that runs build_vg_conf.sh and then ignite.  On the DR server after igniting you would run recreate_vg.sh.</description>
    <pubDate>Wed, 27 Jul 2005 08:05:57 GMT</pubDate>
    <dc:creator>Ronald Schwartz_1</dc:creator>
    <dc:date>2005-07-27T08:05:57Z</dc:date>
    <item>
      <title>lvcreate script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4913970#M623600</link>
      <description>Does anyone know if there is a command and/or script somewhere that can generate a 'lvcreate' type script from a live system.  I would like to do this to make igniting to another system easier  to build the non-vg00 groups/volumes.  I was hoping there was something like the mount -p for fstab recreation.</description>
      <pubDate>Thu, 21 Jul 2005 22:21:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4913970#M623600</guid>
      <dc:creator>Dan Matlock_1</dc:creator>
      <dc:date>2005-07-21T22:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: lvcreate script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4913971#M623601</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It is not recommended to scriptize the configuration part like file system creation, as it has to be done only once and not to  repeated. Another reason for that is that it could be having some difference in device files.&lt;BR /&gt;&lt;BR /&gt;Morover if you restore or recvoer using ignite you should not be requiring to recreate LVs/VGs. Only import for them should be enough &amp;amp; it even should not require to restore data.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender</description>
      <pubDate>Thu, 21 Jul 2005 22:36:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4913971#M623601</guid>
      <dc:creator>Devender Khatana</dc:creator>
      <dc:date>2005-07-21T22:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: lvcreate script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4913972#M623602</link>
      <description>vgdisplay -v | grep "LV Name" | awk {'print $3'} &amp;gt; /tmp/vgdisp.out&lt;BR /&gt;&lt;BR /&gt;for lv in `cat /tmp/vgdisp.out`&lt;BR /&gt;do&lt;BR /&gt;vgname=`echo $lv | cut -d/ -f3`&lt;BR /&gt;lvname=`echo $lv | cut -d/ -f4`&lt;BR /&gt;&lt;BR /&gt;lvsize=`lvdisplay ${lvname}|grep "LV Size"|awk {'print $4'}`&lt;BR /&gt;&lt;BR /&gt;echo "lvcreate -L ${lvsize} -n ${lvname} ${vgname}" &amp;gt;&amp;gt; /tmp/lvcr_scr.sh&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;this script is a quick hack. it has not been tested (my VPN to office is down) and it does not do any error checking.&lt;BR /&gt;&lt;BR /&gt;Also it assumes the volume groups are there with sufficient space prior to running lvcr_scr.sh &lt;BR /&gt;&lt;BR /&gt;It is not a total solution but it may give you a point to start writing your own most probably or improving on this one.&lt;BR /&gt;&lt;BR /&gt;Hope it helps&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Jul 2005 22:39:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4913972#M623602</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-07-21T22:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: lvcreate script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4913973#M623603</link>
      <description>great feedback!!!&lt;BR /&gt;&lt;BR /&gt;this is what i need, the 2nd DR system will have diff. raid/dsk and I plan on creating the same size VG, and just need something to whip together quickly to lvcreate.....  unfortunetly all non-vg00 groups are on new and diff. disks/raid units.  will try to clone/map w/ignite, but this will script will be a plan B.&lt;BR /&gt;thanx,</description>
      <pubDate>Thu, 21 Jul 2005 23:05:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4913973#M623603</guid>
      <dc:creator>Dan Matlock_1</dc:creator>
      <dc:date>2005-07-21T23:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: lvcreate script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4913974#M623604</link>
      <description>I know you closed the thread but...&lt;BR /&gt;Here is a set of scripts that can be used for DR.  I got these from the net and tweaked them a little.  It is set to work with EMC disks but should run with others.  Only problem I have had is when there are multiple CD-ROMs on the system.&lt;BR /&gt;The way to impliment is have a cron job that runs build_vg_conf.sh and then ignite.  On the DR server after igniting you would run recreate_vg.sh.</description>
      <pubDate>Wed, 27 Jul 2005 08:05:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4913974#M623604</guid>
      <dc:creator>Ronald Schwartz_1</dc:creator>
      <dc:date>2005-07-27T08:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: lvcreate script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4913975#M623605</link>
      <description>Thanks for the respone!!!   Your scripts are what I am looking for, unfortunetly our Sungard test was last weekend and I didn't see the response.  I did make a script using some of the other suggestions, and my DR was successful.  Recovered 11 systems in about 6-7 hours = very busy.....  We have another one by end of the year, so will try another approach.  I would like to use a ignite server instead of tapes as well.....</description>
      <pubDate>Tue, 02 Aug 2005 20:01:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-script/m-p/4913975#M623605</guid>
      <dc:creator>Dan Matlock_1</dc:creator>
      <dc:date>2005-08-02T20:01:29Z</dc:date>
    </item>
  </channel>
</rss>

