<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>All,</p>
    <p>I am applying a 2 component striping, including specifying the
      osts, to a file with an lfs setstripe command.  When I issue the
      lfs getstripe command on the resulting file, the osts for the 2nd
      component are not displayed even though they were explicitly set. 
      I  have written my own program to get the striping information
      using the llapi functions and it reports the explicitly set osts
      are in the 2nd component.  It would appear that lfs getstripe is
      not displaying osts in components that start beyond the file size,
      assuming those components have not been instantiated.  Is this the
      desired behavior.  </p>
    <p>John</p>
    <p><br>
    </p>
    <p><font face="Courier New, Courier, monospace">#!/bin/bash -v<br>
        <br>
        file=/hpelustre/e63414/test.dat<br>
        <br>
        rm -f ${file}<br>
        <br>
        lfs setstripe \<br>
                -E 10M \<br>
                --stripe-count=2 \<br>
                --stripe-size=1M \<br>
                --ost=3,4 \<br>
                -E EOF \<br>
                --stripe-count=2 \<br>
                --stripe-size=4M \<br>
                --ost=2,1 \<br>
                ${file}<br>
        <br>
        lfs getstripe ${file}<br>
        <br>
      </font></p>
    <p>Resulting output:</p>
    <p><font face="Courier New, Courier, monospace"><br>
      </font></p>
    <p><font face="Courier New, Courier, monospace">lfs getstripe
        ${file}<br>
        /hpelustre/e63414/test.dat<br>
          lcm_layout_gen:    2<br>
          lcm_mirror_count:  1<br>
          lcm_entry_count:   2<br>
            lcme_id:             1<br>
            lcme_mirror_id:      0<br>
            lcme_flags:          init<br>
            lcme_extent.e_start: 0<br>
            lcme_extent.e_end:   10485760<br>
              lmm_stripe_count:  2<br>
              lmm_stripe_size:   1048576<br>
              lmm_pattern:       raid0<br>
              lmm_layout_gen:    0<br>
              lmm_stripe_offset: 3<br>
              lmm_objects:<br>
              - 0: { l_ost_idx: 3, l_fid: [0x100030000:0x971473:0x0] }<br>
              - 1: { l_ost_idx: 4, l_fid: [0x100040000:0x9711c9:0x0] }<br>
        <br>
            lcme_id:             2<br>
            lcme_mirror_id:      0<br>
            lcme_flags:          0<br>
            lcme_extent.e_start: 10485760<br>
            lcme_extent.e_end:   EOF<br>
              lmm_stripe_count:  2<br>
              lmm_stripe_size:   4194304<br>
              lmm_pattern:       raid0<br>
              lmm_layout_gen:    0<br>
              lmm_stripe_offset: 2</font></p>
  </body>
</html>