<?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: volume group creation script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/volume-group-creation-script/m-p/2432482#M767972</link>
    <description>Correction: step 2 of my previous reply should read as  &lt;BR /&gt;2. mknod /dev/vgname/group c 64 0x010000 &lt;BR /&gt;&lt;BR /&gt;also do a "man lvm" for lvm advance options</description>
    <pubDate>Wed, 26 Jul 2000 09:59:39 GMT</pubDate>
    <dc:creator>Vincente Fernandes</dc:creator>
    <dc:date>2000-07-26T09:59:39Z</dc:date>
    <item>
      <title>volume group creation script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/volume-group-creation-script/m-p/2432479#M767969</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am looking for a script which creates the volume group. Did anyone have such script like this. &lt;BR /&gt;I am running out of ideas for creating group file for a new volume group where it has to select next available minor number..&lt;BR /&gt;&lt;BR /&gt;thanks in advance&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Jul 2000 23:29:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/volume-group-creation-script/m-p/2432479#M767969</guid>
      <dc:creator>Manju Kampli</dc:creator>
      <dc:date>2000-07-24T23:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: volume group creation script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/volume-group-creation-script/m-p/2432480#M767970</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;at the attachment a quick and dirty script for determining the next free minor number for creating a vg.&lt;BR /&gt;You have to modify it for your purposes.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Andrew&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Jul 2000 06:46:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/volume-group-creation-script/m-p/2432480#M767970</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-07-25T06:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: volume group creation script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/volume-group-creation-script/m-p/2432481#M767971</link>
      <description>First you need to find how many volume groups are there on ur server. do a ls on /dev&lt;BR /&gt;It is pretty straight forward can be done from command line also. for help do a man 1M mknod.&lt;BR /&gt;1. mkdir /dev/vgname (e.x vg02)&lt;BR /&gt;2. mknod /dev/vgname c 64 0x010000&lt;BR /&gt;&lt;BR /&gt;minor number starts with 0x000000 for vg01, 0x010000 for vg01, 0x020000 for vg02 and so on....&lt;BR /&gt;&lt;BR /&gt;Vincente.</description>
      <pubDate>Wed, 26 Jul 2000 08:32:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/volume-group-creation-script/m-p/2432481#M767971</guid>
      <dc:creator>Vincente Fernandes</dc:creator>
      <dc:date>2000-07-26T08:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: volume group creation script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/volume-group-creation-script/m-p/2432482#M767972</link>
      <description>Correction: step 2 of my previous reply should read as  &lt;BR /&gt;2. mknod /dev/vgname/group c 64 0x010000 &lt;BR /&gt;&lt;BR /&gt;also do a "man lvm" for lvm advance options</description>
      <pubDate>Wed, 26 Jul 2000 09:59:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/volume-group-creation-script/m-p/2432482#M767972</guid>
      <dc:creator>Vincente Fernandes</dc:creator>
      <dc:date>2000-07-26T09:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: volume group creation script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/volume-group-creation-script/m-p/2432483#M767973</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;U can use the following little command to find out the next available vg-id , provided you have used a sequential allocation .i.e., u have not missed any numbers in between.&lt;BR /&gt;&lt;BR /&gt;Try this out...&lt;BR /&gt;&lt;BR /&gt;ll -R | grep group | awk '{print $6}' | sed 's/....$//' | cut -c3- | sort -nr | &lt;BR /&gt;head -1&lt;BR /&gt;&lt;BR /&gt;Run this command while in /dev directory to find out the last used vg-id. Increment one and then use it for the group file.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;Regards,&lt;BR /&gt;Sundar&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Jul 2000 05:26:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/volume-group-creation-script/m-p/2432483#M767973</guid>
      <dc:creator>Sundararajan Anandhan</dc:creator>
      <dc:date>2000-07-27T05:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: volume group creation script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/volume-group-creation-script/m-p/2432484#M767974</link>
      <description>give this a try:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;ll $(find /dev -name group ) |awk ' { if ( $5 == 64 ) {&lt;BR /&gt; printf("%s\n",toupper(substr($6,3,2)));&lt;BR /&gt;             }&lt;BR /&gt;  }' | while read num junk&lt;BR /&gt;do&lt;BR /&gt; echo "ibase=16;$num/1" | bc&lt;BR /&gt;done   | sort -n | awk ' BEGIN { x=-1; }&lt;BR /&gt;{ x++;&lt;BR /&gt; if ( x != $1 ) {&lt;BR /&gt;        x--;&lt;BR /&gt;        exit;&lt;BR /&gt; }&lt;BR /&gt;} END { &lt;BR /&gt;printf("%x\n",++x);}'&lt;BR /&gt;&lt;BR /&gt;hope all the slashs and such come out ok.&lt;BR /&gt;you might want to do a more defined search&lt;BR /&gt;then files named group in the //dev directory&lt;BR /&gt;with a major number of 64, but that is up to you</description>
      <pubDate>Thu, 27 Jul 2000 08:12:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/volume-group-creation-script/m-p/2432484#M767974</guid>
      <dc:creator>curt larson</dc:creator>
      <dc:date>2000-07-27T08:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: volume group creation script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/volume-group-creation-script/m-p/2432485#M767975</link>
      <description>with the possibility of several vgs, the ll $(find) might get a "too long line" error&lt;BR /&gt;so a little better might be:&lt;BR /&gt;&lt;BR /&gt;minor_num=$( find /dev -name group  |while read line junk&lt;BR /&gt;do&lt;BR /&gt; ll -d $line&lt;BR /&gt;done |awk ' { if ( $5 == 64 ) {&lt;BR /&gt;   printf("%s\n",toupper(substr($6,3,2)));&lt;BR /&gt;  }&lt;BR /&gt;   }' | while read num junk&lt;BR /&gt;do&lt;BR /&gt; echo "ibase=16;$num/1" | bc&lt;BR /&gt;done | sort -n | awk ' BEGIN { x=-1; }&lt;BR /&gt;{ x++;&lt;BR /&gt; if ( x != $1 ) {&lt;BR /&gt;  x--;&lt;BR /&gt;  exit;&lt;BR /&gt; }&lt;BR /&gt;} END { &lt;BR /&gt;printf("0x%02x0000n",++x);}' )&lt;BR /&gt;&lt;BR /&gt;print $minor_num</description>
      <pubDate>Thu, 27 Jul 2000 08:51:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/volume-group-creation-script/m-p/2432485#M767975</guid>
      <dc:creator>curt larson</dc:creator>
      <dc:date>2000-07-27T08:51:46Z</dc:date>
    </item>
  </channel>
</rss>

