Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-8417

setstripe -o does not work on directories

    XMLWordPrintable

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Lustre 2.7.0
    • None
    • None
    • 9223372036854775807

    Description

      the -o option to setstripe where you can specify the OSTs to use works on files but gets an error when you do the same thing on directories.

      [root@Lustre-TG1 lustrefs]# mkdir testdir
      [root@Lustre-TG1 lustrefs]# lfs setstripe -o 0-3 -c 4 testfile
      [root@Lustre-TG1 lustrefs]# lfs getstripe testfile
      testfile
      lmm_stripe_count:   4
      lmm_stripe_size:    1048576
      lmm_pattern:        1
      lmm_layout_gen:     0
      lmm_stripe_offset:  0
              obdidx           objid           objid           group
                   0            9925         0x26c5                0
                   1            1606          0x646                0
                   2            1608          0x648                0
                   3            1609          0x649                0
      
      [root@Lustre-TG1 lustrefs]# lfs setstripe -o 0-3 -c 4 testdir
      error on ioctl 0x4008669a for 'testdir' (3): Invalid argument
      error: setstripe: create stripe file 'testdir' failed
      

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              ghagensen Gary Hagensen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: