<?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 vg's and lvols in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042968#M94199</link>
    <description>I was also looking at the filesystem table file is this a disk (LUN) with 2 paths or only one disk attached on a jbod?&lt;BR /&gt;</description>
    <pubDate>Thu, 26 Jul 2007 10:12:29 GMT</pubDate>
    <dc:creator>Juan M Leon</dc:creator>
    <dc:date>2007-07-26T10:12:29Z</dc:date>
    <item>
      <title>Script to create vg's and lvols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042954#M94185</link>
      <description>Hey Guru's,&lt;BR /&gt;&lt;BR /&gt;Does have a script or know of a way to script to create several vg's, and several lvol's within the vg's? I'm not a scripter, but I was looking at the "for i" loop. &lt;BR /&gt;I have several vg's with some vg's that have 20-30 lvols in them. Recreating them by hand in case I had to restore from backup would take entirely too long. &lt;BR /&gt;&lt;BR /&gt;Thanks for your help</description>
      <pubDate>Tue, 24 Jul 2007 14:57:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042954#M94185</guid>
      <dc:creator>Ray Allen_1</dc:creator>
      <dc:date>2007-07-24T14:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create vg's and lvols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042955#M94186</link>
      <description>I use this script to create multiple vg's and lvol's. Basically I have a table file with the information needed. If is not clear just let me know and I can help you.&lt;BR /&gt;&lt;BR /&gt;P.S. If you like it and it works for you, please dont forget to assign some points. greatly appreciated..</description>
      <pubDate>Tue, 24 Jul 2007 15:11:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042955#M94186</guid>
      <dc:creator>Juan M Leon</dc:creator>
      <dc:date>2007-07-24T15:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create vg's and lvols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042956#M94187</link>
      <description>This is an example of the filesystem.txt file&lt;BR /&gt;########Schema file #######&lt;BR /&gt;###Volume Group Section###&lt;BR /&gt;###VGlabel:volumegroup:disknames###&lt;BR /&gt;VG:vg01:c3t0d0,c6t0d1:c6t0d0,c3t0d1&lt;BR /&gt;VG:vg02:c3t0d2:c6t0d2&lt;BR /&gt;###Filesystem Section###&lt;BR /&gt;###FSlable:volumegroup:mountpoint:lvolsize###&lt;BR /&gt;FS:vg01:/usr/sap/DEV:1572864:lvol1 :&lt;BR /&gt;FS:vg01:/sapmnt/DEV:1048576:lvol2 :&lt;BR /&gt;FS:vg01:/oracle:1024000:lvol3 :&lt;BR /&gt;FS:vg01:/oracle/stage:3174000:lvol4 :&lt;BR /&gt;FS:vg01:/oracle/DEV:6500352:lvol5 :&lt;BR /&gt;FS:vg01:/oracle/DEV/sapreorg:1572864:lvol6 :&lt;BR /&gt;FS:vg01:/oracle/DEV/sapdata6:6963200:lvol7 :&lt;BR /&gt;FS:vg01:/oracle/DEV/sapdata5:6963200:lvol8 :&lt;BR /&gt;FS:vg01:/oracle/DEV/sapdata4:6963200:lvol9 :&lt;BR /&gt;FS:vg01:/oracle/DEV/sapdata3:6963200:lvol10:&lt;BR /&gt;FS:vg01:/oracle/DEV/sapdata2:6963200:lvol11:&lt;BR /&gt;FS:vg01:/oracle/DEV/sapdata1:6963200:lvol12:&lt;BR /&gt;FS:vg01:/oracle/DEV/saparch:1048576:lvol13:&lt;BR /&gt;FS:vg01:/oracle/DEV/origlogB:204800:lvol14:&lt;BR /&gt;FS:vg01:/oracle/DEV/origlogA:204800:lvol15:&lt;BR /&gt;FS:vg01:/oracle/DEV/mirrlogB:204800:lvol16:&lt;BR /&gt;FS:vg01:/oracle/DEV/mirrlogA:204800:lvol17:&lt;BR /&gt;FS:vg02:/oracle/DEV/oraarch:10485760:lvol1 :&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Jul 2007 15:12:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042956#M94187</guid>
      <dc:creator>Juan M Leon</dc:creator>
      <dc:date>2007-07-24T15:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create vg's and lvols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042957#M94188</link>
      <description>&lt;!--!*#--&gt;Hi Ray:&lt;BR /&gt;&lt;BR /&gt;This isn't hard.  I presume that your logical volumes differ in size, so you might as well just in-line your code.  That is, simply write the necessary 'pvcreate', 'mkdir', 'mknod', 'vgcreate', 'lvcreate, and 'newfs' statements as needed.&lt;BR /&gt;&lt;BR /&gt;For repetitive tasks you can do (for example):&lt;BR /&gt;&lt;BR /&gt;for V in 01 02 03 04 05&lt;BR /&gt;do&lt;BR /&gt;    mkdir /dev/vg${V}&lt;BR /&gt;    mknod /dev/vg${V}/group c 64 0x${V}0000&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 24 Jul 2007 15:14:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042957#M94188</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-07-24T15:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create vg's and lvols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042958#M94189</link>
      <description>My apologies I forgot to mention that on the lines that begin with VG&lt;BR /&gt;Fields are separated by ":" the disk devices are separated by ",". the second field is the Primary path for thet VG and the third field is the alternate path for the VG.&lt;BR /&gt;########Schema file #######&lt;BR /&gt;###Volume Group Section###&lt;BR /&gt;###VGlabel:volumegroup:disknames###&lt;BR /&gt;VG:vg01:c3t0d0,c6t0d1:c6t0d0,c3t0d1&lt;BR /&gt;VG:vg02:c3t0d2:c6t0d2&lt;BR /&gt;&lt;BR /&gt;For the Filesystem with in the same file (filesystem.txt)&lt;BR /&gt;Fields are separated by ":"&lt;BR /&gt;Second field is the VG&lt;BR /&gt;Third field is the mount point&lt;BR /&gt;Forth field is the size in MB&lt;BR /&gt;Fifth field is the lvol name related to vg&lt;BR /&gt;&lt;BR /&gt;########Schema file #######&lt;BR /&gt;###Filesystem Section###&lt;BR /&gt;###FSlable:volumegroup:mountpoint:lvolsize###&lt;BR /&gt;FS:vg01:/usr/sap/DEV:1572864:lvol1 :&lt;BR /&gt;FS:vg01:/sapmnt/DEV:1048576:lvol2 :&lt;BR /&gt;FS:vg01:/oracle:1024000:lvol3 :&lt;BR /&gt;FS:vg01:/oracle/stage:3174000:lvol4 :&lt;BR /&gt;FS:vg01:/oracle/DEV:6500352:lvol5 :&lt;BR /&gt;FS:vg01:/oracle/DEV/sapreorg:1572864:lvol6 :&lt;BR /&gt;FS:vg01:/oracle/DEV/sapdata6:6963200:lvol7 :&lt;BR /&gt;FS:vg01:/oracle/DEV/sapdata5:6963200:lvol8 :&lt;BR /&gt;FS:vg01:/oracle/DEV/sapdata4:6963200:lvol9 :&lt;BR /&gt;FS:vg01:/oracle/DEV/sapdata3:6963200:lvol10:&lt;BR /&gt;FS:vg01:/oracle/DEV/sapdata2:6963200:lvol11:&lt;BR /&gt;FS:vg01:/oracle/DEV/sapdata1:6963200:lvol12:&lt;BR /&gt;FS:vg01:/oracle/DEV/saparch:1048576:lvol13:&lt;BR /&gt;FS:vg01:/oracle/DEV/origlogB:204800:lvol14:&lt;BR /&gt;FS:vg01:/oracle/DEV/origlogA:204800:lvol15:&lt;BR /&gt;FS:vg01:/oracle/DEV/mirrlogB:204800:lvol16:&lt;BR /&gt;FS:vg01:/oracle/DEV/mirrlogA:204800:lvol17:&lt;BR /&gt;FS:vg02:/oracle/DEV/oraarch:10485760:lvol1 :&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Jul 2007 15:17:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042958#M94189</guid>
      <dc:creator>Juan M Leon</dc:creator>
      <dc:date>2007-07-24T15:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create vg's and lvols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042959#M94190</link>
      <description>one more thing you might take into consideration when mapping out your new Lvols.&lt;BR /&gt;&lt;BR /&gt;I don't cross disk boundaries, if I can help it. Granted if I have enough disks to do it, I will.&lt;BR /&gt;&lt;BR /&gt;This also gives you room for growth if you aren't allocating entire disks at Lvol creation. It can help prevent disk contention as well if you have fewer lvols on the same disks. &lt;BR /&gt;&lt;BR /&gt;This is important when you may have a disk failure in the future. It will mitigate the impact of a disk failure on how many lvols are affected.&lt;BR /&gt;&lt;BR /&gt;Also, when you are mapping your Lvols, try NOT to put several busy Lvols on the same disk. Spread them out over all your available disks and then add other less demanding Lvols on the same disks.</description>
      <pubDate>Tue, 24 Jul 2007 16:33:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042959#M94190</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2007-07-24T16:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create vg's and lvols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042960#M94191</link>
      <description>Sorry I forgot one thing.&lt;BR /&gt;&lt;BR /&gt;When you are creating your lvols, I normally create the LVname first then add the disks to it with another command. &lt;BR /&gt;&lt;BR /&gt;I know this is a bit anal, but I like to control the disk device that is assigned to each Lvol. So that I dont cross disk boundaries.&lt;BR /&gt;&lt;BR /&gt;lvcreate -n lvname /dev/vgXX&lt;BR /&gt;lvextend -l NNNN /dev/vgXX/lvname /dev/dsk/cXtXdX&lt;BR /&gt;&lt;BR /&gt;Another trick if you are mirroring... do this.&lt;BR /&gt;&lt;BR /&gt;lvextend -l 1 /dev/vgXX/lvname /dev/dsk/cXtXdX&lt;BR /&gt;lvextend -m 1 /dev/vgXX/lvname /dev/dsk/cNtNdN&lt;BR /&gt;lvextend -l NNNN /dev/vgXX/lvname&lt;BR /&gt;&lt;BR /&gt;Add just one extent to the lvol then add the mirror, THEN extend it to the full size you want it to be. This will save you loads of time syncing the disks if you were to add the entire first disk then try to mirror it all at once.&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Jul 2007 16:38:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042960#M94191</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2007-07-24T16:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create vg's and lvols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042961#M94192</link>
      <description>Guys, &lt;BR /&gt;&lt;BR /&gt;Thans very much for all your excellent feedback. I will be testing both scripting options on my test server in the next couple of days.  &lt;BR /&gt;&lt;BR /&gt;James. &lt;BR /&gt;Is there a way to use your script to create the vg with the same minor number as the one it had before. For example: If I vgexport a vg, and I wanted to create the vg with the same minor it had.</description>
      <pubDate>Wed, 25 Jul 2007 08:13:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042961#M94192</guid>
      <dc:creator>Ray Allen_1</dc:creator>
      <dc:date>2007-07-25T08:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create vg's and lvols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042962#M94193</link>
      <description>Hi (again) Ray:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Is there a way to use your script to create the vg with the same minor number as the one it had before. For example: If I vgexport a vg, and I wanted to create the vg with the same minor it had.&lt;BR /&gt;&lt;BR /&gt;When you 'vgexport' the '/dev/vg??' directory and its contents for the volume group being exported are removed.  This allows you to reuse a minor device number.&lt;BR /&gt;&lt;BR /&gt;Remember that minor numbers are two-digit, hexadecimal values that (prior to 11.31) must not exceed the 'maxvgs' kernel parameter value.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 25 Jul 2007 08:24:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042962#M94193</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-07-25T08:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create vg's and lvols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042963#M94194</link>
      <description>Juan, &lt;BR /&gt;&lt;BR /&gt;I tested the script to create a test vg and lvol. Its only creating the vg, and failing after that. Here's the post from output. &lt;BR /&gt;&lt;BR /&gt;The filesystem table file&lt;BR /&gt;&lt;BR /&gt;root@nhoignit:/tmp&amp;gt;&lt;BR /&gt;########Schema file #######&lt;BR /&gt;###Volume Group Section###&lt;BR /&gt;###VGlabel:volumegroup:disknames###&lt;BR /&gt;VG:vg03:c26t0d3&lt;BR /&gt;#VG:vg02:c3t0d2&lt;BR /&gt;###Filesystem Section###&lt;BR /&gt;###FSlable:volumegroup:mountpoint:lvolsize###&lt;BR /&gt;FS:vg03:/TEST:516096:my_test:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The script results &lt;BR /&gt;&lt;BR /&gt;root@nhoignit:/tmp&amp;gt;./VG_Create_Script&lt;BR /&gt;The following Volume groups will be created :&lt;BR /&gt;vg03&lt;BR /&gt;&lt;BR /&gt;Checking vg03 filesystem requirements&lt;BR /&gt;vg03  /TEST                     504MB&lt;BR /&gt;Proceed to create the filesystmes (y/n): y&lt;BR /&gt;----------------------------------------------------&lt;BR /&gt;Creating directory and file for volume groups&lt;BR /&gt;vg03 does not exist, creating directory now&lt;BR /&gt;+ mkdir /dev/vg03&lt;BR /&gt;+ mknod /dev/vg03/group c 64 0x030000&lt;BR /&gt;+ vgcreate -l 255 -e 7167 -p 32 -s 4 /dev/vg03 /dev/dsk/c26t0d3&lt;BR /&gt;/dev/dsk/c26t0d3 ----&amp;gt;&lt;BR /&gt;vgcreate: Minor number of /dev/vg03/group is not unique. /dev/vg02/group has the same minor number.&lt;BR /&gt;+ vgextend /dev/vg03&lt;BR /&gt;Usage: vgextend&lt;BR /&gt;        [-f]&lt;BR /&gt;        [-A Autobackup]&lt;BR /&gt;        [-x Extensibility]&lt;BR /&gt;        [-g PhysicalVoumeGroupName]&lt;BR /&gt;        [-z SparePV]&lt;BR /&gt;        VolumeGroupName PhysicalVolumePath...&lt;BR /&gt;More arguments required.&lt;BR /&gt;Now we will create the Logical Volumes for vg03 ....&lt;BR /&gt;&lt;BR /&gt;+ awk -F: -v volgrp=vg03 /^FS/ &amp;amp;&amp;amp; $2 ~ volgrp  {print $5} /tmp/My_VG_Script_Table&lt;BR /&gt;+ echo my_test&lt;BR /&gt;+ my_test&lt;BR /&gt;+ awk -F: -v volgrp=vg03 -v lv=my_test /^FS/ &amp;amp;&amp;amp; $2 ~ volgrp &amp;amp;&amp;amp; $5 ~ lv {print $3} /tmp/My_VG_Script_Table&lt;BR /&gt;+ head -1&lt;BR /&gt;lv_mount= /TEST&lt;BR /&gt;+ + awk -F: -v volgrp=vg03 -v lv=my_test /^FS/ &amp;amp;&amp;amp; $2 ~ volgrp &amp;amp;&amp;amp; $5 ~ lv {print ($4/1024)} /tmp/My_VG_Script_&lt;BR /&gt;Table&lt;BR /&gt;+ head -1&lt;BR /&gt;lv_size=504&lt;BR /&gt;+ set -x&lt;BR /&gt;+ lvcreate -L 504 -n my_test vg03&lt;BR /&gt;lvcreate: Volume group "/dev/vg03" does not exist in the "/etc/lvmtab" file.&lt;BR /&gt;+ mkfs -F vxfs -o ninode=unlimited,bsize=1024,version=5,inosize=256,logsize=16384,largefiles /dev/vg03/my_tes&lt;BR /&gt;t&lt;BR /&gt;vxfs mkfs: Cannot access /dev/vg03/my_test: No such file or directory&lt;BR /&gt;vxfs mkfs: /dev/vg03/my_test: cannot stat&lt;BR /&gt;+ mkdir -p /TEST&lt;BR /&gt;+ mount /dev/vg03/my_test /TEST&lt;BR /&gt;mount: /dev/vg03/my_test: No such file or directory&lt;BR /&gt;----------------------------------------------------&lt;BR /&gt;root@nhoignit:/tmp&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also, you'll notice it creates the same minor of existing vg. &lt;BR /&gt;&lt;BR /&gt;Am I doing some wrong?</description>
      <pubDate>Wed, 25 Jul 2007 09:50:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042963#M94194</guid>
      <dc:creator>Ray Allen_1</dc:creator>
      <dc:date>2007-07-25T09:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create vg's and lvols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042964#M94195</link>
      <description>JRF, &lt;BR /&gt;I appologize, but maybe I wasn't clear what I asking. If I wanted to re-use the same minor the vg had before exporting it. Can that be done with the script.</description>
      <pubDate>Wed, 25 Jul 2007 09:59:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042964#M94195</guid>
      <dc:creator>Ray Allen_1</dc:creator>
      <dc:date>2007-07-25T09:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create vg's and lvols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042965#M94196</link>
      <description>Hi (again) Ray:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; If I wanted to re-use the same minor the vg had before exporting it. Can that be done with the script.  &lt;BR /&gt; &lt;BR /&gt;If the goal is to ascertain the minor number given only the name of a volume group, then consider this:&lt;BR /&gt;&lt;BR /&gt;# VG=vgtest&lt;BR /&gt;# mkdir /dev/${VG}&lt;BR /&gt;# mknod /dev/${VG}/group c 64 0x070000&lt;BR /&gt;# N=`ll /dev/${VG}/group|awk '{print substr($6,3,2)}'`&lt;BR /&gt;# echo ${N}&lt;BR /&gt;07&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;#</description>
      <pubDate>Wed, 25 Jul 2007 10:09:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042965#M94196</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-07-25T10:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create vg's and lvols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042966#M94197</link>
      <description>JRF,&lt;BR /&gt;Thanks very much</description>
      <pubDate>Wed, 25 Jul 2007 13:21:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042966#M94197</guid>
      <dc:creator>Ray Allen_1</dc:creator>
      <dc:date>2007-07-25T13:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create vg's and lvols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042967#M94198</link>
      <description>Hello Ray,&lt;BR /&gt;&lt;BR /&gt;I was looking at the error posted, basically seems that the minor number 3 for vg03 is already in use. &lt;BR /&gt;The scrcipt is intended to use the same number as the VG.&lt;BR /&gt;for example : vg01 minor number is 1&lt;BR /&gt;              vg02 minor number is 2&lt;BR /&gt;              vg03 minor number is 3&lt;BR /&gt;I assumed that you did nto have any vgwith the exception of vg00.&lt;BR /&gt;If you want I can modify the script to use the next available number.&lt;BR /&gt;&lt;BR /&gt;Let me know.&lt;BR /&gt;&lt;BR /&gt;Thank you</description>
      <pubDate>Thu, 26 Jul 2007 10:10:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042967#M94198</guid>
      <dc:creator>Juan M Leon</dc:creator>
      <dc:date>2007-07-26T10:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create vg's and lvols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042968#M94199</link>
      <description>I was also looking at the filesystem table file is this a disk (LUN) with 2 paths or only one disk attached on a jbod?&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jul 2007 10:12:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042968#M94199</guid>
      <dc:creator>Juan M Leon</dc:creator>
      <dc:date>2007-07-26T10:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create vg's and lvols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042969#M94200</link>
      <description>Juan, &lt;BR /&gt;&lt;BR /&gt;Thanks for taking a look at the output, and the follow up. The server I was testing on have vg's that don't match its specific minor number. Some of them are mixed. For example: &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000000 Oct  1  2005 /dev/vg00/group&lt;BR /&gt;crw-rw-rw-   1 root       sys         64 0x010000 Jan 20  2006 /dev/vg01/group&lt;BR /&gt;crw-r--r--   1 root       sys         64 0x030000 Jul 11 16:28 /dev/vg02/group&lt;BR /&gt;crw-r--r--   1 root       sys         64 0x020000 Jul 11 14:04 /dev/vg02test/group&lt;BR /&gt;crw-r--r--   1 root       sys         64 0x090000 Jul 25 12:10 /dev/vg03/group&lt;BR /&gt;&lt;BR /&gt;If you can modify the script to use the next available minor, that would be great. &lt;BR /&gt;&lt;BR /&gt;When you respond to this, I will assign points. I was out for a couple days last week and did not realize you had responded to my last reply. &lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 30 Jul 2007 09:28:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042969#M94200</guid>
      <dc:creator>Ray Allen_1</dc:creator>
      <dc:date>2007-07-30T09:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create vg's and lvols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042970#M94201</link>
      <description>Ray,&lt;BR /&gt;Apologize for the delay, here is the sccript modification. I was unable to automate the script to read the next available number. I will do it in the next script release ...=)&lt;BR /&gt;For now you will need to find the available minor number by listing your group file under each vg directory. and enter the available numbers in the filesystem table file. &lt;BR /&gt;using your previous ls -l /dev/*/group I have the following table creating vg05 and vg06. Note that at the end of the line I have used number 4 for vg05 and number 5 for vg06.&lt;BR /&gt;(Remember that each field is separated by ":", if you do not have information on any field you still need to place a ":" to indicate that the field is empty)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Example&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;########Schema file #######&lt;BR /&gt;###Volume Group Section###&lt;BR /&gt;###VGlabel:volumegroup:disknames###&lt;BR /&gt;VG:vg05:c4t0d0,c6t0d1:c6t0d0,c4t0d1:4&lt;BR /&gt;VG:vg06:c6t0d2:c4t0d2:5&lt;BR /&gt;###Filesystem Section###&lt;BR /&gt;###FSlable:volumegroup:mountpoint:lvolsize###&lt;BR /&gt;FS:vg05:/usr/sap/PRD:2048000:lvol1&lt;BR /&gt;FS:vg05:/sapmnt/PRD:1048576:lvol2&lt;BR /&gt;FS:vg05:/oracle:512000:lvol3&lt;BR /&gt;FS:vg05:/oracle/stage:3000000:lvol4&lt;BR /&gt;FS:vg05:/oracle/PRD:6144000:lvol5&lt;BR /&gt;FS:vg05:/oracle/PRD/sapreorg:2560000:lvol6&lt;BR /&gt;FS:vg05:/oracle/PRD/sapdata6:7041024:lvol7&lt;BR /&gt;FS:vg05:/oracle/PRD/sapdata5:7041024:lvol8&lt;BR /&gt;FS:vg05:/oracle/PRD/sapdata4:7041024:lvol9&lt;BR /&gt;FS:vg05:/oracle/PRD/sapdata3:7041024:lvol10&lt;BR /&gt;FS:vg05:/oracle/PRD/sapdata2:7041024:lvol11&lt;BR /&gt;FS:vg05:/oracle/PRD/sapdata1:7041024:lvol12&lt;BR /&gt;FS:vg05:/oracle/PRD/saparch:1048576:lvol13&lt;BR /&gt;FS:vg05:/oracle/PRD/origlogB:204800:lvol14&lt;BR /&gt;FS:vg05:/oracle/PRD/origlogA:204800:lvol15&lt;BR /&gt;FS:vg05:/oracle/PRD/mirrlogB:204800:lvol16&lt;BR /&gt;FS:vg05:/oracle/PRD/mirrlogA:204800:lvol17&lt;BR /&gt;FS:vg05:/opt/ops/VWR:512000:lvol18&lt;BR /&gt;FS:vg06:/oracle/PRD/oraach:10000000:lvol1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please let me know how it works.&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Jul 2007 13:15:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042970#M94201</guid>
      <dc:creator>Juan M Leon</dc:creator>
      <dc:date>2007-07-31T13:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create vg's and lvols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042971#M94202</link>
      <description>Ray,&lt;BR /&gt;&lt;BR /&gt;I also use this script to help me find what disk and size is available. The script reports all the SAN disks sort by HW path, then it lists disk, size and VG allocation. &lt;BR /&gt;If you want you can use it. the output you will get is the following&lt;BR /&gt;&lt;BR /&gt;Checking 0/3/1/0/4/0&lt;BR /&gt;/dev/rdsk/c4t1d4:    0.28GB /dev/vg02   &lt;BR /&gt;/dev/rdsk/c4t1d5:    0.28GB /dev/vg02   &lt;BR /&gt;/dev/rdsk/c4t1d6:    0.28GB /dev/vg02   &lt;BR /&gt;/dev/rdsk/c4t1d7:    0.28GB /dev/vg02   &lt;BR /&gt;/dev/rdsk/c4t1d2:    2.08GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c4t0d6:    9.89GB /dev/vg03   &lt;BR /&gt;/dev/rdsk/c4t0d2:   19.53GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c4t2d2:   19.53GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c4t2d3:   19.53GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c4t1d1:   19.66GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c4t1d3:   19.66GB /dev/vg01   &lt;BR /&gt;Checking 0/4/1/0/4/0&lt;BR /&gt;/dev/rdsk/c6t1d4:    0.28GB /dev/vg02   &lt;BR /&gt;/dev/rdsk/c6t1d5:    0.28GB /dev/vg02   &lt;BR /&gt;/dev/rdsk/c6t1d6:    0.28GB /dev/vg02   &lt;BR /&gt;/dev/rdsk/c6t1d7:    0.28GB /dev/vg02   &lt;BR /&gt;/dev/rdsk/c6t1d2:    2.08GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c6t0d6:    9.89GB /dev/vg03   &lt;BR /&gt;/dev/rdsk/c6t0d2:   19.53GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c6t2d2:   19.53GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c6t2d3:   19.53GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c6t1d1:   19.66GB /dev/vg01   &lt;BR /&gt;/dev/rdsk/c6t1d3:   19.66GB /dev/vg01   &lt;BR /&gt;&lt;BR /&gt;I dunno what type of SAN do you have but you will see in the script we use HITACHI. I will suggest to change thast string to your SAN hardware brand.&lt;BR /&gt;If you need me to adjust the script let me know.&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Jul 2007 13:22:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042971#M94202</guid>
      <dc:creator>Juan M Leon</dc:creator>
      <dc:date>2007-07-31T13:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create vg's and lvols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042972#M94203</link>
      <description>Juan, &lt;BR /&gt;&lt;BR /&gt;Thanks very much for the updated scripts. I will test them out in the next couple of days. Super Awesome. &lt;BR /&gt;By the way, we have 2 EVA5K's and 1 EVA8K. &lt;BR /&gt;&lt;BR /&gt;Again, thanks for all your help. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Aug 2007 07:43:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-create-vg-s-and-lvols/m-p/4042972#M94203</guid>
      <dc:creator>Ray Allen_1</dc:creator>
      <dc:date>2007-08-01T07:43:41Z</dc:date>
    </item>
  </channel>
</rss>

