<?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: seeking scripts to create filesystem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/seeking-scripts-to-create-filesystem/m-p/3281193#M180459</link>
    <description>you can do multis pretty easy with some easy loops. &lt;BR /&gt;&lt;BR /&gt;Another thing to keep in mind, is doing the lvm commands manually keeps you sharp!&lt;BR /&gt;&lt;BR /&gt;My scripts for lvm commands are mostly for DR recollect, and to recreate my vg's in a DR scenerio.  &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 19 May 2004 15:24:27 GMT</pubDate>
    <dc:creator>Marvin Strong</dc:creator>
    <dc:date>2004-05-19T15:24:27Z</dc:date>
    <item>
      <title>seeking scripts to create filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/seeking-scripts-to-create-filesystem/m-p/3281187#M180453</link>
      <description>I need to create multiple filesystems at same time, including lvcreate, newfs, mount,..&lt;BR /&gt;anybody has the script I can use?&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Wed, 19 May 2004 12:15:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/seeking-scripts-to-create-filesystem/m-p/3281187#M180453</guid>
      <dc:creator>Hanry Zhou</dc:creator>
      <dc:date>2004-05-19T12:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: seeking scripts to create filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/seeking-scripts-to-create-filesystem/m-p/3281188#M180454</link>
      <description>These tasks are very customized (vg name, lvname, lvsize, lv options, mount point name, etc) so other than a general script that reads all the parameters from a data file, you'll just need to write each command into a script.</description>
      <pubDate>Wed, 19 May 2004 12:24:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/seeking-scripts-to-create-filesystem/m-p/3281188#M180454</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-05-19T12:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: seeking scripts to create filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/seeking-scripts-to-create-filesystem/m-p/3281189#M180455</link>
      <description>The time it takes to set up your data file is probably equal to the time it would take to write the script yourself.&lt;BR /&gt;&lt;BR /&gt;There are so many options and different things you can do that this isn't going to be something you can take from something else.&lt;BR /&gt;&lt;BR /&gt;The general structure would be this:&lt;BR /&gt;&lt;BR /&gt;while read -r aa bb cc dd&lt;BR /&gt;do&lt;BR /&gt;# lvcreate&lt;BR /&gt;# lvextend&lt;BR /&gt;# mkdir&lt;BR /&gt;# newfs&lt;BR /&gt;# mount&lt;BR /&gt;done &amp;lt; youffile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;aa bb cc dd are speace delimited varibales in your file.&lt;BR /&gt;&lt;BR /&gt;lvm is a do it once and use for a long time task. In general iets best to do it by hand.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 19 May 2004 12:30:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/seeking-scripts-to-create-filesystem/m-p/3281189#M180455</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-05-19T12:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: seeking scripts to create filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/seeking-scripts-to-create-filesystem/m-p/3281190#M180456</link>
      <description>As Bill says - you'll have to do 1 of's - sort of like this:&lt;BR /&gt;&lt;BR /&gt;# cat vgcreate.vg31iqa&lt;BR /&gt;mkdir /dev/vg31iqa&lt;BR /&gt;mknod /dev/vg31iqa/group c 64 0x1f0000&lt;BR /&gt;vgcreate -s 8 -p 128 /dev/vg31iqa `cat vg31iqa.devs`&lt;BR /&gt;&lt;BR /&gt;# cat lvcreate.vg31iqa&lt;BR /&gt;lvcreate -L 512 -n lvlogA /dev/vg31iqa&lt;BR /&gt;mkfs -F vxfs -o version=3 /dev/vg31iqa/rlvlogA&lt;BR /&gt;lvcreate -L 512 -n lvmirrlogB /dev/vg31iqa&lt;BR /&gt;mkfs -F vxfs -o version=3 /dev/vg31iqa/rlvmirrlogB&lt;BR /&gt;lvcreate -L 7680 -n lvtemp /dev/vg31iqa&lt;BR /&gt;lvcreate -L 512 -n lvlogB /dev/vg31iqa&lt;BR /&gt;mkfs -F vxfs -o version=3 /dev/vg31iqa/rlvlogB&lt;BR /&gt;lvcreate -L 512 -n lvmirrlogA /dev/vg31iqa&lt;BR /&gt;mkfs -F vxfs -o version=3 /dev/vg31iqa/rlvmirrlogA&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The vg31iqa.devs is just a list of devices:&lt;BR /&gt;&lt;BR /&gt;/dev/dsk/c52t6d4&lt;BR /&gt;/dev/dsk/c54t6d4&lt;BR /&gt;/dev/dsk/c56t6d4&lt;BR /&gt;/dev/dsk/c58t6d4&lt;BR /&gt;/dev/dsk/c52t6d5&lt;BR /&gt;/dev/dsk/c54t6d5&lt;BR /&gt;/dev/dsk/c56t6d5&lt;BR /&gt;/dev/dsk/c58t6d5&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;</description>
      <pubDate>Wed, 19 May 2004 12:33:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/seeking-scripts-to-create-filesystem/m-p/3281190#M180456</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-05-19T12:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: seeking scripts to create filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/seeking-scripts-to-create-filesystem/m-p/3281191#M180457</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Even if we have a script, you'll have to customize it to suit your needs. It is best to prepare your own script with all the commands pvcreate / vgcreate / vgextend / lvcreate / lvextend in the script. It will be much more easy. &lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Wed, 19 May 2004 12:47:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/seeking-scripts-to-create-filesystem/m-p/3281191#M180457</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-05-19T12:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: seeking scripts to create filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/seeking-scripts-to-create-filesystem/m-p/3281192#M180458</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I normally create the volume groups first and then make a config.file and use it as an input to my script. For ex., my config file is &lt;BR /&gt;&lt;BR /&gt;This is only an example script I just wrote on the fly. It may or may not work. You will need to verify or improve on it.&lt;BR /&gt;&lt;BR /&gt;#cat config.txt&lt;BR /&gt;&lt;BR /&gt;vg01:lv1:2048:/mount1&lt;BR /&gt;vg02:lv2:4096:/mount2&lt;BR /&gt;vg03:lv3:1024:/mount3&lt;BR /&gt;&lt;BR /&gt;#cat create_lvs.sh&lt;BR /&gt;&lt;BR /&gt;while read line&lt;BR /&gt;do&lt;BR /&gt;VG=$(echo $line|awk '{FS=":";print $1}')&lt;BR /&gt;LV=$(echo $line|awk '{FS=":";print $2}'&lt;BR /&gt;SZ=$(echo $line|awk '{FS=":";print $3}'&lt;BR /&gt;MOUNT=$(echo $line|awk '{FS=":";print $4}'&lt;BR /&gt;echo Working on $LV in $VG&lt;BR /&gt;lvcreate -n $LV -L $SZ -r N $VG&lt;BR /&gt;newfs -F vxfs /dev/${VG}/r${LV}&lt;BR /&gt;mkdir -p $MOUNT&lt;BR /&gt;mount /dev/${VG}/${LV}$MOUNT&lt;BR /&gt;echo "/dev/${VG}/${LV} $MOUNT vxfs delaylog 0 2" &amp;gt;&amp;gt; /tmp/fstab.delta&lt;BR /&gt;done &amp;lt; config.txt&lt;BR /&gt;&lt;BR /&gt;Once you are done, verify /tmp/fstab.delta file and append it to /etc/fstab.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;</description>
      <pubDate>Wed, 19 May 2004 14:58:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/seeking-scripts-to-create-filesystem/m-p/3281192#M180458</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-05-19T14:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: seeking scripts to create filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/seeking-scripts-to-create-filesystem/m-p/3281193#M180459</link>
      <description>you can do multis pretty easy with some easy loops. &lt;BR /&gt;&lt;BR /&gt;Another thing to keep in mind, is doing the lvm commands manually keeps you sharp!&lt;BR /&gt;&lt;BR /&gt;My scripts for lvm commands are mostly for DR recollect, and to recreate my vg's in a DR scenerio.  &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 May 2004 15:24:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/seeking-scripts-to-create-filesystem/m-p/3281193#M180459</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2004-05-19T15:24:27Z</dc:date>
    </item>
  </channel>
</rss>

