<?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: Stripe/Dist difference? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/stripe-dist-difference/m-p/2519103#M648529</link>
    <description>This does not answer you question but may be useful.&lt;BR /&gt;&lt;BR /&gt;If your LV's are mirrored under LVM(distributed stripe only) You could try using&lt;BR /&gt;# pvdisplay -v /dev/dsk/&lt;DISK&gt;&lt;BR /&gt;The state flag will go from "current" to "stale" for a short period whislt the mirrors re-sync.&lt;BR /&gt;&lt;BR /&gt;Alternatively, if you want to place particular dbspaces/tables (files) on certain parts of the disk the only way I have found is to create dedicated LV's.  This will obviously be more applicable for databases as opposed to filesystems, but I can't see why you would need to optimise the reading/writing performance of regular files.&lt;BR /&gt;&lt;BR /&gt;Tim&lt;/DISK&gt;</description>
    <pubDate>Fri, 27 Apr 2001 11:46:45 GMT</pubDate>
    <dc:creator>Tim D Fulford</dc:creator>
    <dc:date>2001-04-27T11:46:45Z</dc:date>
    <item>
      <title>Stripe/Dist difference?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stripe-dist-difference/m-p/2519096#M648522</link>
      <description>&lt;BR /&gt;Given,&lt;BR /&gt;-------&lt;BR /&gt;#vgcreate -s g testvg PV1 PV2  PV3 PV4    (four disks)&lt;BR /&gt;&lt;BR /&gt;#lvcreate -L 20000 -D y -s g -r N  -n  distr_lv testvg&lt;BR /&gt;            &lt;BR /&gt;#lvcreate -L 20000 -i 4  -I 1024 -r N -n  stripe_lv testvg  &lt;BR /&gt;&lt;BR /&gt;-----&lt;BR /&gt;&lt;BR /&gt;   What will be the difference&lt;BR /&gt;in the way data is written&lt;BR /&gt;onto the two LV's?? I tried&lt;BR /&gt;it, but couldnt locate any&lt;BR /&gt;difference in the output&lt;BR /&gt;of Lvdisplay or pvdisplay&lt;BR /&gt;outputs.&lt;BR /&gt;&lt;BR /&gt;  Is data allocated in terms&lt;BR /&gt;of the Stripe size or the&lt;BR /&gt;extent size, across the&lt;BR /&gt;physical volumes??&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Thu, 19 Apr 2001 16:18:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stripe-dist-difference/m-p/2519096#M648522</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2001-04-19T16:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Stripe/Dist difference?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stripe-dist-difference/m-p/2519097#M648523</link>
      <description>The two work basically the same.&lt;BR /&gt;&lt;BR /&gt;The distributed option (-D) work at the PE (physical extent) level.  When the logical volume is created extent 1 will be put on PV1, 2 on PV2, 3 on PV3, 4 on PV4, 5 on PV1, 6 on PV2, etc. until it reaches the number of extents necessary to create the LV in the size you specify.  If you look at 'lvdisplay -v' output you should be able to see the extent allocation. &lt;BR /&gt;&lt;BR /&gt;Striping (-i -I) will take the data as it is written and stripe it across the 4 disks (-i 4) in 1024KB chunks (-I 1024).  &lt;BR /&gt;&lt;BR /&gt;The basic difference is that with a distributed LV, your data will be striped across the disks in chunks which are the size of PE as defined in the VG, which defaults to 4MB unless you specify something else.  So if you have a file less than 4MB it will only be written on one disk.  With regular striping the data is in 1024KB chunks, so unless you have a REALLY SMALL file, it will be striped across several disks.&lt;BR /&gt;&lt;BR /&gt;One thing to keep in mind is that a Distributed LV (-D) CAN be mirrored, whereas a striped LV (-i -I) CAN NOT be mirrored.</description>
      <pubDate>Thu, 19 Apr 2001 16:51:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stripe-dist-difference/m-p/2519097#M648523</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-04-19T16:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Stripe/Dist difference?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stripe-dist-difference/m-p/2519098#M648524</link>
      <description>Patrick, thanks.&lt;BR /&gt;One more question, is&lt;BR /&gt;there any command to show&lt;BR /&gt;how the  space actually used&lt;BR /&gt;by the LVM  is striped/spread&lt;BR /&gt;across the physical volumes?&lt;BR /&gt;LVdisplay, PVdisplay shows&lt;BR /&gt;only the total allocated&lt;BR /&gt;space , but not the actual&lt;BR /&gt;usage.&lt;BR /&gt;&lt;BR /&gt;-raj</description>
      <pubDate>Fri, 20 Apr 2001 19:05:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stripe-dist-difference/m-p/2519098#M648524</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2001-04-20T19:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Stripe/Dist difference?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stripe-dist-difference/m-p/2519099#M648525</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# lvdisplay -v /dev/vgXX/lvolX&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 20 Apr 2001 19:12:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stripe-dist-difference/m-p/2519099#M648525</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-04-20T19:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Stripe/Dist difference?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stripe-dist-difference/m-p/2519100#M648526</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# pvdisplay -v /dev/dsk/cXtYdZ&lt;BR /&gt;# lvdisplay -v /dev/vgXX/lvolX &lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 20 Apr 2001 19:16:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stripe-dist-difference/m-p/2519100#M648526</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-04-20T19:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Stripe/Dist difference?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stripe-dist-difference/m-p/2519101#M648527</link>
      <description>James,   yes i meant the&lt;BR /&gt;verbose (-v) option too for&lt;BR /&gt;lvdisplay and pvdisplay.&lt;BR /&gt;Both of them do not show &lt;BR /&gt;the details of the actual&lt;BR /&gt;"usage". They only display&lt;BR /&gt;the "allocated" space.&lt;BR /&gt;So, for instance if a LV&lt;BR /&gt;is allocated 20Gb across&lt;BR /&gt;four PV's , they display&lt;BR /&gt;that Information, but do&lt;BR /&gt;not show , how the space is&lt;BR /&gt;actually used by the files.&lt;BR /&gt;Here is an example: On a filesystem mountpoint i&lt;BR /&gt;do:&lt;BR /&gt;&lt;BR /&gt;#ll&lt;BR /&gt;drwxr-xr-x   2 root       root            96 Apr 20 15:30 lost+found&lt;BR /&gt;-rw-r-----   1 root       sys        5242880 Apr 20 15:33 5mb&lt;BR /&gt;-rw-r-----   1 root       sys        5242880 Apr 20 15:40 5mb1&lt;BR /&gt;&lt;BR /&gt;Then,&lt;BR /&gt;i do a lvdisplay -v &lt;BR /&gt;&lt;BR /&gt;LV Name                     /dev/test_metavg1/distri_meta1_lv1&lt;BR /&gt;VG Name                     /dev/test_metavg1&lt;BR /&gt;LV Permission               read/write   &lt;BR /&gt;LV Status                   available/syncd           &lt;BR /&gt;Mirror copies               0            &lt;BR /&gt;Consistency Recovery        MWC                 &lt;BR /&gt;Schedule                    parallel     &lt;BR /&gt;LV Size (Mbytes)            20480           &lt;BR /&gt;Current LE                  10240     &lt;BR /&gt;Allocated PE                10240       &lt;BR /&gt;Stripes                     0       &lt;BR /&gt;Stripe Size (Kbytes)        0                   &lt;BR /&gt;Bad block                   NONE         &lt;BR /&gt;Allocation                  PVG-strict/distributed&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/c44t0d0   2560      2560      &lt;BR /&gt;   /dev/dsk/c47t0d1   2560      2560      &lt;BR /&gt;   /dev/dsk/c50t0d2   2560      2560      &lt;BR /&gt;   /dev/dsk/c53t0d3   2560      2560      &lt;BR /&gt;&lt;BR /&gt;   --- Logical extents ---&lt;BR /&gt;   LE    PV1                PE1   Status 1 &lt;BR /&gt;   00000      0             00000 current  &lt;BR /&gt;   00001      1             00000 current  &lt;BR /&gt;   00002      2             00000 current  &lt;BR /&gt;   00003      3             00000 current  &lt;BR /&gt;   00004      0             00001 current  &lt;BR /&gt;   00005      1             00001 current  &lt;BR /&gt;   00006      2             00001 current  &lt;BR /&gt;   00007      3             00001 current &lt;BR /&gt;   ......................................&lt;BR /&gt;   10231      3             02557 current  &lt;BR /&gt;   10232      0             02558 current  &lt;BR /&gt;   10233      1             02558 current  &lt;BR /&gt;   10234      2             02558 current  &lt;BR /&gt;   10235      3             02558 current  &lt;BR /&gt;   10236      0             02559 current  &lt;BR /&gt;   10237      1             02559 current  &lt;BR /&gt;   10238      2             02559 current  &lt;BR /&gt;   10239      3             02559 current  &lt;BR /&gt;&lt;BR /&gt;----------------&lt;BR /&gt;&lt;BR /&gt;How do i see how the &lt;BR /&gt;files 5mb and 5mb1 are&lt;BR /&gt;striped across the disks?&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Apr 2001 19:44:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stripe-dist-difference/m-p/2519101#M648527</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2001-04-20T19:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Stripe/Dist difference?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stripe-dist-difference/m-p/2519102#M648528</link>
      <description>As far as I know, there is no way to see how actual files are laid out within your LVs.  That would be a nice feature, but rather complicated to program, I think.  &lt;BR /&gt;&lt;BR /&gt;The short answer is, I don't think you can do what you want to do.</description>
      <pubDate>Fri, 20 Apr 2001 19:54:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stripe-dist-difference/m-p/2519102#M648528</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-04-20T19:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Stripe/Dist difference?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stripe-dist-difference/m-p/2519103#M648529</link>
      <description>This does not answer you question but may be useful.&lt;BR /&gt;&lt;BR /&gt;If your LV's are mirrored under LVM(distributed stripe only) You could try using&lt;BR /&gt;# pvdisplay -v /dev/dsk/&lt;DISK&gt;&lt;BR /&gt;The state flag will go from "current" to "stale" for a short period whislt the mirrors re-sync.&lt;BR /&gt;&lt;BR /&gt;Alternatively, if you want to place particular dbspaces/tables (files) on certain parts of the disk the only way I have found is to create dedicated LV's.  This will obviously be more applicable for databases as opposed to filesystems, but I can't see why you would need to optimise the reading/writing performance of regular files.&lt;BR /&gt;&lt;BR /&gt;Tim&lt;/DISK&gt;</description>
      <pubDate>Fri, 27 Apr 2001 11:46:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stripe-dist-difference/m-p/2519103#M648529</guid>
      <dc:creator>Tim D Fulford</dc:creator>
      <dc:date>2001-04-27T11:46:45Z</dc:date>
    </item>
  </channel>
</rss>

