<?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 stripe and mirror in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-stripe-and-mirror/m-p/2910634#M634073</link>
    <description>Paul,&lt;BR /&gt;&lt;BR /&gt;Your LE numbering looks strange to me, it should be in sequence even with your 8M extents.&lt;BR /&gt;&lt;BR /&gt;Can you attach a full lvdisplay</description>
    <pubDate>Wed, 26 Feb 2003 16:44:32 GMT</pubDate>
    <dc:creator>Michael Duthie</dc:creator>
    <dc:date>2003-02-26T16:44:32Z</dc:date>
    <item>
      <title>LVM stripe and mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-stripe-and-mirror/m-p/2910628#M634067</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have four disks which are striped and mirrored.  The setup basically goes like this:  3 disks are striped together and then mirrored to a larger fourth disk.  A partial copy of lvdisplay shows the mirrored portions.  I have included only begining and ending PE's on each disk in order to minimize the amount of data.&lt;BR /&gt;&lt;BR /&gt;****************************&lt;BR /&gt;lvdisplay -v /dev/vg00/lvol7 |more&lt;BR /&gt;--- Logical volumes ---&lt;BR /&gt;LV Name                     /dev/vg00/lvol7&lt;BR /&gt;VG Name                     /dev/vg00&lt;BR /&gt;LV Permission               read/write   &lt;BR /&gt;LV Status                   available/syncd           &lt;BR /&gt;Mirror copies               1            &lt;BR /&gt;Consistency Recovery        MWC                 &lt;BR /&gt;Schedule                    parallel     &lt;BR /&gt;LV Size (Mbytes)            1392            &lt;BR /&gt;Current LE                  87        &lt;BR /&gt;Allocated PE                174         &lt;BR /&gt;Stripes                     0       &lt;BR /&gt;Stripe Size (Kbytes)        0                   &lt;BR /&gt;Bad block                   on           &lt;BR /&gt;Allocation                  strict                    &lt;BR /&gt;IO Timeout (Seconds)        default             &lt;BR /&gt;&lt;BR /&gt;   --- Distribution of logical volume ---&lt;BR /&gt;   PV Name            LE on PV  PE on PV  &lt;BR /&gt;   /dev/dsk/c2t5d0    87        87        &lt;BR /&gt;   /dev/dsk/c4t3d0    31        31        &lt;BR /&gt;   /dev/dsk/c4t4d0    29        29        &lt;BR /&gt;   /dev/dsk/c4t5d0    27        27        &lt;BR /&gt;&lt;BR /&gt;   --- Logical extents ---&lt;BR /&gt;   LE   PV1                PE1  Status 1 PV2                PE2  Status 2 &lt;BR /&gt;   0000 /dev/dsk/c4t3d0    0184 current  /dev/dsk/c2t5d0    0184 current  &lt;BR /&gt; 0030 /dev/dsk/c4t3d0    0214 current  /dev/dsk/c2t5d0    0214 current  &lt;BR /&gt;   0031 /dev/dsk/c4t4d0    0216 current  /dev/dsk/c2t5d0    0471 current  &lt;BR /&gt; 0059 /dev/dsk/c4t4d0    0244 current  /dev/dsk/c2t5d0    0499 current  &lt;BR /&gt;   0060 /dev/dsk/c2t5d0    0514 current  /dev/dsk/c4t5d0    0004 current  &lt;BR /&gt;0086 /dev/dsk/c2t5d0    0540 current  /dev/dsk/c4t5d0    0030 current  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*****************************&lt;BR /&gt;&lt;BR /&gt;c2t5d0 is the large disk.  c4t3d0, c4t4d0 and c4t5d0 are the smaller disks.  It would sense to me that the 3 smaller disks be striped and then mirrored to the larger disk, BUT....&lt;BR /&gt;&lt;BR /&gt;Take a look at the last two lines of the output.  It appears to me that the striping and mirroring is occuring as follows:&lt;BR /&gt;&lt;BR /&gt;c4t3d0, c4t4d0 is striped with a portion of c2t5d0.  Lets call this stripe one.&lt;BR /&gt;&lt;BR /&gt;There is another stripe setup (call it stripe two) which includes a portion of c2t5d0 and c4t5d0.&lt;BR /&gt;&lt;BR /&gt;Stripe one is then mirrored with stripe two.&lt;BR /&gt;&lt;BR /&gt;My questions are:&lt;BR /&gt;1.  Am I correct or incorrect.  If no, then can someone please explain to me where I am wrong.&lt;BR /&gt;2.  Is stripe one the primary stripe from which the OS will read?  I'm basing this on how striping in NT works.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Paul.</description>
      <pubDate>Fri, 21 Feb 2003 20:14:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-stripe-and-mirror/m-p/2910628#M634067</guid>
      <dc:creator>Paul Cadieux</dc:creator>
      <dc:date>2003-02-21T20:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: LVM stripe and mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-stripe-and-mirror/m-p/2910629#M634068</link>
      <description>Hi Paul,&lt;BR /&gt;&lt;BR /&gt;Sorry for the late response. This post should have been in LVM category.&lt;BR /&gt;&lt;BR /&gt;In a nut-shell, you cannot do striping and mirroring together with HP's LVM. The best that you can do is extent level striping which means you will need to have two sets of disks. Primary stripe set and the secondary stripe set that acts as mirror. You will define LVM PVGs to achieve it. The stripe size on extent level striping would be the extent size (4MB minimum). So the benefits of extent level striping are small. But better than regular striping though.&lt;BR /&gt;&lt;BR /&gt;If mirrored with default options, LVM will read from both the disks. So, you can always gain from reads. However, attached to it is write penalty.&lt;BR /&gt;&lt;BR /&gt;In your case, it is not possible to stripe three disks and have them mirrored to one disk&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 24 Feb 2003 15:36:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-stripe-and-mirror/m-p/2910629#M634068</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-02-24T15:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: LVM stripe and mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-stripe-and-mirror/m-p/2910630#M634069</link>
      <description>best bet is to distrubute filesystems on the smaller disks and then mirror them all to the big disk.&lt;BR /&gt;&lt;BR /&gt;Yes, if the big disk goes, you are vulnerable, but you'll get a dmesg in time to replace the disk and rebuild the mirrors.&lt;BR /&gt;&lt;BR /&gt;Striping is normally done for performance, and with your current configuration, it doesn't help.  &lt;BR /&gt;&lt;BR /&gt;Mirroring will provide you the ability to survive up to three disks dying, so long as they are the small ones.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 24 Feb 2003 20:20:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-stripe-and-mirror/m-p/2910630#M634069</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-02-24T20:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: LVM stripe and mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-stripe-and-mirror/m-p/2910631#M634070</link>
      <description>FYI,&lt;BR /&gt;&lt;BR /&gt;You can decrease the extent size to 1Mb rather than leave it set to the default of 4Mb.&lt;BR /&gt;&lt;BR /&gt;If this is going to be used for an Oracle database, then (according to the recent recommendations I came across) a 1Mb stripe size is not a bad thing (goes against the 64K striping rule we always used to use, but times are changing). Unfortunately I don't have the document reference at the moment - I'll dig it out if you're interested.</description>
      <pubDate>Tue, 25 Feb 2003 10:38:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-stripe-and-mirror/m-p/2910631#M634070</guid>
      <dc:creator>Colin Topliss</dc:creator>
      <dc:date>2003-02-25T10:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: LVM stripe and mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-stripe-and-mirror/m-p/2910632#M634071</link>
      <description>Thanks for the responses.  I am more confused now though.  Based on the output given in my first post, one can see that a single logical volume (lvol7) is spread across the four disks.  If you look carefully at the breakdown of the logical extents it seems to me that my previous analysis (the lvol lies across 3 disks and is subsequently mirrored) holds true.  In the responses everyone is saying that this cannot be.  Please explain then what I am looking at based on the output given.  If more output is needed please let me know and I will provide it.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;Paul.</description>
      <pubDate>Wed, 26 Feb 2003 16:23:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-stripe-and-mirror/m-p/2910632#M634071</guid>
      <dc:creator>Paul Cadieux</dc:creator>
      <dc:date>2003-02-26T16:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: LVM stripe and mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-stripe-and-mirror/m-p/2910633#M634072</link>
      <description>Paul,&lt;BR /&gt;&lt;BR /&gt;What you provided is not pure striping. Look at the lines&lt;BR /&gt;&lt;BR /&gt;Stripes 0 &lt;BR /&gt;Stripe Size (Kbytes) 0 &lt;BR /&gt;&lt;BR /&gt;They tell us that you did not do striping. It is extent based mirroring/striping that I mentioned before. Here the stripe size is equal to the extent size. So, the gains are minimum with this striping. However, you may benefit a little from the mirroring from reads but there will be overhead on writes.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 26 Feb 2003 16:38:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-stripe-and-mirror/m-p/2910633#M634072</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-02-26T16:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: LVM stripe and mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-stripe-and-mirror/m-p/2910634#M634073</link>
      <description>Paul,&lt;BR /&gt;&lt;BR /&gt;Your LE numbering looks strange to me, it should be in sequence even with your 8M extents.&lt;BR /&gt;&lt;BR /&gt;Can you attach a full lvdisplay</description>
      <pubDate>Wed, 26 Feb 2003 16:44:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-stripe-and-mirror/m-p/2910634#M634073</guid>
      <dc:creator>Michael Duthie</dc:creator>
      <dc:date>2003-02-26T16:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: LVM stripe and mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-stripe-and-mirror/m-p/2910635#M634074</link>
      <description />
      <pubDate>Wed, 26 Feb 2003 17:11:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-stripe-and-mirror/m-p/2910635#M634074</guid>
      <dc:creator>Paul Cadieux</dc:creator>
      <dc:date>2003-02-26T17:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: LVM stripe and mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-stripe-and-mirror/m-p/2910636#M634075</link>
      <description>Sridhar,&lt;BR /&gt;&lt;BR /&gt;I see what you are talking about.  No striping.  Could one say that these are the equivalent of two volume groups (sorry for the windoze terminology) which are mirrored?  If so, please look carefully at the allocation of physical extents on c2t5d0.  Does this look like it was setup is a very strange way.  BTW I did not set this up.  I'm only trying to fix it.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Paul.</description>
      <pubDate>Wed, 26 Feb 2003 17:19:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-stripe-and-mirror/m-p/2910636#M634075</guid>
      <dc:creator>Paul Cadieux</dc:creator>
      <dc:date>2003-02-26T17:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: LVM stripe and mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-stripe-and-mirror/m-p/2910637#M634076</link>
      <description>Paul,&lt;BR /&gt;&lt;BR /&gt;That looks better, it was just the way it was cut &amp;amp; pasted.  I would say lvol7 (/usr ?) has been extended a couple of times and during the last extend the disks were entered the wrong way round on the lvextend command.&lt;BR /&gt;&lt;BR /&gt;If it is /usr then you have to be careful trying to fix it. &lt;BR /&gt;&lt;BR /&gt;The easiest fix I think would be to remove the mirroring and then move the data from c2t5 to c4t5, then mirror it all back to c2t5.&lt;BR /&gt;&lt;BR /&gt;You need to read up on lvreduce, pvmove &amp;amp; lvextend.&lt;BR /&gt;&lt;BR /&gt;If you need to stripe it you need to blow it away and recreate it, either in a different VG or with Ignite.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Feb 2003 09:52:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-stripe-and-mirror/m-p/2910637#M634076</guid>
      <dc:creator>Michael Duthie</dc:creator>
      <dc:date>2003-02-27T09:52:51Z</dc:date>
    </item>
  </channel>
</rss>

