<?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 help please in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891242#M102913</link>
    <description />
    <pubDate>Fri, 31 Jan 2003 13:37:57 GMT</pubDate>
    <dc:creator>John Meissner</dc:creator>
    <dc:date>2003-01-31T13:37:57Z</dc:date>
    <item>
      <title>script help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891223#M102894</link>
      <description>posted in the wrong place ... posting here to imporve visability&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5f235bd3782dd711abdc0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5f235bd3782dd711abdc0090277a778c,00.html&lt;/A&gt;</description>
      <pubDate>Tue, 28 Jan 2003 19:32:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891223#M102894</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-01-28T19:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: script help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891224#M102895</link>
      <description>Hi John,&lt;BR /&gt;&lt;BR /&gt;I've done something similar to what you are trying.  I wrote a script 'build_vg_conf' that will write a simple configuration file which describes a volume group and the logical volumes in it.  These config files are used by a second script, 'recreate_vg', which will create the volume groups and logical volumes.  The 'recreate_vg' script can go search for your EMC disks, or you can pass it a list of PVs in a file.  We've used this script a couple of times in disaster recovery drills and it seems to work.  Feel free to take it and hack it up for your needs, or just copy the useful parts of it as needed.  It does many of the same things you are trying to do in your script, such as finding a valid list of EMC disks, figuring out the next available minor number to use for creating VGs, etc.&lt;BR /&gt;&lt;BR /&gt;Have fun!&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jan 2003 20:32:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891224#M102895</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-01-28T20:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: script help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891225#M102896</link>
      <description>Here is the 'build_vg_conf' script.  We usually put it in cron and run it once a day. The config files are small and we just leave them in our root home directory, and they get picked up for free by our Ignite backups.&lt;BR /&gt;&lt;BR /&gt;Here is a sample config file:&lt;BR /&gt;&lt;BR /&gt;PESIZE 4&lt;BR /&gt;TOTALPE 6471&lt;BR /&gt;LV /dev/vg_app/lvol1 /u01/app/oracle 2000&lt;BR /&gt;LV /dev/vg_app/lvol2 /u01/app/applmgr 4000&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;See, I figured out that all I really needed to recreate a volume group was the name, the PE size, and the number of PEs.  The number of PVs in the old VG doesn't really matter because you might not have the same size PVs on the new system, and as long as the PE size is the same it doesn't really matter.  The 'recreate_vg' script will look at this config file, figure out how big the VG needs to be in PEs, and start pvcreating PVs and throwing them into the new VG until it has enough PEs.  Then it is a simple matter to create the LVs based on the LV entries in the config file.&lt;BR /&gt;&lt;BR /&gt;Fun stuff!&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jan 2003 20:36:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891225#M102896</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-01-28T20:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: script help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891226#M102897</link>
      <description>Oops.  Here is the 'build_vg_conf' script.  I forgot to attach it to the last post.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jan 2003 20:38:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891226#M102897</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-01-28T20:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: script help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891227#M102898</link>
      <description>Great - Thanks for the script!  I'll take a look and see if it works for my needs - at the very least I'll be able to redirect my approach from here.</description>
      <pubDate>Tue, 28 Jan 2003 20:47:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891227#M102898</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-01-28T20:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: script help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891228#M102899</link>
      <description>John - just out of curiousity - when you execute the 2nd script do you need to pass it any options?  I ran it and came up with a few errors.  and it doesn't look like it completed it's task.  just checking.  I definately will be using most of what you wrote to recover my vg's but so far the script doesn't work "as is".  Any suggestions?</description>
      <pubDate>Thu, 30 Jan 2003 19:14:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891228#M102899</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-01-30T19:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: script help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891229#M102900</link>
      <description>Hi John,&lt;BR /&gt;&lt;BR /&gt;Which script gave you the errors, and what errors did you get?  If it is the 'recreate_vg' script, I'm not surprised as I usually just run it [and refine it] while we are doing a disaster recovery drill, which means it only gets worked on when I am very sleep deprived and full of caffeine.  [Not too far from my normal condition!].&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jan 2003 19:33:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891229#M102900</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-01-30T19:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: script help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891230#M102901</link>
      <description>John - yeah it was the recreate script.  It had a few useage errors....&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/vgcreate -p 128 -s $VG&lt;BR /&gt;Usage: vgcreate&lt;BR /&gt;[-f]&lt;BR /&gt;[-A Autobackup]&lt;BR /&gt;[-x Extensibility]&lt;BR /&gt;[-e MaxPhysicalExtents]&lt;BR /&gt;etc.....&lt;BR /&gt;&lt;BR /&gt;I can probably send you the entire file with all the output if you really want.  I saved it to a file but it's too big to attach here.  &lt;BR /&gt;&lt;BR /&gt;I know what you mean about sleep deprived...  our DR tests are the same way.  Fortunately I work for Mars Inc (M&amp;amp;M candies) so I usually have a sugar rush going for me... plus one of our companies makes coffee so We bring a brewer with us to the test site.  Still .... If I can get this working then it'll cut the build time down to almost nothing... and then we can go to out and have some fun  :)&lt;BR /&gt;....and thanks for the quick response too.</description>
      <pubDate>Thu, 30 Jan 2003 19:53:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891230#M102901</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-01-30T19:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: script help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891231#M102902</link>
      <description>Ok.  The 'recreate_vg' script expects to find the *.config files for the volume groups that are created by the 'build_vg_conf' script.  Did you run 'build_vg_conf' first to give it some .config files to work with?&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jan 2003 20:04:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891231#M102902</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-01-30T20:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: script help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891232#M102903</link>
      <description>And you're welcome.  My boss thinks I am busy working.  Too busy to go help roll some new equipment from the other end of the building to the computer room.   :)&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jan 2003 20:06:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891232#M102903</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-01-30T20:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: script help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891233#M102904</link>
      <description>Yes - the config files that the 1st script generated were in the same directory as the recreate script.  in this case there were 2 files since the server I was creating had 2 vg's besides vg00.</description>
      <pubDate>Thu, 30 Jan 2003 20:50:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891233#M102904</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-01-30T20:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: script help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891234#M102905</link>
      <description>you get extra points for making your boss thing you're busy  :)</description>
      <pubDate>Thu, 30 Jan 2003 20:51:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891234#M102905</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-01-30T20:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: script help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891235#M102906</link>
      <description>I'm attaching one of the config files that the script created&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jan 2003 21:17:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891235#M102906</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-01-30T21:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: script help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891236#M102907</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;Go ahead and post your output as an attachment.  I'd like to take a look at it.  Also, if you can post the two .config files I'd like to see them as well.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jan 2003 21:17:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891236#M102907</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-01-30T21:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: script help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891237#M102908</link>
      <description>ok - the one config file i attached to my above post.  I'll attach the 2nd config file here&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jan 2003 21:24:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891237#M102908</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-01-30T21:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: script help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891238#M102909</link>
      <description />
      <pubDate>Thu, 30 Jan 2003 21:30:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891238#M102909</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-01-30T21:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: script help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891239#M102910</link>
      <description>It looks like there were a couple of problems.  In your first .config file the lvol8 and lvol15 logical volumes didn't get entries for the mount points.  Are those LVs mounted currently?  The 'build_vg_conf' script just takes the output from the 'mount' command to try to figure out the LVs and mount points.  &lt;BR /&gt;&lt;BR /&gt;Also, it looks like the 'recreate_vg' may have picked up a bogus .config file.  The 'build_vg.config' file looks like it might be the culprit.  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The vgcreate commands for the vg043bin and vg043data VGs choked with a 'file too large' error.  I'm not sure what that is all about.  Probably the author of the script should have put in more error checking!&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jan 2003 21:47:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891239#M102910</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-01-30T21:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: script help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891240#M102911</link>
      <description>I poked around and I found a document that explains the 'file too large' error for the vgcreate:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000065011234" target="_blank"&gt;http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000065011234&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;When I last used this script, we had a huge VG with just over a hundred PVs in it.  The 'vgcreate' line in the 'recreate_vg' script is hard coded to set the Max PVs for 128.  I think that is causing problems for vgcreate.  Try lowering the '-p 128' option to something more reasonable, like '-p 32' and give it another go.  You'll also need to get rid of the bogus .config file and make sure there are mountpoint entries in the vg043bin.config file.&lt;BR /&gt;&lt;BR /&gt;Time for more caffeine!&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jan 2003 22:05:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891240#M102911</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-01-30T22:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: script help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891241#M102912</link>
      <description>Yes - I see the entry in the 1st config file that is messed up.  I'll just try removing that or manually entering the correct information into the fields.  I'll let you know how it goes.&lt;BR /&gt;&lt;BR /&gt;as for the max extents... i'll take a look at that too.  I know that some of our servers have terabytes of diskspace.... will the hardcoded 128 effect this?</description>
      <pubDate>Fri, 31 Jan 2003 12:21:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891241#M102912</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-01-31T12:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: script help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891242#M102913</link>
      <description />
      <pubDate>Fri, 31 Jan 2003 13:37:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-please/m-p/2891242#M102913</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-01-31T13:37:57Z</dc:date>
    </item>
  </channel>
</rss>

