<?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 to create volume groups in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-volume-groups/m-p/5042453#M433076</link>
    <description>A better requirements definition for your VG creation script would help and SEP has already provided the cardinal steps which would be repeated over for each of the 50 VGs.&lt;BR /&gt;&lt;BR /&gt;~cheers</description>
    <pubDate>Wed, 25 Apr 2007 09:18:18 GMT</pubDate>
    <dc:creator>Sandman!</dc:creator>
    <dc:date>2007-04-25T09:18:18Z</dc:date>
    <item>
      <title>Script to create volume groups</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-volume-groups/m-p/5042451#M433074</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I have a server with cluster setup as per the client requirement i need to create some 50 volume groups can any one provide me the script.</description>
      <pubDate>Wed, 25 Apr 2007 05:36:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-volume-groups/m-p/5042451#M433074</guid>
      <dc:creator>Jollyjet</dc:creator>
      <dc:date>2007-04-25T05:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create volume groups</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-volume-groups/m-p/5042452#M433075</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;There are really only three steps to create a volume group.&lt;BR /&gt;&lt;BR /&gt;mkdir /dev/&lt;VG name=""&gt;&lt;BR /&gt;mkdir /dev/vg01&lt;BR /&gt;mknod /dev/vg01/group c 64 0x010000&lt;BR /&gt;&lt;BR /&gt;I change the 01 after the x to match the volume group name.&lt;BR /&gt;&lt;BR /&gt;vgcreate with parameters.&lt;BR /&gt;&lt;BR /&gt;vgcreate /dev/vg01 /dev/dsk/c0t3d0&lt;BR /&gt;I recommend the -p physical volume limit to allow more space to be crammed into fewer disks.&lt;BR /&gt;&lt;BR /&gt;-p 10&lt;BR /&gt;&lt;BR /&gt;If the disks vary your script will need to take disks as an input parameter.&lt;BR /&gt;&lt;BR /&gt;Simple example script&lt;BR /&gt;&lt;BR /&gt;makemyg.sh&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;vgname=$1&lt;BR /&gt;disk=$2&lt;BR /&gt;vgnum= (last two charcaters of vgname some work for you)&lt;BR /&gt;&lt;BR /&gt;mkdir "/dev/${1}"&lt;BR /&gt;mknod "/dev/${1}/group c 64 0x${vgnum}0000"&lt;BR /&gt;vgcreate "/dev/${1} ${2}"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/VG&gt;</description>
      <pubDate>Wed, 25 Apr 2007 06:17:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-volume-groups/m-p/5042452#M433075</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-04-25T06:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create volume groups</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-volume-groups/m-p/5042453#M433076</link>
      <description>A better requirements definition for your VG creation script would help and SEP has already provided the cardinal steps which would be repeated over for each of the 50 VGs.&lt;BR /&gt;&lt;BR /&gt;~cheers</description>
      <pubDate>Wed, 25 Apr 2007 09:18:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-volume-groups/m-p/5042453#M433076</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-04-25T09:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create volume groups</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-volume-groups/m-p/5042454#M433077</link>
      <description>It's going to be difficult to provide you with exact steps since we do not have the list of disk drives that belong to each VG.&lt;BR /&gt;&lt;BR /&gt;One thing you will need to check is the MAXVGS kernel parameter.  By default this is set to 10.  You will need to increase it if you are going to set up 50 VGs.&lt;BR /&gt;&lt;BR /&gt;Another thing -- Do you really need 50 VGs?  Could you create fewer VGs and more LVs in each VG? &lt;BR /&gt;&lt;BR /&gt;When scripting this you must remember that the minor number (0x??0000) is in HEX.  So VG10 would have 0x0a0000 as the minor number.  The system uses the minor number to keep track of the number of VGs as well.  A decimal 50 is 32 in HEX.</description>
      <pubDate>Wed, 25 Apr 2007 09:28:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-volume-groups/m-p/5042454#M433077</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2007-04-25T09:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create volume groups</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-volume-groups/m-p/5042455#M433078</link>
      <description>I have to agree with Patrick. You might want to  see if you can have fewer vg's and more lv's per vg. I guess the other question is did you plan on having only one lvol per vg that used all the free extents in the vg? Dunno, just something to think about.</description>
      <pubDate>Wed, 25 Apr 2007 10:13:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-volume-groups/m-p/5042455#M433078</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-04-25T10:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create volume groups</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-volume-groups/m-p/5042456#M433079</link>
      <description>HI Thank's for all.</description>
      <pubDate>Sun, 29 Apr 2007 23:25:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-volume-groups/m-p/5042456#M433079</guid>
      <dc:creator>Jollyjet</dc:creator>
      <dc:date>2007-04-29T23:25:46Z</dc:date>
    </item>
  </channel>
</rss>

