Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-18456 TCU: Trash Can/Undelete for Lustre
  3. LU-19598

TCU: Clean up files from the Trash Can

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Unresolved
    • Medium
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      A mechanism is needed to automatically clean up files from the trash can when the filesystem becomes full or the files in Trash Can are too old to expire the retain period.

      • For emergency case, potentially via MDS kernel thread to skip moving files into Trash Can (destroy the file directly), or delete the oldest pFID tree;
      • Userland policy engine can implement more sophisticated policy(age/space by user/projid, or file name, etc). It monitors the space/inode usage on the MDTs and OSTs periodically, once found the space is nearly full:
        • Scan MDT or OST devices for files in Trash Can via policy engine
        • Check TRASH and NOTRASH attributes on file (bot MDT and OST)
        • Check the original UID/GID/PROJID and deletion timestamp in "trusted.unrm" XATTR
        • Choose the candidate files or directories to be purged from Trash Can to free up space;

      To improve the performance, we can use multiple threads to do file purge or improve the mpiFileUtils to scan and purge the files in Trash Can in parallel.

      Attachments

        1. image-2025-11-13-09-57-12-553.png
          18 kB
          Qian Yingjin
        2. image-2025-11-13-09-57-35-681.png
          18 kB
          Qian Yingjin
        3. image-2025-11-13-10-00-15-917.png
          26 kB
          Qian Yingjin

        Activity

          People

            emoly.liu Emoly Liu
            qian_wc Qian Yingjin
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: