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

"lfs find -O UUID" does not match first OST after gap

    XMLWordPrintable

Details

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

    Description

      Running "lfs find -O testfs-OST000a -type f /mnt/testfs" does not correctly find files with objects on OST000a if there is a gap in the OST numbering and this is the first OST number after the gap, but this works properly for finding files on this OST by index number:

      # lfs df
      UUID                   1K-blocks        Used   Available Use% Mounted on
      testfs-MDT0000_UUID       125056        4924      108896   5% /mnt/testfs[MDT:0]
      testfs-MDT0001_UUID       125056        7832      105988   7% /mnt/testfs[MDT:1]
      testfs-MDT0002_UUID       125056        6700      107120   6% /mnt/testfs[MDT:2]
      testfs-MDT0003_UUID       125056        6088      107732   6% /mnt/testfs[MDT:3]
      testfs-OST0000_UUID       313104       12476      273468   5% /mnt/testfs[OST:0]
      testfs-OST0001_UUID       313104        9636      276308   4% /mnt/testfs[OST:1]
      testfs-OST0002_UUID       313104       11444      274500   5% /mnt/testfs[OST:2]
      testfs-OST0003_UUID       313104       13156      272788   5% /mnt/testfs[OST:3]
      testfs-OST000a_UUID       313104       15520      270424   6% /mnt/testfs[OST:10]
      testfs-OST000b_UUID       313104        8972      276972   4% /mnt/testfs[OST:11]
      testfs-OST000c_UUID       313104       11752      274192   5% /mnt/testfs[OST:12]
      testfs-OST000d_UUID       313104       12500      273444   5% /mnt/testfs[OST:13]
      
      filesystem_summary:      2504832       95456     2192096   5% /mnt/testfs
      # lfs find /mnt/testfs -O testfs-OST000a_UUID
      # lfs find /mnt/testfs -O 0xa
      /mnt/testfs/etc/lvm/profile/thin-generic.profile
      /mnt/testfs/etc/lvm/archive/centos_00001-283055415.vg
      :
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: