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

'lfs setstripe -C -1' stripes too widely

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.16.0
    • None
    • 3
    • 9223372036854775807

    Description

      Creating a file with overstriping using "-C -1" exceeds the maximum stripe count of 2000, resulting in a file that has an excessively-large xattr, which the client may have difficulty accessing:

      # lfs setstripe -E 128M -c 1 --comp-flags=prefer -E eof -C -1 /mnt/lustre/file0
      
      # lfs getstripe /lustre/fs0a92/client/file129
      /lustre/fs0a92/client/file129
        lcm_layout_gen:	3
        lcm_mirror_count:  1
        lcm_entry_count:   2
      	lcme_id:         	1
      	lcme_mirror_id:  	0
      	lcme_flags:      	init,prefer
      	lcme_extent.e_start: 0
      	lcme_extent.e_end:   134217728
        	lmm_stripe_count:  1
        	lmm_stripe_size:   1048576
        	lmm_pattern:   	raid0
        	lmm_layout_gen:	0
        	lmm_stripe_offset: 7
        	lmm_objects:
        	- 0: { l_ost_idx: 7, l_fid: [0x100070000:0xcef:0x0] }
      
      	lcme_id:         	2
      	lcme_mirror_id:  	0
      	lcme_flags:      	init
      	lcme_extent.e_start: 134217728
      	lcme_extent.e_end:   EOF
        	lmm_stripe_count:  2719
        	lmm_stripe_size:   1048576
        	lmm_pattern:   	raid0,overstriped
        	lmm_layout_gen:	0
        	lmm_stripe_offset: 9
        	lmm_objects:
        	- 0: { l_ost_idx: 9, l_fid: [0x100090000:0xe5:0x0] }
        	- 1: { l_ost_idx: 10, l_fid: [0x1000a0000:0xc5:0x0] }
        	- 2: { l_ost_idx: 11, l_fid: [0x1000b0000:0xc5:0x0] }
        	- 3: { l_ost_idx: 12, l_fid: [0x1000c0000:0xe5:0x0] }
        	- 4: { l_ost_idx: 13, l_fid: [0x1000d0000:0xe5:0x0] }
      ...
      

      In some cases, running "lfs getstripe -v" on the file causes the client to crash.

      Attachments

        Issue Links

          Activity

            People

              adilger Andreas Dilger
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: