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

store JobID of process deleting file into xattr

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      It would be useful to store the jobid in an xattr in the MDT inode at unlink time (if it fits) for forensic purposes, to track down which client/process has deleted files in the filesystem, like LU-13031 stores the JobID of the processes that created the file in user.job.

      It isn't clear that this could be easily done for the OST objects, since they are all deleted by threads on the MDS. Passing on the JobID from the MDT inode to the OST inode might be possible to do, but likely adds unnecessary complexity for something that is of only very occasional value.

      It isn't clear if it would be better to re-use the user.job xattr for this, or if a new user.del xattr should be used in case both of these values are useful at the same time? The main question is whether there is space in the inode for these xattrs, and whether the removal xattr would actually be written to disk after an unlink? I think yes, since the block deallocation is definitely updating the inode.

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: