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

lfs find cannot find files in OST that died, whilst lfs getstripe can

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • Lustre 2.1.2
    • 3
    • 10489

    Description

      OST2 died. When I run lfs getstripe it lists some files as on OST2, but lfs find cannot find them.

      [root@blah ~]# lfs getstripe /mnt/blah/Ac_270_res.txt
      /mnt/blah/Ac_270_res.txt
      lmm_stripe_count: 1
      lmm_stripe_size: 1048576
      lmm_stripe_offset: 2
      obdidx objid objid group
      2 137992 0x21b08 0
      [root@blah ~]# lfs find --obd lustre-OST0002 /mnt/blah
      [root@blah ~]# lfs find -r --obd lustre-OST0002 /mnt/blah # the -r works since it uses getstripe
      lfs find: -q, -r, -v options deprecated. Use 'lfs getstripe' instead.
      /mnt/blah/Ac_270_res.txt

      I think the lfs find should be able to find the files if lfs getstripe can.

      Attachments

        Issue Links

          Activity

            [LU-1738] lfs find cannot find files in OST that died, whilst lfs getstripe can
            adilger Andreas Dilger made changes -
            Resolution New: Duplicate [ 3 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]

            It appears that the "lfs find -mdt" handling added in http://review.whamcloud.com/1646 caused lfs to open() and fstat() every file, when it was only needed for "-mdt".

            I'm going to fix this under LU-6134.

            adilger Andreas Dilger added a comment - It appears that the "lfs find - mdt" handling added in http://review.whamcloud.com/1646 caused lfs to open() and fstat() every file, when it was only needed for " -mdt". I'm going to fix this under LU-6134 .
            adilger Andreas Dilger made changes -
            Link New: This issue is duplicated by LU-6134 [ LU-6134 ]
            simmonsja James A Simmons added a comment - Does the patch http://review.whamcloud.com/#/c/9794 from LU-4824 help?
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-4553 [ LU-4553 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-4296 [ LU-4296 ]
            adilger Andreas Dilger made changes -
            Link New: This issue duplicates LU-1427 [ LU-1427 ]
            mattwilkins Matt Wilkins added a comment -

            This is on OST2 but I have no OST1, in other words I have a hole in my lustre. So I think this problem is probably exactly what is seen in LU-1427.

            mattwilkins Matt Wilkins added a comment - This is on OST2 but I have no OST1, in other words I have a hole in my lustre. So I think this problem is probably exactly what is seen in LU-1427 .
            mattwilkins Matt Wilkins created issue -

            People

              wc-triage WC Triage
              mattwilkins Matt Wilkins
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: