<?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: LVM Disk Striping in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592424#M645786</link>
    <description>You certainly need to adjust your stripe size, as this can fluctuate performance metrics drastically. It also depends, like mentioned above, whether or not your apps use sequential or randam IO.&lt;BR /&gt;I would play with the stripe size, and benchmark that to see the difference.</description>
    <pubDate>Tue, 20 Nov 2001 19:54:35 GMT</pubDate>
    <dc:creator>Kevin Wright</dc:creator>
    <dc:date>2001-11-20T19:54:35Z</dc:date>
    <item>
      <title>LVM Disk Striping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592411#M645773</link>
      <description>Guys,&lt;BR /&gt;&lt;BR /&gt;I have 8x 4gb disks on controller a and 8x 4gb disks on controller b.&lt;BR /&gt;&lt;BR /&gt;These are all to belong to the same volume group and same logical volume in that group.&lt;BR /&gt;&lt;BR /&gt;How can I stripe them so that it forces the 1st disk to be on controller a, the 2nd disk on controller b, the 3rd disk on controller a, the fourth disk on controller b, etc.......&lt;BR /&gt;&lt;BR /&gt;I have never had to do this before as all of our other disks are mirrored.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Tony</description>
      <pubDate>Wed, 10 Oct 2001 12:05:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592411#M645773</guid>
      <dc:creator>Tony Peguinho</dc:creator>
      <dc:date>2001-10-10T12:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: LVM Disk Striping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592412#M645774</link>
      <description>Hi Tony,&lt;BR /&gt;&lt;BR /&gt;Look at the thread below.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90742/B2355-90742_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90742/00/00/48-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90742/00/00/48-toc.html&amp;amp;searchterms=lvm%20stripe&amp;amp;queryid=20011010-061305" target="_blank"&gt;http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90742/B2355-90742_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90742/00/00/48-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90742/00/00/48-toc.html&amp;amp;searchterms=lvm%20stripe&amp;amp;queryid=20011010-061305&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Look for the section, "Setting Up Disk Striping "&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Oct 2001 12:13:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592412#M645774</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-10-10T12:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: LVM Disk Striping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592413#M645775</link>
      <description>Assuming disks 1-4 are on controller1 and 5-8 are on controller2:&lt;BR /&gt;&lt;BR /&gt;From reading Sanjay's link, it looks like you would create the VG:&lt;BR /&gt;&lt;BR /&gt;mkdir /dev/vgNEW&lt;BR /&gt;mknod /dev/vgNEW/group c 64 0x0nn0000&lt;BR /&gt;vgcreate /dev/vgNEW disk1&lt;BR /&gt;&lt;BR /&gt;then extend the VG using disks from alternate controllers:&lt;BR /&gt;&lt;BR /&gt;vgextend /dev/vgNEW disk5&lt;BR /&gt;vgextend /dev/vgNEW disk2&lt;BR /&gt;vgextend /dev/vgNEW disk6&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Then create the LV&lt;BR /&gt;&lt;BR /&gt;lvcreate -L &lt;SIZE&gt; -i 8 -I &lt;STRIPE size=""&gt; /dev/vgNEW&lt;BR /&gt;&lt;BR /&gt;this should create the striped LV the way you wanted.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Santosh&lt;/STRIPE&gt;&lt;/SIZE&gt;</description>
      <pubDate>Wed, 10 Oct 2001 12:24:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592413#M645775</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-10-10T12:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: LVM Disk Striping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592414#M645776</link>
      <description>&lt;BR /&gt;The term to force striping across disks in a certain pattern is called "extent based striping".&lt;BR /&gt;&lt;BR /&gt;You'll need to write a script to do such, and it will take some time to run it. &lt;BR /&gt;&lt;BR /&gt;The +'s to extent based striping is that you can add another disk to the volume group (but you won't be able to stripe it) without saving/building stripes/and restoring vg.&lt;BR /&gt;&lt;BR /&gt;You might also want to adjust your PE (physical extent) size, depending upon what you are laying down on the vg.</description>
      <pubDate>Wed, 10 Oct 2001 12:54:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592414#M645776</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-10-10T12:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: LVM Disk Striping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592415#M645777</link>
      <description>Hi Tony,&lt;BR /&gt;&lt;BR /&gt;what is it that you want to do. Do you want to mirror disk1 on controller a to disk 1 on controller b and so on. Or do you want that the LV when created should first be created on disk1 on controller a and then on disk1 on controller b, then on disk2 on controller a and so on.&lt;BR /&gt;&lt;BR /&gt;If you want to do the first you should be looking for channel seperation. Refer to section "Setting Up Alternate Links to a Physical Volume" in the thread i've given above. &lt;BR /&gt;&lt;BR /&gt;If it is the second that you are looking for, what you have to do is first create a LV, do a lvextend to cover the area on 1st disk on controller a, then do a lvextend to cover the area on disk1 on controller b, then lvextend to the disk 2 on controller a and so on.&lt;BR /&gt;&lt;BR /&gt;If it is the first, when creating a LV specify the option "-s g" to force the mirror to be created on alternate links.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Oct 2001 13:08:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592415#M645777</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-10-10T13:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: LVM Disk Striping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592416#M645778</link>
      <description>I believe that Santosh's procedure will work as long as the disks you are striping are NOT mirrored.  Mirroring and normal striping do not work together in HP-UX (unless you happen to get Veritas Volume Manager and use VxVM filesystems).&lt;BR /&gt;&lt;BR /&gt;If you want to use extent based striping, where your stripe size is the same as your PE size in the VG you can do the following:&lt;BR /&gt;&lt;BR /&gt;Assume we are useing 4 disks, 2 on controller A and 2 on contoller B (the same method can be used for your 16 disks).&lt;BR /&gt;&lt;BR /&gt;Controller A - /dev/dsk/c1t1d0, /dev/dsk/c1t2d0&lt;BR /&gt;Controller B - /dev/dsk/c2t1d0, /dev/dsk/c2t2d0&lt;BR /&gt;&lt;BR /&gt;vgextend -g PVG1 vg01 /dev/dsk/c1t1d0&lt;BR /&gt;vgextend -g PVG1 vg01 /dev/dsk/c2t1d0&lt;BR /&gt;vgextend -g PVG1 vg01 /dev/dsk/c1t2d0&lt;BR /&gt;vgextend -g PVG1 vg01 /dev/dsk/c2t2d0&lt;BR /&gt;&lt;BR /&gt;The -g option to vgextend puts the disks in a Physical Volume group (defined in /etc/lvmpvg) which is what controls extent based striping.&lt;BR /&gt;&lt;BR /&gt;You can then create your extent-striped logical volume.  The LV will be striped across the 4 disks in the PVG in the order that they are in the PVG and it will go in a round-robin fashion across all disks until the LV is created with the appropriate size.  You do need to make sure that you have the latest LVM patch and that your lvcreate supports the '-D' option.&lt;BR /&gt;&lt;BR /&gt;To create a 200MB extent striped LV do the following:&lt;BR /&gt;&lt;BR /&gt;lvcreate -L 200 -D y -s g -n lvol1 vg01&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If have some other disks and want to mirror your LV you would put the disks you want to mirror to in a separate physical volume group&lt;BR /&gt;&lt;BR /&gt;vgextend -g PVG2 vg01 /dev/dsk/c3t1d0&lt;BR /&gt;vgextend -g PVG2 vg01 /dev/dsk/c4t1d0&lt;BR /&gt;vgextend -g PVG2 vg01 /dev/dsk/c3t2d0&lt;BR /&gt;vgextend -g PVG2 vg01 /dev/dsk/c4t2d0&lt;BR /&gt;&lt;BR /&gt;And then when you do your lvcreate you would do&lt;BR /&gt;&lt;BR /&gt;lvcreate -L 200 -D y -s g -m 1 -n lvol1 vg01&lt;BR /&gt;&lt;BR /&gt;And you would have a 200MB extent-striped mirrored LV with one copy being stiped across the 4 disks in PVG1 and the other copy striped across in PVG2.&lt;BR /&gt;&lt;BR /&gt;I hope this makes sense.</description>
      <pubDate>Wed, 10 Oct 2001 14:42:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592416#M645778</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-10-10T14:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: LVM Disk Striping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592417#M645779</link>
      <description>Patrick Walleck's response here seems to be exactly what I'm looking for - almost.  I'm hoping to do software raid1+0 (aka raid10 aka mirrored stripe sets), in the hopes of gaining improved performance.  The performance of raid1+0 improves nearly linearly with the addition of drive pairs.&lt;BR /&gt;&lt;BR /&gt;The only thing worrying me is how to initially create the pvg's, since Patrick's response lists only vgextend commands and not vgcreate commands.  If I've already created a volume group without using -g, can I still add it to a "PVG"?&lt;BR /&gt;&lt;BR /&gt;Is this really effectively doing raid0+1 or am I misinterpreting the manual pages?</description>
      <pubDate>Fri, 02 Nov 2001 21:28:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592417#M645779</guid>
      <dc:creator>Trever Furnish</dc:creator>
      <dc:date>2001-11-02T21:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: LVM Disk Striping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592418#M645780</link>
      <description>If you want to create PVGs for a VG that already exists then you can just modify / create the /etc/lvmpvg file.&lt;BR /&gt;&lt;BR /&gt;The format is:&lt;BR /&gt;&lt;BR /&gt;VG      /dev/vg??&lt;BR /&gt;PVG     PVG_NAMEa&lt;BR /&gt;/dev/dsk/c1t1d0&lt;BR /&gt;/dev/dsk/c2t1d0&lt;BR /&gt;/dev/dsk/c1t2d0&lt;BR /&gt;/dev/dsk/c2t2d0&lt;BR /&gt;PVG     PVG_NAMEb&lt;BR /&gt;/dev/dsk/c3t1d0&lt;BR /&gt;/dev/dsk/c4t1d0&lt;BR /&gt;/dev/dsk/c3t2d0&lt;BR /&gt;/dev/dsk/c4t2d0&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Nov 2001 21:55:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592418#M645780</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-11-02T21:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: LVM Disk Striping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592419#M645781</link>
      <description>Hi Tony:&lt;BR /&gt;&lt;BR /&gt;A additional comment to Patrick's excellent examples:&lt;BR /&gt;&lt;BR /&gt;If you ever 'vgexport' a volume group represented in the '/etc/lvmpvg' file (for instance, to move it to a different fiber channel and hence the associated device files are changing) then you find that you will need to recreate the entries for the exported volume group again.  You might notice the absence of the "physical volume group" information in a 'vgdisplay -v /dev/vgXX' query after the export until you do.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sat, 03 Nov 2001 15:57:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592419#M645781</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-11-03T15:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: LVM Disk Striping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592420#M645782</link>
      <description>Ok, thanks!  I got the configuration working, realized there was a -g option for vgcreate as well.  But now I'm not sure that the benefit is what I was hoping for.  How do I benchmark this?&lt;BR /&gt;&lt;BR /&gt;I was hoping for a near-linear write performance increase with the addition of drives to the volume group, since scsi allows disk commands to be sent and executed in parallel rather than in sequence (like IDE), so we would have the reliability of mirroring (since the two stripe-sets are mirrored) and the performance increase of striping (since each mirror is actually a stripe set).&lt;BR /&gt;&lt;BR /&gt;I've seen such a performance change when doing raid0+1 using hardware raid controllers, but I don't seem to be getting it with "extent-based mirrored stripes".  For initial benchmarking, I created a mirrored volume as described above and a normal (non-striped) mirrored volume group, and a third volume group with just one drive in it.&lt;BR /&gt;&lt;BR /&gt;- /raidtest2 is extent-based mirrored stripes with four drives in each stripe-set.&lt;BR /&gt;&lt;BR /&gt;- /tmp is two mirrored drives.&lt;BR /&gt;&lt;BR /&gt;- /source is one drive.&lt;BR /&gt;&lt;BR /&gt;For testing, I created a 150MB file on /source and timed (using the time command) a cp of that file to both /raidtest2 and /tmp seperately.  To (hopefully) mitigate the effects of disk caching, I first cp'd the file from /source to /dev/null.&lt;BR /&gt;&lt;BR /&gt;On a system with only normal 11.11 running, no applications installed yet, the resulting times vary widely.  From 4 seconds to 8 seconds for copying to *either* filesystem.  The mirrored stripe sets don't seem to be any faster than the single mirrored drives.&lt;BR /&gt;&lt;BR /&gt;Shouldn't they be?  Is this just a really poor benchmark, or a poor implementation of raid0+1?&lt;BR /&gt;&lt;BR /&gt;Suggestions solicited and greatly appreciated.</description>
      <pubDate>Mon, 05 Nov 2001 13:43:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592420#M645782</guid>
      <dc:creator>Trever Furnish</dc:creator>
      <dc:date>2001-11-05T13:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: LVM Disk Striping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592421#M645783</link>
      <description>Clearly your write to a mirrored stripe set should be much faster than a write to a mirrored set. &lt;BR /&gt;&lt;BR /&gt;In a mirrored set, your write transaction rate will not be faster than a single disk, but your read should be twice as fast. &lt;BR /&gt;&lt;BR /&gt;A striped set is the faster RAID, because you don't have parity of RAID 5.&lt;BR /&gt;&lt;BR /&gt;This leads me to believe your benchmark is inacurrate.</description>
      <pubDate>Fri, 16 Nov 2001 21:55:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592421#M645783</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2001-11-16T21:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: LVM Disk Striping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592422#M645784</link>
      <description>I'd certainly love to be able to prove that you're right about my benchmark being wrong - but to do so I'll need a better benchmark, one that *DOES* show improvement for the mirrored stripe set.&lt;BR /&gt;&lt;BR /&gt;Any suggestions?</description>
      <pubDate>Fri, 16 Nov 2001 22:28:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592422#M645784</guid>
      <dc:creator>Trever Furnish</dc:creator>
      <dc:date>2001-11-16T22:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: LVM Disk Striping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592423#M645785</link>
      <description>Tony&lt;BR /&gt;&lt;BR /&gt;There are two things to be noticed here&lt;BR /&gt;&lt;BR /&gt;1) LVM striping&lt;BR /&gt;2) Extent Level striping&lt;BR /&gt;&lt;BR /&gt;The type of striping you need to do is just dependent on your application needs. If you do a lot of sequential IO, then LVM striping with a non-default stripe size is a good way to go. IF you do a lot of Random IO, both perform the same way.&lt;BR /&gt;&lt;BR /&gt;I personally prefer LVM striping on JBODs and extent level on disk systems like XP's EMCs that have RAID-5.&lt;BR /&gt;&lt;BR /&gt;And obviously you cannot have 0+1 config with lvm striping and you need to go with extent level striping.&lt;BR /&gt;&lt;BR /&gt;You will get good performance with mirroring for reads. But it's a penalty for writes. If you get a chance, try doing the following&lt;BR /&gt;&lt;BR /&gt;1) Create 0+1 - extent level striping and take the numbers for both reads and writes.&lt;BR /&gt;2) Create LV striping with the stripe sizes of 8k, 16k, 32k, 64k, 128k so on.. and note the numbers.&lt;BR /&gt;&lt;BR /&gt;YOu can decide on your own. My benchmarks show that the LVM stripe of 256k is the best even with XPs.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Nov 2001 23:14:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592423#M645785</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-11-16T23:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: LVM Disk Striping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592424#M645786</link>
      <description>You certainly need to adjust your stripe size, as this can fluctuate performance metrics drastically. It also depends, like mentioned above, whether or not your apps use sequential or randam IO.&lt;BR /&gt;I would play with the stripe size, and benchmark that to see the difference.</description>
      <pubDate>Tue, 20 Nov 2001 19:54:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-disk-striping/m-p/2592424#M645786</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2001-11-20T19:54:35Z</dc:date>
    </item>
  </channel>
</rss>

